https://sourceware.org/bugzilla/show_bug.cgi?id=34323
Bug ID: 34323
Summary: readelf: SIGSEGV in process_got_section_contents when
processing ELF file
Product: binutils
Version: 2.47 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: 970429025 at qq dot com
Target Milestone: ---
Created attachment 16797
--> https://sourceware.org/bugzilla/attachment.cgi?id=16797&action=edit
The PoC attachment contains the input file (Null_Pointer_1) that triggers this
behavior.
Overview:
Running readelf on a ELF input file causes the program to crash with SIGSEGV.
The crash occurs in process_got_section_contents() while processing the input
with -a.
Steps to Reproduce:
./readelf -a Null_Pointer_1
Actual Results:
readelf terminates with SIGSEGV.
GDB output excerpt:
Program received signal SIGSEGV, Segmentation fault.
#0 0x0000000000456b11 in process_got_section_contents ()
#1 0x0000000000441cc0 in process_object ()
#2 0x000000000043260b in process_file ()
#3 0x00000000004305b6 in main ()
Expected Results:
readelf should exit gracefully after reporting an error or warning, rather than
crashing with SIGSEGV.
Build & Platform:
binutils version: GNU Binutils 2.46.50.20260601
component: readelf
OS: Ubuntu 22.04.5 LTS
arch: x86_64
Additional Information:
The PoC attachment contains the input file that triggers the crash:
Null_Pointer_1.
Crash type: SIGSEGV
Crash location: process_got_section_contents()
Fully reproducible.
--
You are receiving this mail because:
You are on the CC list for the bug.