# CVE-2025-8842: NASM Netwide Assember preproc.c do\_directive use after free

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-11 · Modified: 2025-08-11
- Aliases: UBUNTU-CVE-2025-8842, DEBIAN-CVE-2025-8842
- Record: https://cvemate.com/vulnerability/CVE-2025-8842 · JSON: https://cvemate.com/vulnerability/CVE-2025-8842/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.268%, percentile 20.175%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 3 (reference)

## Affected

- debian nasm (Debian): All versions (No fix recorded)
- ubuntu nasm (Ubuntu): All versions (No fix recorded) \| \< 3.01-1ubuntu0.26.10.1
- nasm netwide assember: 2.17rc0
- nasm netwide\_assembler: 2.17:rc0

## References

- <https://vuldb.com/?id.319376>
- <https://vuldb.com/?ctiid.319376>
- <https://vuldb.com/?submit.623184>
- <https://bugzilla.nasm.us/show_bug.cgi?id=3392933>
- <https://drive.google.com/file/d/11vEV1vMHXO4BrDGhvWAMm0Qo1woiUwVV/view?usp=drive_link>
- <https://ubuntu.com/security/CVE-2025-8842>
- <https://www.cve.org/CVERecord?id=CVE-2025-8842>
- <https://security-tracker.debian.org/tracker/CVE-2025-8842>
- <https://ubuntu.com/security/notices/USN-9253-1>

---

Data as of 2026-12-05T09:54:36.904Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
