Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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