Bug 1559905 (CVE-2018-8881)

Summary: CVE-2018-8881 nasm: Heap overflow in function tokenize in asm/preproc.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: java-sig-commits, mizdebsk
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nasm 2.13.03 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 19:58:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1559910, 1567395, 1567396    
Bug Blocks: 1559921    

Description Laura Pardo 2018-03-23 14:13:30 UTC
Netwide Assembler (NASM) 2.13.02rc2 has a heap-based buffer over-read in the function tokenize in asm/preproc.c, related to an unterminated string.


References:
https://bugzilla.nasm.us/show_bug.cgi?id=3392446

Patch:
https://github.com/cyrillos/nasm/commit/3144e84add8b152cc7a71e44617ce6f21daa4ba3

Comment 3 Pedro YĆ³ssis Silva Barbosa 2018-04-16 18:41:34 UTC
Based on the description, this issue affects nasm shipped by Red Hat Enterprise Linux 6 and 7. However, the reproducer attached in https://bugzilla.nasm.us/show_bug.cgi?id=3392446 did not work here.