Bug 1214516 (CVE-2020-18780)

Summary: VUL-0: CVE-2020-18780: nasm: use-afterfree in function new_Token in asm/preproc.c
Product: [Novell Products] SUSE Security Incidents Reporter: Alexander Bergmann <abergmann>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Minor    
Priority: P5 - None CC: abergmann, security-team
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/375941/
Whiteboard:
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alexander Bergmann 2023-08-23 08:51:25 UTC
CVE-2020-18780

A Use After Free vulnerability in function new_Token in asm/preproc.c in nasm
2.14.02 allows attackers to cause a denial of service via crafted nasm command.

The listed upstream bug (https://bugzilla.nasm.us/show_bug.cgi?id=3392634) was closed as DUPLICATE. The referenced bug report (https://bugzilla.nasm.us/show_bug.cgi?id=3392711) was already fixed with the following commit:

https://github.com/netwide-assembler/nasm/commit/7c88289e222dc5ef9f53f9e86ecaab1924744b88

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-18780
https://www.cve.org/CVERecord?id=CVE-2020-18780
https://bugzilla.nasm.us/show_bug.cgi?id=3392634
https://bugzilla.nasm.us/show_bug.cgi?id=3392711
Comment 1 Alexander Bergmann 2023-08-23 08:54:17 UTC
The fix is already present in:

SUSE:SLE-15-SP5:GA
SUSE:ALP:Source:Standard:1.0

Older code streams do not have the expand_one_smacro() function that introduced the issue.

SUSE:SLE-12:Update
SUSE:SLE-15:Update


Closing as bug as fixed.