Heap-based buffer overflow in NASM - CVE-2022-44370
Published: December 27, 2023
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the quote_for_pmake() function in asm/nasm.c. A remote attacker can pass specially crafted file to the compiler, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Amazon Linux AMI
openEuler
nasm
nasm-debuginfo
nasm-debugsource
nasm-help
dev-lang/nasm
How to mitigate CVE-2022-44370
nasm - update to 2.15.03-6
nasm-debuginfo - update to 2.15.03-6
nasm-debugsource - update to 2.15.03-6
nasm-help - update to 2.15.03-6
dev-lang/nasm - update to 2.16.01