[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/20923] New: STRIP crashes when marking symbols used in rel
From: |
boehme.marcel at gmail dot com |
Subject: |
[Bug binutils/20923] New: STRIP crashes when marking symbols used in relocation |
Date: |
Sat, 03 Dec 2016 09:08:03 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20923
Bug ID: 20923
Summary: STRIP crashes when marking symbols used in relocation
Product: binutils
Version: 2.28 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: boehme.marcel at gmail dot com
Target Milestone: ---
Dear all,
The following bug was found with AFLFast, a fork of AFL, in a 24 hour fuzzing
session on Binutils. Thanks also to Van-Thuan Pham. We also thank Nick Clifton
for addressing our reported bugs so promptly.
Objcopy/Strip crashes with an invalid read of size 8 for the following
execution on Ubuntu 16.04 x86_64 in Binutils trunk and for preinstalled version
v2.26.1 and on Ubuntu 14.04 x86_64 for Binutils in trunk and preinstalled
version v2.24.
$ printf
"\xcc\x00\x000\x00\x00\x00\x00\x00\x00\x00\x000000\x00\x00\x00\x0000000\x00\x00\x00\x00\x00\x0000000000000000000"
> test
$ ./strip -S test
Segmentation fault
UBSAN shows us:
../../binutils/objcopy.c:3554:11: runtime error: load of null pointer of type
'struct bfd_symbol *'
Valgrind reports:
==89005== Invalid read of size 8
==89005== at 0x41C22F: mark_symbols_used_in_relocations (objcopy.c:3554)
==89005== by 0x503843: bfd_map_over_sections (section.c:1395)
==89005== by 0x427713: copy_object.part.18 (objcopy.c:2398)
==89005== by 0x42F435: copy_object (objcopy.c:1849)
==89005== by 0x42F435: copy_file (objcopy.c:2879)
==89005== by 0x41670E: strip_main (objcopy.c:3788)
==89005== by 0x41670E: main (objcopy.c:4888)
==89005== Address 0x0 is not stack'd, malloc'd or (recently) free'd
Best regards,
- Marcel
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/20923] New: STRIP crashes when marking symbols used in relocation,
boehme.marcel at gmail dot com <=