Llvm toolchain 3.6: LLVM before 18.1.3 generates code in which the LR register can be overwritten without data being
Affects llvm-toolchain-3.6Source GCVE Database
Not known to be exploited · CVSS 5.9 Medium.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 63% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 5 Apr 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 22.04 LTSllvm-toolchain-11pkg:deb/ubuntu/llvm-toolchain-11?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSllvm-toolchain-12pkg:deb/ubuntu/llvm-toolchain-12?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSllvm-toolchain-10pkg:deb/ubuntu/llvm-toolchain-10?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSllvm-toolchain-11pkg:deb/ubuntu/llvm-toolchain-11?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSllvm-toolchain-12pkg:deb/ubuntu/llvm-toolchain-12?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSllvm-toolchain-9pkg:deb/ubuntu/llvm-toolchain-9?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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."
References
- ubuntu.com/security/CVE-2024-31852 (opens in a new tab)
- github.com/llvm/llvm-project/issues/80287 (opens in a new tab)
- llvm.org/docs/Security.html (opens in a new tab)
- github.com/llvmbot/llvm-project/commit/0e16af8e4cf3a66ad5d078d52744ae2776f9c4b2 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-31852 (opens in a new tab)