{"schemaVersion":3,"id":"CVE-2025-8842","aliases":["UBUNTU-CVE-2025-8842","DEBIAN-CVE-2025-8842"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2025-08-11T10:32:09.151Z","modified":"2025-08-11T12:34:33.576Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":4.8,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"CVE.org","score":4.3,"severity":"medium","vector":"AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":4.8,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":1.9,"severity":"low","vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:L/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00235,"percentile":0.13571,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.009000000000000024,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00226},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00235,"percentile":0.13571}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00226,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00235,"percentile":0.13571}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_145033C8EEE11C38","name":"Exploit Reference (drive.google.com)","source":"reference","url":"https://drive.google.com/file/d/11vEV1vMHXO4BrDGhvWAMm0Qo1woiUwVV/view?usp=drive_link","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_82F3102BF8E2802D","name":"Exploit Reference (vuldb.com)","source":"reference","url":"https://vuldb.com/?submit.623184","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_4B66C44F5291DEAC","name":"Exploit Reference (bugzilla.nasm.us)","source":"reference","url":"https://bugzilla.nasm.us/show_bug.cgi?id=3392933","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"},{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"debian","product":"nasm","name":"nasm","label":"nasm","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/nasm","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"nasm","name":"nasm","label":"nasm","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/nasm","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"nasm","product":"netwide assember","name":"Netwide Assember","label":"netwide assember","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.17rc0","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.17rc0","eol":null,"hubHref":"/vendor/nasm/netwide_assember"},{"vendor":"nasm","product":"netwide_assembler","name":"netwide assembler","label":"netwide_assembler","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.17:rc0","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.17:rc0","eol":null,"hubHref":"/vendor/nasm/netwide_assembler"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://vuldb.com/?id.319376","label":"vuldb.com?id.319376","hostname":"vuldb.com","tags":["VDB Entry","Technical Description","REPORT","Third Party Advisory"]},{"url":"https://vuldb.com/?ctiid.319376","label":"vuldb.com?ctiid.319376","hostname":"vuldb.com","tags":["Signature","Permissions Required","REPORT","VDB Entry"]},{"url":"https://vuldb.com/?submit.623184","label":"vuldb.com?submit.623184","hostname":"vuldb.com","tags":["Third Party Advisory","REPORT","Exploit","VDB Entry"]},{"url":"https://bugzilla.nasm.us/show_bug.cgi?id=3392933","label":"bugzilla.nasm.us/show_bug.cgi?id=3392933","hostname":"bugzilla.nasm.us","tags":["Issue Tracking","REPORT","Exploit","Vendor Advisory"]},{"url":"https://drive.google.com/file/d/11vEV1vMHXO4BrDGhvWAMm0Qo1woiUwVV/view?usp=drive_link","label":"drive.google.com/file/d/11vEV1vMHXO4BrDGhvWAMm0Qo1woiUwVV/view?usp=drive_link","hostname":"drive.google.com","tags":["Exploit","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2025-8842","label":"ubuntu.com/security/CVE-2025-8842","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-8842","label":"www.cve.org/CVERecord?id=CVE-2025-8842","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-8842","label":"security-tracker.debian.org/tracker/CVE-2025-8842","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-08-11T10:32:09.151Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-08-11T12:34:33.576Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:47:16.630Z","stale":false,"partial":false}}