CVE-2018-20535
published 2018-12-28CVE-2018-20535: There is a use-after-free at asm/preproc.c (function pp_getline) in Netwide Assembler (NASM) 2.14rc16 that will cause a denial of service during a line-number…
PriorityP418medium5.5CVSS 3.0
AVLACLPRNUIRSUCNINAH
EPSS
0.80%
52.7th percentile
There is a use-after-free at asm/preproc.c (function pp_getline) in Netwide Assembler (NASM) 2.14rc16 that will cause a denial of service during a line-number increment attempt.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | nasm | < nasm 2.15.04-1 (bookworm) | nasm 2.15.04-1 (bookworm) |
| nasm | nasm | >= 0 < 2.15.04-1 | 2.15.04-1 |
| nasm | nasm | >= 0 < 2.15.04-1 | 2.15.04-1 |
| nasm | nasm | >= 0 < 2.15.04-1 | 2.15.04-1 |
| nasm | nasm | >= 0 < 2.15.04-1 | 2.15.04-1 |
| nasm | netwide_assembler | — | — |
CVSS provenance
nvdv3.05.5MEDIUMCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv5.5MEDIUM
vendor_debian5.5LOW
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
nasm: Use-after-free at asm/preproc.c resulting in a denial of service
vendor_redhat·2018-11-18·CVSS 5.5
CVE-2018-20535 [MEDIUM] CWE-416 nasm: Use-after-free at asm/preproc.c resulting in a denial of service
nasm: Use-after-free at asm/preproc.c resulting in a denial of service
There is a use-after-free at asm/preproc.c (function pp_getline) in Netwide Assembler (NASM) 2.14rc16 that will cause a denial of service during a line-number increment attempt.
Package: nasm (Red Hat Enterprise Linux 5) - Not affected
Package: nasm (Red Hat Enterprise Linux 6) - Will not fix
Package: nasm (Red Hat Enterprise Linux 7) - Fix deferred
Package: nasm (Red Hat Enterprise Linux 8) - Will not fix
Debian
CVE-2018-20535: nasm - There is a use-after-free at asm/preproc.c (function pp_getline) in Netwide Asse...
vendor_debian·2018·CVSS 5.5
CVE-2018-20535 [MEDIUM] CVE-2018-20535: nasm - There is a use-after-free at asm/preproc.c (function pp_getline) in Netwide Asse...
There is a use-after-free at asm/preproc.c (function pp_getline) in Netwide Assembler (NASM) 2.14rc16 that will cause a denial of service during a line-number increment attempt.
Scope: local
bookworm: resolved (fixed in 2.15.04-1)
bullseye: resolved (fixed in 2.15.04-1)
forky: resolved (fixed in 2.15.04-1)
sid: resolved (fixed in 2.15.04-1)
trixie: resolved (fixed in 2.15.04-1)
GHSA
GHSA-rvm6-q4p6-g665: There is a use-after-free at asm/preproc
ghsa_unreviewed·2022-05-14
CVE-2018-20535 [MEDIUM] CWE-416 GHSA-rvm6-q4p6-g665: There is a use-after-free at asm/preproc
There is a use-after-free at asm/preproc.c (function pp_getline) in Netwide Assembler (NASM) 2.14rc16 that will cause a denial of service during a line-number increment attempt.
OSV
CVE-2018-20535: There is a use-after-free at asm/preproc
osv·2018-12-28·CVSS 5.5
CVE-2018-20535 [MEDIUM] CVE-2018-20535: There is a use-after-free at asm/preproc
There is a use-after-free at asm/preproc.c (function pp_getline) in Netwide Assembler (NASM) 2.14rc16 that will cause a denial of service during a line-number increment attempt.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-20535 nasm: Use-after-free at asm/preproc.c resulting in a denial of service
bugzilla·2019-01-07·CVSS 5.5
CVE-2018-20535 [MEDIUM] CVE-2018-20535 nasm: Use-after-free at asm/preproc.c resulting in a denial of service
CVE-2018-20535 nasm: Use-after-free at asm/preproc.c resulting in a denial of service
A use-after-free vulnerability was found in nasm. A specially crafted file could cause the application to crash.
Upstream issue:
https://bugzilla.nasm.us/show_bug.cgi?id=3392530
Discussion:
Created nasm tracking bugs for this issue:
Affects: fedora-all [bug 1663909]
---
Setting devel cond NAK - waiting on upstream fix.
---
Red Hat Enterprise 6 and 7 are vulnerable. Valgrind output matches upstream's ASAN output relatively well:
```
poc:15: error: label or instruction expected at start of line
poc:16: error: attempt to define a local label before any non-local labels
poc:18: error: parser: instruction expected
poc:18: error: parser: instruction expected
poc:18: error: label or instruction expect
Bugzilla
CVE-2018-1000886 CVE-2018-20535 CVE-2018-20538 nasm: various flaws [fedora-all]
bugzilla·2019-01-07·CVSS 5.5
CVE-2018-1000886 [MEDIUM] CVE-2018-1000886 CVE-2018-20535 CVE-2018-20538 nasm: various flaws [fedora-all]
CVE-2018-1000886 CVE-2018-20535 CVE-2018-20538 nasm: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versio
2018-12-28
Published