Description
Off-by-one error in the ppscan function (preproc.c) in Netwide Assembler (NASM) 2.02 allows context-dependent attackers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted file that triggers a stack-based buffer overflow.
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 | nasm | 2.03.01-1 | — |
| Debian 13 | nasm | 2.03.01-1 | — |
| Debian 12 | nasm | 2.03.01-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
- NASM 2.0 - 'ppscan()' Off-by-One Buffer Overflow EDB-31903 · remote · Jun 21, 2008 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 29656 vdb-entry
- https://sourceforge.net/tracker/?func=detail&atid=106208&aid=1942146&group_id=6208
- https://sourceforge.net/project/shownotes.php?group_id=6208&release_id=606115
- http://repo.or.cz/w/nasm.git?a=commit%3Bh=76ec8e73db16f4cf1453a142d03bcc74d528f72f
- MDVSA-2008:120 vendor-advisory
- 30594 third-party-advisory
- nasm-ppscan-bo(42995) vdb-entry
- 32059 third-party-advisory
- [oss-security] 20080611 Re: CVE id request: nasm off-by-one mailing-list
- ADV-2008-1811 vdb-entry
- USN-648-1 vendor-advisory
- 1020259 vdb-entry
- [oss-security] 20080611 CVE id request: nasm off-by-one mailing-list