Vulnerabilities / CVE-2026-6068

critical

CVE-2026-6068

nasm: NASM: Heap use after free vulnerability in response file processing

Published Modified CWE 416
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.6CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Red Hat6.8CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium).

Description

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 for data corruption or remote code execution.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 5.0nasm, nasm-doc3.02-1.ph5
debian 11nasmno fix listed
debian 12nasmno fix listed
debian 13nasmno fix listed
debian 14nasmno fix listed
echonasmno fix listed
rapidfort alma 10nasmno fix listed
rapidfort alma 8nasmno fix listed
rapidfort alma 9nasmno fix listed
rapidfort amazon linux 2023nasmno fix listed
rapidfort debian 12nasm, rf-nasmno fix listed
rapidfort debian 13nasm, rf-nasmno fix listed
Show all 22 entries from 16 sources
SourcePackageFixed in
Photon OS 5.0nasm3.02-1.ph5
Photon OS 5.0nasm-doc3.02-1.ph5
debian 11nasmno fix listed
debian 12nasmno fix listed
debian 13nasmno fix listed
debian 14nasmno fix listed
echonasmno fix listed
rapidfort alma 10nasmno fix listed
rapidfort alma 8nasmno fix listed
rapidfort alma 9nasmno fix listed
rapidfort amazon linux 2023nasmno fix listed
rapidfort debian 12nasmno fix listed
rapidfort debian 12rf-nasmno fix listed
rapidfort debian 13nasmno fix listed
rapidfort debian 13rf-nasmno fix listed
rapidfort fedora 43nasm2.16.03-5.fc43
rapidfort fedora 43nasm-doc2.16.03-5.fc43
rapidfort Red Hat 10nasmno fix listed
rapidfort Red Hat 9nasmno fix listed
Red Hatnasmno fix listed
Red Hatnasm-docno fix listed
Red Hatnasm-rdoffno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.