Description
Stack-based buffer overflow in the as_bad function in messages.c in the GNU as (gas) assembler in Free Software Foundation GNU Binutils before 20050721 allows attackers to execute arbitrary code via a .c file with crafted inline assembly code.
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 - GAS Buffer Overflow EDB-28397 · remote · Aug 17, 2006 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 27960 vdb-entry
- USN-336-1 vendor-advisory
- 21508 third-party-advisory
- http://bugs.gentoo.org/show_bug.cgi?id=99464
- 19555 vdb-entry
- ADV-2006-3307 vdb-entry
- 21530 third-party-advisory