JLSEC-2026-1572: Buffer Overflow
A heap buffer overflow vulnerability exists in the Netwide Assembler (NASM) due to a lack of bounds checking in the objdirective() function. This vulnerability can be exploited by a user assembling a malicious .asm file, potentially leading to heap memory corruption, denial of service (crash), and arbitrary code execution.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Users or automated build systems that invoke NASM to assemble untrusted or attacker-supplied .asm files are exposed. The attack requires local access to run the assembler and user interaction to process the malicious file.
What can exploitation cause?
Processing a malicious .asm file can corrupt heap memory and cause NASM to crash, resulting in denial of service. The vulnerability may also allow arbitrary code execution.
What should teams do if they cannot patch immediately?
Do not assemble .asm files from untrusted sources until an update is available. In build environments, restrict who can submit or modify assembly inputs and isolate NASM jobs handling potentially untrusted files.