[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/21139] New: readelf crashes - corrupted double-linked list
From: |
thuanpv at comp dot nus.edu.sg |
Subject: |
[Bug binutils/21139] New: readelf crashes - corrupted double-linked list because of use after free |
Date: |
Mon, 13 Feb 2017 09:27:41 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21139
Bug ID: 21139
Summary: readelf crashes - corrupted double-linked list because
of use after free
Product: binutils
Version: 2.29 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: thuanpv at comp dot nus.edu.sg
Target Milestone: ---
Created attachment 9806
--> https://sourceware.org/bugzilla/attachment.cgi?id=9806&action=edit
Crashing input
Dear all,
This bug was found with AFLGo, a directed version of AFL/AFLFast. Thanks also
to Marcel Böhme.
This bug was found on Ubuntu 14.04 64-bit & binutils was checkout from main
repository at git://sourceware.org/git/binutils-gdb.git. Its commit is
53f7e8ea7fad1fcff1b58f4cbd74e192e0bcbc1d (Fri Feb 10 00:00:16 2017)
binutils was built with ASAN using gcc-6.2 and clang-3.4. The configure command
was:
CC=clang CFLAGS="-DFORTIFY_SOURCE=2 -fstack-protector-all
-fsanitize=undefined,address -fno-omit-frame-pointer -g -Wno-error"
../configure --disable-shared --disable-gdb --disable-libdecnumber
--disable-readline --disable-sim
To reproduce:
Download the attached file - bug_5
readelf -w bug_5
ASAN says:
==20954==ERROR: AddressSanitizer: heap-use-after-free on address 0x61700000fe00
at pc 0x54aa2e bp 0x7ffe965bcb50 sp 0x7ffe965bcb48
READ of size 8 at 0x61700000fe00 thread T0
#0 0x54aa2d in target_specific_reloc_handling
/home/ubuntu/thesis/subjects/binutils-newest/build-asan/binutils/../../binutils/readelf.c:11637
#1 0x52e6dc in apply_relocations
/home/ubuntu/thesis/subjects/binutils-newest/build-asan/binutils/../../binutils/readelf.c:12343
#2 0x4846b5 in load_specific_debug_section
/home/ubuntu/thesis/subjects/binutils-newest/build-asan/binutils/../../binutils/readelf.c:12905
#3 0x564b4c in display_debug_section
/home/ubuntu/thesis/subjects/binutils-newest/build-asan/binutils/../../binutils/readelf.c:13009
#4 0x4e194f in process_section_contents
/home/ubuntu/thesis/subjects/binutils-newest/build-asan/binutils/../../binutils/readelf.c:13091
#5 0x48d610 in process_object
/home/ubuntu/thesis/subjects/binutils-newest/build-asan/binutils/../../binutils/readelf.c:16780
#6 0x488365 in process_file
/home/ubuntu/thesis/subjects/binutils-newest/build-asan/binutils/../../binutils/readelf.c:17154
#7 0x4855c3 in main
/home/ubuntu/thesis/subjects/binutils-newest/build-asan/binutils/../../binutils/readelf.c:17225
#8 0x7f019152bf44 (/lib/x86_64-linux-gnu/libc.so.6+0x21f44)
#9 0x47ddfc in _start
(/home/ubuntu/thesis/subjects/binutils-newest/build-asan/binutils/readelf+0x47ddfc)
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/21139] New: readelf crashes - corrupted double-linked list because of use after free,
thuanpv at comp dot nus.edu.sg <=
- [Bug binutils/21139] readelf crashes - corrupted double-linked list because of use after free, cvs-commit at gcc dot gnu.org, 2017/02/13
- [Bug binutils/21139] readelf crashes - corrupted double-linked list because of use after free, nickc at redhat dot com, 2017/02/13
- [Bug binutils/21139] readelf crashes - corrupted double-linked list because of use after free, nickc at redhat dot com, 2017/02/13
- [Bug binutils/21139] readelf crashes - corrupted double-linked list because of use after free, nickc at redhat dot com, 2017/02/13
- [Bug binutils/21139] readelf crashes - corrupted double-linked list because of use after free, nickc at redhat dot com, 2017/02/13
- [Bug binutils/21139] readelf crashes - corrupted double-linked list because of use after free, nickc at redhat dot com, 2017/02/13
- [Bug binutils/21139] readelf crashes - corrupted double-linked list because of use after free, nickc at redhat dot com, 2017/02/13