CVE-2017-10686

nasm: Use-after-free in the detoken() function

Published Jun 29, 2017 CVSS 3.0 · 7.8 High EPSS 2.9% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1041-1 nasm security update
EUVD EUVD EUVD-2017-2333 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.
Ubuntu USN Ubuntu USN USN-3694-1 NASM vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 5:41 PM
Reserved
Jun 29, 2017, 12:00 AM
Status
Modified
Published
Jun 29, 2017, 11:29 PM
Modified
Jun 17, 2026, 1:00 AM
Severity
Moderate
Public date
Jun 24, 2017, 12:00 AM