Bug 1086186 - (CVE-2018-8883) VUL-1: CVE-2018-8883: nasm: Buffer over-read in the parse_line function in asm/parser.c via uncontrolled access to nasm_reg_flags
(CVE-2018-8883)
VUL-1: CVE-2018-8883: nasm: Buffer over-read in the parse_line function in as...
Status: IN_PROGRESS
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P4 - Low : Minor
: ---
Assigned To: Michael Vetter
Security Team bot
https://smash.suse.de/issue/202308/
CVSSv3:SUSE:CVE-2018-8883:3.3:(AV:L/...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-21 09:46 UTC by Johannes Segitz
Modified: 2020-11-04 15:18 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Reproducer (1.94 KB, text/plain)
2018-03-21 09:46 UTC, Johannes Segitz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Segitz 2018-03-21 09:46:06 UTC
Created attachment 764395 [details]
Reproducer

CVE-2018-8883

Netwide Assembler (NASM) 2.13.02rc2 has a buffer over-read in the parse_line
function in asm/parser.c via uncontrolled access to nasm_reg_flags.

For SLE 11 the macro isn't used but nasm_reg_flags is accessed directly. SLE 12 uses the marco. Reproducer doesn't work without ASAN

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-8883
http://www.cvedetails.com/cve/CVE-2018-8883/
https://bugzilla.nasm.us/show_bug.cgi?id=3392447
Comment 1 Adam Majer 2018-07-06 13:01:40 UTC
Simple reproducer is just,

   ret &format:

./nasm t.asm 
=================================================================
==13725==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000000606a28 at pc 0x00000042b708 bp 0x7ffe78978800 sp 0x7ffe789787f8
READ of size 8 at 0x000000606a28 thread T0
    #0 0x42b707 in parse_line asm/parser.c:892
    #1 0x408945 in assemble_file asm/nasm.c:1447
    #2 0x404bec in main asm/nasm.c:566
    #3 0x7f2ba32dff49 in __libc_start_main (/lib64/libc.so.6+0x20f49)
    #4 0x4025d9 in _start (/home/adamm/work/nasm/nasm/nasm+0x4025d9)
Comment 3 Swamp Workflow Management 2020-07-06 16:14:54 UTC
SUSE-SU-2020:1843-1: An update that solves 13 vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 1084631,1086186,1086227,1086228,1090519,1090840,1106878,1107592,1107594,1108404,1115758,1115774,1115795,1173538
CVE References: CVE-2018-1000667,CVE-2018-10016,CVE-2018-10254,CVE-2018-10316,CVE-2018-16382,CVE-2018-16517,CVE-2018-16999,CVE-2018-19214,CVE-2018-19215,CVE-2018-19216,CVE-2018-8881,CVE-2018-8882,CVE-2018-8883
Sources used:
SUSE Linux Enterprise Module for Development Tools 15-SP2 (src):    nasm-2.14.02-3.4.1
SUSE Linux Enterprise Module for Development Tools 15-SP1 (src):    nasm-2.14.02-3.4.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 4 Swamp Workflow Management 2020-07-13 19:13:02 UTC
openSUSE-SU-2020:0954-1: An update that solves 13 vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 1084631,1086186,1086227,1086228,1090519,1090840,1106878,1107592,1107594,1108404,1115758,1115774,1115795,1173538
CVE References: CVE-2018-1000667,CVE-2018-10016,CVE-2018-10254,CVE-2018-10316,CVE-2018-16382,CVE-2018-16517,CVE-2018-16999,CVE-2018-19214,CVE-2018-19215,CVE-2018-19216,CVE-2018-8881,CVE-2018-8882,CVE-2018-8883
Sources used:
openSUSE Leap 15.2 (src):    nasm-2.14.02-lp152.4.3.1
Comment 5 Swamp Workflow Management 2020-07-13 19:15:51 UTC
openSUSE-SU-2020:0952-1: An update that solves 13 vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 1084631,1086186,1086227,1086228,1090519,1090840,1106878,1107592,1107594,1108404,1115758,1115774,1115795,1173538
CVE References: CVE-2018-1000667,CVE-2018-10016,CVE-2018-10254,CVE-2018-10316,CVE-2018-16382,CVE-2018-16517,CVE-2018-16999,CVE-2018-19214,CVE-2018-19215,CVE-2018-19216,CVE-2018-8881,CVE-2018-8882,CVE-2018-8883
Sources used:
openSUSE Leap 15.1 (src):    nasm-2.14.02-lp151.3.3.1