Skip to content
Fencer Vulns
medium 5.9

CVE-2024-31852 json

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 som…

published 2024-04-05 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-29722

cvss
5.9
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 62%
public exploits
0
none known

Summary

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."

Patch / fix

  • llvm-toolchain-18 Debian 13 1:18.1.3-1

debian advisories DEBIAN-CVE-2024-31852

  • lld Azure Linux 3.0 18.1.2-2
  • lldb Azure Linux 3.0 18.1.2-2
  • llvm Azure Linux 3.0 18.1.2-3
  • clang Azure Linux 3.0 18.1.2-2
  • rust Azure Linux 3.0 1.75.0-9
  • compiler-rt Azure Linux 3.0 18.1.2-2
  • clang16 CBL-Mariner 2.0 16.0.0-1
  • rust CBL-Mariner 2.0 1.72.0-8

azure linux advisories AZL-39713AZL-39728AZL-39758AZL-39776AZL-39785AZL-39791

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-31852 updated cvss 4.2

llvm: LR register can be overwritten without data being saved to the stack on ARM

  • Red Hat Enterprise Linux 8 llvm, llvm-libs, llvm-test, llvm-googletest Red Hat Enterprise Linux 9 lld, lldb, llvm, clang, libomp, lld-libs, +14 more Red Hat Enterprise Linux 10 llvm
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.99% chance of exploitation in the next 30 days, higher than 62% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CNA 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.