[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28274] New: [strip] heap-buffer-overflow
From: |
tricker51449 at gmail dot com |
Subject: |
[Bug binutils/28274] New: [strip] heap-buffer-overflow |
Date: |
Thu, 26 Aug 2021 13:16:30 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28274
Bug ID: 28274
Summary: [strip] heap-buffer-overflow
Product: binutils
Version: 2.30
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: tricker51449 at gmail dot com
Target Milestone: ---
Created attachment 13627
--> https://sourceware.org/bugzilla/attachment.cgi?id=13627&action=edit
crash files
Hello,
I detected the following crash exception through fuzz testing, which I think
might be a vulnerability.
The configuration of bin-utils is:
$ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" ./configure
--disable-shared && make -j
Here is the stack trace by address sanitizer:
==74962==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x6040000004c0 at pc 0x00000050efa7 bp 0x7ffc9455e9e0 sp 0x7ffc9455e9d8
READ of size 8 at 0x6040000004c0 thread T0
#0 0x50efa6 in group_signature (/binutils-2.30-asan/bin/strip+0x50efa6)
#1 0x50e2f9 in is_strip_section (/binutils-2.30-asan/bin/strip+0x50e2f9)
#2 0x504ce7 in setup_section (/binutils-2.30-asan/bin/strip+0x504ce7)
#3 0x5d62ae in bfd_map_over_sections
(/binutils-2.30-asan/bin/strip+0x5d62ae)
#4 0x500e58 in copy_object (/binutils-2.30-asan/bin/strip+0x500e58)
#5 0x4fcbe1 in copy_file (/binutils-2.30-asan/bin/strip+0x4fcbe1)
#6 0x4f759c in strip_main (/binutils-2.30-asan/bin/strip+0x4f759c)
#7 0x4f6a3d in main (/binutils-2.30-asan/bin/strip+0x4f6a3d)
#8 0x7fa7bc211bf6 in __libc_start_main
/build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310
#9 0x41b659 in _start (/binutils-2.30-asan/bin/strip+0x41b659)
0x6040000004c0 is located 0 bytes to the right of 48-byte region
[0x604000000490,0x6040000004c0)
allocated by thread T0 here:
#0 0x4c7003 in malloc (/binutils-2.30-asan/bin/strip+0x4c7003)
#1 0x9c0d97 in xmalloc (/binutils-2.30-asan/bin/strip+0x9c0d97)
#2 0x500ccf in copy_object (/binutils-2.30-asan/bin/strip+0x500ccf)
#3 0x4fcbe1 in copy_file (/binutils-2.30-asan/bin/strip+0x4fcbe1)
#4 0x4f759c in strip_main (/binutils-2.30-asan/bin/strip+0x4f759c)
#5 0x4f6a3d in main (/binutils-2.30-asan/bin/strip+0x4f6a3d)
#6 0x7fa7bc211bf6 in __libc_start_main
/build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310
SUMMARY: AddressSanitizer: heap-buffer-overflow
(/binutils-2.30-asan/bin/strip+0x50efa6) in group_signature
Shadow bytes around the buggy address:
0x0c087fff8040: fa fa 00 00 00 00 00 05 fa fa fd fd fd fd fd fa
0x0c087fff8050: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd
0x0c087fff8060: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff8070: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd
0x0c087fff8080: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
=>0x0c087fff8090: fa fa 00 00 00 00 00 00[fa]fa fa fa fa fa fa fa
0x0c087fff80a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff80b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff80c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff80d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff80e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==74962==ABORTING
Thanks & Best Regards
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/28274] New: [strip] heap-buffer-overflow,
tricker51449 at gmail dot com <=