Vulnerability · Published Apr 5, 2024 · Assigned by mitre

CVE-2024-31852

Medium 5.9

In plain English

A medium-severity security flaw in the llvm-toolchain-14 package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)1.0%top 37.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

LLVM before 18.1.3 generates code in which the LR register can be overwritten without data being saved to the stack, and thus there can sometimes be an exploitable error in the flow of control. This affects the ARM backend and can be demonstrated with Clang. NOTE: the vendor perspective is "we don't have strong objections for a CVE to be created ... It does seem that the likelihood of this miscompile enabling an exploit remains very low, because the miscompile resulting in this JOP gadget is such that the function is most likely to crash on most valid inputs to the function. So, if this function is covered by any testing, the miscompile is most likely to be discovered before the binary is shipped to production."

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12llvm-toolchain-14no fix listedDEBIAN-CVE-2024-31852
Debian:12llvm-toolchain-15no fix listedDEBIAN-CVE-2024-31852
Debian:12llvm-toolchain-16no fix listedDEBIAN-CVE-2024-31852
Debian:13llvm-toolchain-17no fix listedDEBIAN-CVE-2024-31852
Debian:13llvm-toolchain-181:18.1.3-1DEBIAN-CVE-2024-31852
Ubuntu:22.04:LTSllvm-toolchain-11no fix listedUBUNTU-CVE-2024-31852
Ubuntu:22.04:LTSllvm-toolchain-12no fix listedUBUNTU-CVE-2024-31852

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References