Description
Buffer overflow in getsym in tekhex.c in libbfd in Free Software Foundation GNU Binutils before 20060423, as used by GNU strings, allows context-dependent attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a file with a crafted Tektronix Hex Format (TekHex) record in which the length character is not a valid hexadecimal character.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | binutils | 2.17-1 | — |
| Debian 13 | binutils | 2.17-1 | — |
| Debian 12 | binutils | 2.17-1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- GNU BinUtils 2.1x - Buffer Overflow EDB-27856 · dos · May 11, 2006 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 20188 third-party-advisory
- 20550 third-party-advisory
- 22932 third-party-advisory
- 27441 third-party-advisory
- 2006-0034 vendor-advisory
- 17950 vdb-entry
- [bug-binutils] 20060418 [Bug binutils/2584] New: SIGSEGV in strings tool when the file is crafted. mailing-list
- ADV-2007-3665 vdb-entry
- SUSE-SR:2006:026 vendor-advisory
- ADV-2006-1924 vdb-entry
- 1018872 vdb-entry
- 20531 third-party-advisory
- USN-292-1 vendor-advisory
- APPLE-SA-2007-10-30 vendor-advisory
- binutils-libbfd-bo(26644) vdb-entry
- http://sourceware.org/bugzilla/show_bug.cgi?id=2584