Bug 1478913

Summary: nasm: "paste_tokens()" heap-based buffer overflow
Product: [Other] Security Response Reporter: Stefan Cornelius <scorneli>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: java-sig-commits, mizdebsk, msimacek
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-07 13:41:06 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:    
Bug Blocks: 1472886    

Description Stefan Cornelius 2017-08-07 13:34:36 UTC
A heap-based buffer overflow was reported in the "paste_tokens()" function in asm/preproc.c of nasm. An attacker could exploit this flaw to cause a crash or, possible, execute arbitrary code by tricking a user to process a specially crafted file using nasm.

External references:

Upstream bug report:
https://bugzilla.nasm.us/show_bug.cgi?id=3392415

Patch:
http://repo.or.cz/nasm.git/blobdiff/20d9c86eb1e088efe0093b31f6fb0952971566f1..f9ec5bbd2af6ff5276f1fd5ab52df4ed7b096344:/asm/preproc.c

Comment 2 Stefan Cornelius 2017-08-07 13:41:13 UTC
Statement:

Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.