Bug 1214571 (CVE-2022-29654) - VUL-0: CVE-2022-29654: nasm: buffer overflow vulnerability in quote_for_pmake in asm/nasm.c
Summary: VUL-0: CVE-2022-29654: nasm: buffer overflow vulnerability in quote_for_pmake...
Status: RESOLVED WONTFIX
Alias: CVE-2022-29654
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/376027/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-29654:3.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-24 11:29 UTC by Alexander Bergmann
Modified: 2024-04-19 09:00 UTC (History)
5 users (show)

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


Attachments
Reproducer (387 bytes, text/plain)
2023-08-24 11:31 UTC, Alexander Bergmann
Details

Note You need to log in before you can comment on or make changes to this bug.
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.