Use After Free in Nasm Netwide Assembler
CVE-2017-10686
In Netwide Assembler (NASM) 2.14rc0, there are multiple heap use after free vulnerabilities in the tool nasm. The related heap is allocated in the token() function and freed in the detoken() function (called by pp_getline()) - it is used again at multiple positions later that could cause multiple damages. For example, it causes a corrupted double-linked list in detoken(), a double free or corruption in delete_Token(), and an out-of-bounds write in detoken(). It has a high possibility to lead to a remote code execution attack.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.029, 87.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Nasm Netwide Assembler — versions 2.14
- Canonical Ubuntu Linux — versions 14.04
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (ARPSyndicate/cve-scores, strongcourage/uafbench). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- USN-3694-1 (vendor-advisory, Third Party Advisory)
- bugzilla.nasm.us/show_bug.cgi (Exploit, Patch, VDB Entry, Third Party Advisory, Issue Tracking)
- GLSA-201903-19 (vendor-advisory)