Skip to content
OpenAdvisories
High USN-9451-1 7 CVEs

nasm vulnerabilities

Published Dec 2, 2026 · Updated Dec 3, 2026

Summary

It was discovered that NASM incorrectly handled segment definitions when
generating IEEE object output, leading to a NULL pointer dereference. An
attacker could possibly use this issue to cause NASM to crash, resulting
in a denial of service. This issue only affected Ubuntu 22.04 LTS.
(CVE-2020-21528)

It was discovered that NASM did not properly handle relocations for which
no suitable symbol could be found when generating a.out object output,
leading to a NULL pointer dereference. An attacker could possibly use
this issue to cause NASM to crash, resulting in a denial of service. This
issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS.
(CVE-2022-44369)

It was discovered that NASM incorrectly handled the quoting of file names
when generating makefile dependency output, leading to a heap buffer
overflow. An attacker could possibly use this issue to cause NASM to
crash, resulting in a denial of service, or possibly execute arbitrary
code. This issue only affected Ubuntu 22.04 LTS. (CVE-2022-44370)

It was discovered that NASM incorrectly handled empty input files when
generating IEEE object output, leading to a NULL pointer dereference. An
attacker could possibly use this issue to cause NASM to crash, resulting
in a denial of service. This issue only affected Ubuntu 22.04 LTS.
(CVE-2022-46457)

It was discovered that NASM incorrectly handled invalid radix specifiers in
macro parameters, leading to a NULL pointer dereference. An attacker could
possibly use this issue to cause NASM to crash, resulting in a denial of
service. This issue only affected Ubuntu 26.04 LTS. (CVE-2025-8844)

It was discovered that NASM did not properly check bounds when handling
GROUP directives in OBJ output, leading to a heap buffer overflow. An
attacker could possibly use this issue to cause NASM to crash, resulting in
a denial of service, or possibly execute arbitrary code. (CVE-2026-6067)

It was discovered that NASM incorrectly handled dependency generation
options in response files, leading to a use-after-free. An attacker could
possibly use this issue to cause NASM to crash, resulting in a denial of
service, or possibly execute arbitrary code. (CVE-2026-6068)

Fixed packages 3

ReleasePackageFixed in
Ubuntu · Pro 22.04 LTS Pro:22.04:LTS nasm 2.15.05-1ubuntu0.1~esm4
Ubuntu · Pro 24.04 LTS Pro:24.04:LTS nasm 2.16.01-1ubuntu0.1~esm4
Ubuntu · Pro 26.04 LTS Pro:26.04:LTS nasm 3.01-1ubuntu0.26.04.1~esm2

Vulnerabilities 7

  • High 7.5

    CVE-2026-6067

    A heap buffer overflow vulnerability exists in the Netwide Assembler (NASM) due to a lack of bounds checking in the obj_directive() function. This vulnerability can be exploited by a user assembling a malicious .asm file, potentially leading to heap memory co…

  • Medium 6.5

    CVE-2026-6068

    NASM contains a heap use after free vulnerability in response file (-@) processing where a dangling pointer to freed memory is stored in the global depend_file and later dereferenced, as the response-file buffer is freed before the pointer is used, allowing f…

  • Medium 5.5

    NASM 2.16 (development) is vulnerable to 476: Null Pointer Dereference via output/outaout.c.

  • Medium 5.5

    NASM v2.16 was discovered to contain a segmentation violation in the component ieee_write_file at /output/outieee.c.

  • Low 3.3

    NASM Netwide Assember preproc.c parse_smacro_template null pointer dereference

    A vulnerability was determined in NASM Netwide Assember 2.17rc0. This vulnerability affects the function parse_smacro_template of the file preproc.c. The manipulation leads to null pointer dereference. Attacking locally is a requirement. The exploit has been …

  • Unscored —

    A Segmentation Fault issue discovered in in ieee_segment function in outieee.c in nasm 2.14.03 and 2.15 allows remote a…

  • Unscored —

    NASM v2.16 was discovered to contain a heap buffer overflow in the component quote_for_pmake() asm/nasm.c:856

References

  • report
    https://ubuntu.com/security/CVE-2020-21528
  • report
    https://ubuntu.com/security/CVE-2022-44369
  • report
    https://ubuntu.com/security/CVE-2022-44370
  • report
    https://ubuntu.com/security/CVE-2022-46457
  • report
    https://ubuntu.com/security/CVE-2025-8844
  • report
    https://ubuntu.com/security/CVE-2026-6067
  • report
    https://ubuntu.com/security/CVE-2026-6068