Skip to main content
CVE-2024-31852VulnerabilityPublished Updated

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

0
Compare
Authoritative record:CVE-2024-31852· Medium 5.9

Not known to be exploited · CVSS 5.9 Medium.

Data as of 24 Nov 2026, 21:14 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 22.04 LTSllvm-toolchain-11pkg:deb/ubuntu/llvm-toolchain-11?arch=source&distro=jammyOther threatsAffected
  • =1:11.0.1-2ubuntu5
  • =1:11.1.0-6
Fixed in–
Ubuntu 22.04 LTSllvm-toolchain-12pkg:deb/ubuntu/llvm-toolchain-12?arch=source&distro=jammyOther threatsAffected
  • =1:12.0.1-8build1
  • =1:12.0.1-16
  • =1:12.0.1-19ubuntu3
Fixed in–
Ubuntu 20.04 LTSllvm-toolchain-10pkg:deb/ubuntu/llvm-toolchain-10?arch=source&distro=focalOther threatsAffected
  • 1:10.0.0-1ubuntu1 – 1:10~++20200121023453+de4b2a7fad6-1~exp1
14 affected builds
Fixed in–
Ubuntu 20.04 LTSllvm-toolchain-11pkg:deb/ubuntu/llvm-toolchain-11?arch=source&distro=focalOther threatsAffected
  • =1:11.0.0-2~ubuntu20.04.1
Fixed in–
Ubuntu 20.04 LTSllvm-toolchain-12pkg:deb/ubuntu/llvm-toolchain-12?arch=source&distro=focalOther threatsAffected
  • =1:12.0.0-3ubuntu1~20.04.3
  • =1:12.0.0-3ubuntu1~20.04.4
  • =1:12.0.0-3ubuntu1~20.04.5
Fixed in–
Ubuntu 20.04 LTSllvm-toolchain-9pkg:deb/ubuntu/llvm-toolchain-9?arch=source&distro=focalOther threatsAffected
  • 1:9-2 – 1:9.0.1~+rc2-1~exp1ubuntu1
15 affected builds
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

Community reviews

Loading reviews…