Bug 1214571 (CVE-2022-29654)

Summary: VUL-0: CVE-2022-29654: nasm: buffer overflow vulnerability in quote_for_pmake in asm/nasm.c
Product: [Novell Products] SUSE Security Incidents Reporter: Alexander Bergmann <abergmann>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED WONTFIX QA Contact: Security Team bot <security-team>
Severity: Minor    
Priority: P3 - Medium CC: abergmann, carlos.lopez, mvetter, security-team, stoyan.manolov
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/376027/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-29654:3.3:(AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Reproducer

Description Alexander Bergmann 2023-08-24 11:29:42 UTC
CVE-2022-29654

Buffer overflow vulnerability in quote_for_pmake in asm/nasm.c in nasm before
2.15.05 allows attackers to cause a denial of service via crafted file.

No upstream fix available. 

Note: The above problem was found by running nasm 2.15.05. So the correct notation would be <= 2.15.05. 

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-29654
https://www.cve.org/CVERecord?id=CVE-2022-29654
https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html
https://gist.github.com/naihsin/b96e2c5c2c81621b46557fd7aacd165f
https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/
Comment 1 Alexander Bergmann 2023-08-24 11:31:52 UTC
Created attachment 868990 [details]
Reproducer

# nasm -t -Z/dev/null -g -O0 -o /dev/null -M -f bin ./CVE-2022-29654.poc
Segmentation fault (core dumped)
Comment 2 Alexander Bergmann 2023-08-24 11:32:22 UTC
Note: Do not trust data from unknown sources. Do not assemble/disassemble binaries from unknown sources without a sandbox environment that protects you from possible attacks.

In general: This is not a severe issue. It can only be exploited if general security measurements and best practices are not followed.
Comment 4 Michael Vetter 2023-09-20 08:08:10 UTC
Please see https://bugzilla.suse.com/show_bug.cgi?id=1214499#c4
Comment 5 Carlos López 2024-04-19 09:00:14 UTC
Closing as WONTFIX as discussed above.