CVEfocus › CVE database › CVE-2024-31852

CVE-2024-31852

CVSS 5.9 MediumEPSS 1.2% (higher than 68% of CVEs)Published 2024-04-05Updated 2024-12-04Assigner: mitre

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

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
28Fix pending
2Under investigation
4Will not fix
61Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04llvm-toolchain-11Under investigationUBUNTU-CVE-2024-31852
Ubuntu 22.04llvm-toolchain-12Under investigationUBUNTU-CVE-2024-31852
Ubuntu 20.04llvm-toolchain-10Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 20.04llvm-toolchain-11Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 20.04llvm-toolchain-12Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 20.04llvm-toolchain-6.0Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 20.04llvm-toolchain-7Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 20.04llvm-toolchain-8Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 20.04llvm-toolchain-9Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 18.04llvm-toolchain-10Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 18.04llvm-toolchain-3.7Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 18.04llvm-toolchain-3.9Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 18.04llvm-toolchain-4.0Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 18.04llvm-toolchain-5.0Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 18.04llvm-toolchain-6.0Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 18.04llvm-toolchain-7Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 18.04llvm-toolchain-8Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 18.04llvm-toolchain-9Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 16.04llvm-toolchain-3.5Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 16.04llvm-toolchain-3.6Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 16.04llvm-toolchain-3.7Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 16.04llvm-toolchain-3.8Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 16.04llvm-toolchain-3.9Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 16.04llvm-toolchain-4.0Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 16.04llvm-toolchain-5.0Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 16.04llvm-toolchain-6.0Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 16.04llvm-toolchain-8Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 14.04llvm-toolchain-3.6Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 14.04llvm-toolchain-3.8Fix pendingUBUNTU-CVE-2024-31852
Ubuntu 14.04llvm-toolchain-3.9Fix pendingUBUNTU-CVE-2024-31852
Debian 13llvm-toolchain-17Will not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-31852
Debian 13llvm-toolchain-18Fixed1:18.1.3-1DEBIAN-CVE-2024-31852
Debian 12llvm-toolchain-14Will not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-31852
Debian 12llvm-toolchain-15Will not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-31852
Debian 12llvm-toolchain-16Will not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-31852
Red Hat Enterprise Linux 10clangNot affected
Red Hat Enterprise Linux 10clang-analyzerNot affected
Red Hat Enterprise Linux 10clang-develNot affected
Red Hat Enterprise Linux 10clang-libsNot affected
Red Hat Enterprise Linux 10clang-resource-filesystemNot affected
Red Hat Enterprise Linux 10clang-tools-extraNot affected
Red Hat Enterprise Linux 10compiler-rtNot affected
Red Hat Enterprise Linux 10git-clang-formatNot affected
Red Hat Enterprise Linux 10libompNot affected
Red Hat Enterprise Linux 10libomp-develNot affected
Red Hat Enterprise Linux 10lldNot affected
Red Hat Enterprise Linux 10lld-develNot affected
Red Hat Enterprise Linux 10lld-libsNot affected
Red Hat Enterprise Linux 10lldbNot affected
Red Hat Enterprise Linux 10lldb-develNot affected
Red Hat Enterprise Linux 10llvmNot affected
Red Hat Enterprise Linux 10llvm-develNot affected
Red Hat Enterprise Linux 10llvm-docNot affected
Red Hat Enterprise Linux 10llvm-filesystemNot affected
Red Hat Enterprise Linux 10llvm-googletestNot affected
Red Hat Enterprise Linux 10llvm-libsNot affected
Red Hat Enterprise Linux 10llvm-staticNot affected
Red Hat Enterprise Linux 10llvm-testNot affected
Red Hat Enterprise Linux 10llvm-toolsetNot affected
Red Hat Enterprise Linux 10python3-clangNot affected
Red Hat Enterprise Linux 10python3-litNot affected
Red Hat Enterprise Linux 10python3-lldbNot affected
Red Hat Enterprise Linux 9clangNot affected
Red Hat Enterprise Linux 9clang-analyzerNot affected
Red Hat Enterprise Linux 9clang-develNot affected
Red Hat Enterprise Linux 9clang-libsNot affected
Red Hat Enterprise Linux 9clang-resource-filesystemNot affected
Red Hat Enterprise Linux 9clang-tools-extraNot affected
Red Hat Enterprise Linux 9compiler-rtNot affected
Red Hat Enterprise Linux 9git-clang-formatNot affected
Red Hat Enterprise Linux 9libompNot affected
Red Hat Enterprise Linux 9libomp-develNot affected
Red Hat Enterprise Linux 9lldNot affected
Red Hat Enterprise Linux 9lld-develNot affected
Red Hat Enterprise Linux 9lld-libsNot affected
Red Hat Enterprise Linux 9lldbNot affected
Red Hat Enterprise Linux 9lldb-develNot affected
Red Hat Enterprise Linux 9llvmNot affected
Red Hat Enterprise Linux 9llvm-develNot affected
Red Hat Enterprise Linux 9llvm-docNot affected
Red Hat Enterprise Linux 9llvm-filesystemNot affected
Red Hat Enterprise Linux 9llvm-googletestNot affected
Red Hat Enterprise Linux 9llvm-libsNot affected
Red Hat Enterprise Linux 9llvm-staticNot affected
Red Hat Enterprise Linux 9llvm-testNot affected
Red Hat Enterprise Linux 9llvm-toolsetNot affected
Red Hat Enterprise Linux 9python3-clangNot affected
Red Hat Enterprise Linux 9python3-litNot affected
Red Hat Enterprise Linux 9python3-lldbNot affected
Red Hat Enterprise Linux 8llvmNot affected
Red Hat Enterprise Linux 8llvm-develNot affected
Red Hat Enterprise Linux 8llvm-docNot affected
Red Hat Enterprise Linux 8llvm-googletestNot affected
Red Hat Enterprise Linux 8llvm-libsNot affected
Red Hat Enterprise Linux 8llvm-staticNot affected
Red Hat Enterprise Linux 8llvm-testNot affected

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.