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....
HighCVSS 7.8
EPSS 2.9%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 5 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/nasm(Debian 12) | < 2.13.02-0.1 | 2.13.02-0.1 | Fixed |
| debian/nasm(Debian 13) | < 2.13.02-0.1 | 2.13.02-0.1 | Fixed |
| debian/nasm(Debian 14) | < 2.13.02-0.1 | 2.13.02-0.1 | Fixed |
| ubuntu/nasm(Ubuntu 14.04) | < 2.10.09-1ubuntu0.1; = 2.10.07-1; = 2.10.09-1 | 2.10.09-1ubuntu0.1 | Fixed |
| ubuntu/nasm(Ubuntu 16.04) | < 2.11.08-1ubuntu0.1; = 2.11.06-1really2.11.05-1; = 2.11.08-1 | 2.11.08-1ubuntu0.1 | Fixed |
| Canonical Ubuntu Linux | = 14.04 | No fix listed | Versions listed |
| nasm netwide assembler | = 2.14-rc0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/nasm(Debian:12) | < 2.13.02-0.1 | 2.13.02-0.1 |
| debian/nasm(Debian:13) | < 2.13.02-0.1 | 2.13.02-0.1 |
| debian/nasm(Debian:14) | < 2.13.02-0.1 | 2.13.02-0.1 |
| nasm netwide assembler | = 2.14-rc0 | No fix listed |
| Canonical Ubuntu Linux | = 14.04 | No fix listed |
| ubuntu/nasm(Ubuntu:14.04) | < 2.10.09-1ubuntu0.1 | 2.10.09-1ubuntu0.1 |
| ubuntu/nasm(Ubuntu:14.04) | = 2.10.07-1 | No fix listed |
| ubuntu/nasm(Ubuntu:14.04) | = 2.10.09-1 | No fix listed |
| ubuntu/nasm(Ubuntu:16.04) | < 2.11.08-1ubuntu0.1 | 2.11.08-1ubuntu0.1 |
| ubuntu/nasm(Ubuntu:16.04) | = 2.11.06-1really2.11.05-1 | No fix listed |
| ubuntu/nasm(Ubuntu:16.04) | = 2.11.08-1 | No fix listed |
References
- Debian Security Tracker CVE-2017-10686 vendor-advisory
- bugzilla.nasm.us exploit issue-tracking patch third-party-advisory vdb-entry
- GLSA-201903-19 vendor-advisory
- USN-3694-1 third-party-advisory vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking