CVE-2018-16517
published 2018-09-06CVE-2018-16517: asm/labels.c in Netwide Assembler (NASM) is prone to NULL Pointer Dereference, which allows the attacker to cause a denial of service via a crafted file.
PriorityP425medium5.5CVSS 3.1
AVLACLPRNUIRSUCNINAH
EXPLOIT
EPSS
5.17%
91.4th percentile
asm/labels.c in Netwide Assembler (NASM) is prone to NULL Pointer Dereference, which allows the attacker to cause a denial of service via a crafted file.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | nasm | < nasm 2.14-1 (bookworm) | nasm 2.14-1 (bookworm) |
| nasm | nasm | >= 0 < 2.14-1 | 2.14-1 |
| nasm | nasm | >= 0 < 2.14-1 | 2.14-1 |
| nasm | nasm | >= 0 < 2.14-1 | 2.14-1 |
| nasm | nasm | >= 0 < 2.14-1 | 2.14-1 |
| nasm | netwide_assembler | <= 2.13.03 | — |
| nasm | netwide_assembler | — | — |
| nasm | netwide_assembler | — | — |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/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
CVEs like this are exactly what “Exploited This Week” covers.
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.
GHSA
GHSA-v4mp-339h-9w7f: asm/labels
ghsa_unreviewed·2022-05-13
CVE-2018-16517 [MEDIUM] CWE-476 GHSA-v4mp-339h-9w7f: asm/labels
asm/labels.c in Netwide Assembler (NASM) is prone to NULL Pointer Dereference, which allows the attacker to cause a denial of service via a crafted file.
OSV
CVE-2018-16517: asm/labels
osv·2018-09-06·CVSS 5.5
CVE-2018-16517 [MEDIUM] CVE-2018-16517: asm/labels
asm/labels.c in Netwide Assembler (NASM) is prone to NULL Pointer Dereference, which allows the attacker to cause a denial of service via a crafted file.
Red Hat
nasm: NULL Pointer Dereference in asm/labels.c
vendor_redhat·2018-09-05·CVSS 5.5
CVE-2018-16517 [MEDIUM] CWE-476 nasm: NULL Pointer Dereference in asm/labels.c
nasm: NULL Pointer Dereference in asm/labels.c
asm/labels.c in Netwide Assembler (NASM) is prone to NULL Pointer Dereference, which allows the attacker to cause a denial of service via a crafted file.
Package: nasm (Red Hat Enterprise Linux 5) - Not affected
Package: nasm (Red Hat Enterprise Linux 6) - Not affected
Package: nasm (Red Hat Enterprise Linux 7) - Not affected
Package: nasm (Red Hat Enterprise Linux 8) - Will not fix
Debian
CVE-2018-16517: nasm - asm/labels.c in Netwide Assembler (NASM) is prone to NULL Pointer Dereference, w...
vendor_debian·2018·CVSS 5.5
CVE-2018-16517 [MEDIUM] CVE-2018-16517: nasm - asm/labels.c in Netwide Assembler (NASM) is prone to NULL Pointer Dereference, w...
asm/labels.c in Netwide Assembler (NASM) is prone to NULL Pointer Dereference, which allows the attacker to cause a denial of service via a crafted file.
Scope: local
bookworm: resolved (fixed in 2.14-1)
bullseye: resolved (fixed in 2.14-1)
forky: resolved (fixed in 2.14-1)
sid: resolved (fixed in 2.14-1)
trixie: resolved (fixed in 2.14-1)
No detection rules found.
Bugzilla
CVE-2018-16517 nasm: NULL Pointer Dereference in asm/labels.c [fedora-all]
bugzilla·2018-09-07·CVSS 5.5
CVE-2018-16517 [MEDIUM] CVE-2018-16517 nasm: NULL Pointer Dereference in asm/labels.c [fedora-all]
CVE-2018-16517 nasm: NULL Pointer Dereference in asm/labels.c [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 versions of
Bugzilla
CVE-2018-16517 nasm: NULL Pointer Dereference in asm/labels.c
bugzilla·2018-09-07·CVSS 5.5
CVE-2018-16517 [MEDIUM] CVE-2018-16517 nasm: NULL Pointer Dereference in asm/labels.c
CVE-2018-16517 nasm: NULL Pointer Dereference in asm/labels.c
A flaw was found in Netwide Assembler (NASM). A NULL Pointer Dereference in asm/labels.c which allows the attacker to cause a denial of service via a crafted file.
References:
https://bugzilla.nasm.us/show_bug.cgi?id=3392513
https://fakhrizulkifli.github.io/CVE-2018-16517.html
Discussion:
Created nasm tracking bugs for this issue:
Affects: fedora-all [bug 1626550]
---
Upstream Commit:
https://repo.or.cz/nasm.git/blobdiff/703e5658498222c3aa77e57fefb466d264abbe58..e996d28c70d45008085322b442b44a9224308548:/asm/nasm.c
---
Doesn't reproduce on any RHEL version.
Looks like it boils down to this (presumably "correct" logic in our older release):
```c
if (!output_ins.label)
nasm_error(ERR_NONFATAL,
"EQU not preceded by label
http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00015.htmlhttp://lists.opensuse.org/opensuse-security-announce/2020-07/msg00017.htmlhttp://packetstormsecurity.com/files/152566/Netwide-Assembler-NASM-2.14rc15-Null-Pointer-Dereference.htmlhttps://bugzilla.nasm.us/show_bug.cgi?id=3392513https://fakhrizulkifli.github.io/CVE-2018-16517.htmlhttps://www.exploit-db.com/exploits/46726/http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00015.htmlhttp://lists.opensuse.org/opensuse-security-announce/2020-07/msg00017.htmlhttp://packetstormsecurity.com/files/152566/Netwide-Assembler-NASM-2.14rc15-Null-Pointer-Dereference.htmlhttps://bugzilla.nasm.us/show_bug.cgi?id=3392513https://fakhrizulkifli.github.io/CVE-2018-16517.htmlhttps://www.exploit-db.com/exploits/46726/
2018-09-06
Published