{"id":"UBUNTU-CVE-2025-8842","details":"A vulnerability has been found in NASM Netwide Assember 2.17rc0. Affected by this issue is the function do_directive of the file preproc.c. The manipulation leads to use after free. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.","modified":"2026-01-20T18:46:49.334115Z","published":"2025-08-11T11:15:00Z","upstream":["CVE-2025-8842"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-8842"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-8842"},{"type":"REPORT","url":"https://bugzilla.nasm.us/show_bug.cgi?id=3392933"},{"type":"REPORT","url":"https://drive.google.com/file/d/11vEV1vMHXO4BrDGhvWAMm0Qo1woiUwVV/view?usp=drive_link"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.319376"},{"type":"REPORT","url":"https://vuldb.com/?id.319376"},{"type":"REPORT","url":"https://vuldb.com/?submit.623184"}],"affected":[{"package":{"name":"nasm","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/nasm@2.11.08-1ubuntu0.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.11.06-1really2.11.05-1","2.11.08-1","2.11.08-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.11.08-1ubuntu0.1","binary_name":"nasm"}],"priority_reason":"localhost access is needed"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-8842.json"}},{"package":{"name":"nasm","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/nasm@2.13.02-0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.13.01-2","2.13.02-0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.13.02-0.1","binary_name":"nasm"}],"priority_reason":"localhost access is needed"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-8842.json"}},{"package":{"name":"nasm","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/nasm@2.14.02-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.02-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.14.02-1","binary_name":"nasm"}],"priority_reason":"localhost access is needed"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-8842.json"}},{"package":{"name":"nasm","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/nasm@2.15.05-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.15.05-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.15.05-1","binary_name":"nasm"}],"priority_reason":"localhost access is needed"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-8842.json"}},{"package":{"name":"nasm","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/nasm@2.16.01-1build1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.16.01-1","2.16.01-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.16.01-1build1","binary_name":"nasm"}],"priority_reason":"localhost access is needed"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-8842.json"}},{"package":{"name":"nasm","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/nasm@2.16.03-1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.16.03-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.16.03-1","binary_name":"nasm"}],"priority_reason":"localhost access is needed"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-8842.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"},{"type":"Ubuntu","score":"low"}]}