Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1626549 - (CVE-2018-16517) CVE-2018-16517 nasm: NULL Pointer Dereference in asm/labels.c
CVE-2018-16517 nasm: NULL Pointer Dereference in asm/labels.c
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20180905,reported=2...
: Security
Depends On: 1626550 1626551
Blocks: 1626554
  Show dependency treegraph
 
Reported: 2018-09-07 11:29 EDT by Laura Pardo
Modified: 2018-10-17 12:29 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Laura Pardo 2018-09-07 11:29:07 EDT
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
Comment 1 Laura Pardo 2018-09-07 11:29:29 EDT
Created nasm tracking bugs for this issue:

Affects: fedora-all [bug 1626550]
Comment 4 Scott Gayou 2018-10-17 12:29:59 EDT
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");

                        else if (output_ins.label[0] != '.' ||
```

whereas mainline had:

```c
                if (!output_ins.label)
                    nasm_error(ERR_NONFATAL,
                               "EQU not preceded by label");

                if (output_ins.operands == 1 &&
                    (output_ins.oprs[0].type & IMMEDIATE) &&
                    output_ins.oprs[0].wrt == NO_SEG) {
```

Patch added back the else -- i.e. the if/then should bail if !output_ins.label.

Note You need to log in before you can comment on or make changes to this bug.