bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/27796] New: [readelf] Attempting free on wrong address in


From: dkcjd2000 at gmail dot com
Subject: [Bug binutils/27796] New: [readelf] Attempting free on wrong address in binutils/dwarf.c:11590
Date: Thu, 29 Apr 2021 15:33:42 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27796

            Bug ID: 27796
           Summary: [readelf] Attempting free on wrong address in
                    binutils/dwarf.c:11590
           Product: binutils
           Version: 2.37 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: dkcjd2000 at gmail dot com
  Target Milestone: ---

Created attachment 13408
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13408&action=edit
crash test case

Hello,
I report a wrong free detected by address sanitizer.
I found this test input by a fuzz testing.

The stack traces are as follows:
==12151==ERROR: AddressSanitizer: attempting free on address which was not
malloc()-ed: 0x616000001283 in thread T0
    #0 0x3bc29d in free
(.../afl++/subjects_friend/readelf/readelf.san+0x3bc29d)
    #1 0x46650a in free_debug_memory
.../subjects/binutils-gdb/binutils/dwarf.c:11590:7
    #2 0x46650a in process_object
.../subjects/binutils-gdb/binutils/readelf.c:21425:3
    #3 0x461678 in process_file
.../subjects/binutils-gdb/binutils/readelf.c:21791:13
    #4 0x461678 in main .../subjects/binutils-gdb/binutils/readelf.c:21862:11
    #5 0x7ffff6e22bf6 in __libc_start_main
/build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310
    #6 0x3426b9 in _start
(.../afl++/subjects_friend/readelf/readelf.san+0x3426b9)

You can reproduce the bug by executing
./readelf -a <test input>

I tested the subject on the latest version uploaded on git,
build with --disable-shared --disable-gdb --disable-libdecnumber --disable-ld
--enable-targets=all
configure options.

Thanks

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]