CVE-2024-31852
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | llvm-toolchain-11 | Under investigation | UBUNTU-CVE-2024-31852 | |
| Ubuntu 22.04 | llvm-toolchain-12 | Under investigation | UBUNTU-CVE-2024-31852 | |
| Ubuntu 20.04 | llvm-toolchain-10 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 20.04 | llvm-toolchain-11 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 20.04 | llvm-toolchain-12 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 20.04 | llvm-toolchain-6.0 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 20.04 | llvm-toolchain-7 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 20.04 | llvm-toolchain-8 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 20.04 | llvm-toolchain-9 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 18.04 | llvm-toolchain-10 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 18.04 | llvm-toolchain-3.7 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 18.04 | llvm-toolchain-3.9 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 18.04 | llvm-toolchain-4.0 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 18.04 | llvm-toolchain-5.0 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 18.04 | llvm-toolchain-6.0 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 18.04 | llvm-toolchain-7 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 18.04 | llvm-toolchain-8 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 18.04 | llvm-toolchain-9 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 16.04 | llvm-toolchain-3.5 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 16.04 | llvm-toolchain-3.6 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 16.04 | llvm-toolchain-3.7 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 16.04 | llvm-toolchain-3.8 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 16.04 | llvm-toolchain-3.9 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 16.04 | llvm-toolchain-4.0 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 16.04 | llvm-toolchain-5.0 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 16.04 | llvm-toolchain-6.0 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 16.04 | llvm-toolchain-8 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 14.04 | llvm-toolchain-3.6 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 14.04 | llvm-toolchain-3.8 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Ubuntu 14.04 | llvm-toolchain-3.9 | Fix pending | UBUNTU-CVE-2024-31852 | |
| Debian 13 | llvm-toolchain-17 | Will 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 13 | llvm-toolchain-18 | Fixed | 1:18.1.3-1 | DEBIAN-CVE-2024-31852 |
| Debian 12 | llvm-toolchain-14 | Will 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 12 | llvm-toolchain-15 | Will 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 12 | llvm-toolchain-16 | Will 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 10 | clang | Not affected | ||
| Red Hat Enterprise Linux 10 | clang-analyzer | Not affected | ||
| Red Hat Enterprise Linux 10 | clang-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | clang-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | clang-resource-filesystem | Not affected | ||
| Red Hat Enterprise Linux 10 | clang-tools-extra | Not affected | ||
| Red Hat Enterprise Linux 10 | compiler-rt | Not affected | ||
| Red Hat Enterprise Linux 10 | git-clang-format | Not affected | ||
| Red Hat Enterprise Linux 10 | libomp | Not affected | ||
| Red Hat Enterprise Linux 10 | libomp-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | lld | Not affected | ||
| Red Hat Enterprise Linux 10 | lld-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | lld-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | lldb | Not affected | ||
| Red Hat Enterprise Linux 10 | lldb-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | llvm | Not affected | ||
| Red Hat Enterprise Linux 10 | llvm-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | llvm-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | llvm-filesystem | Not affected | ||
| Red Hat Enterprise Linux 10 | llvm-googletest | Not affected | ||
| Red Hat Enterprise Linux 10 | llvm-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | llvm-static | Not affected | ||
| Red Hat Enterprise Linux 10 | llvm-test | Not affected | ||
| Red Hat Enterprise Linux 10 | llvm-toolset | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-clang | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-lit | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-lldb | Not affected | ||
| Red Hat Enterprise Linux 9 | clang | Not affected | ||
| Red Hat Enterprise Linux 9 | clang-analyzer | Not affected | ||
| Red Hat Enterprise Linux 9 | clang-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | clang-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | clang-resource-filesystem | Not affected | ||
| Red Hat Enterprise Linux 9 | clang-tools-extra | Not affected | ||
| Red Hat Enterprise Linux 9 | compiler-rt | Not affected | ||
| Red Hat Enterprise Linux 9 | git-clang-format | Not affected | ||
| Red Hat Enterprise Linux 9 | libomp | Not affected | ||
| Red Hat Enterprise Linux 9 | libomp-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | lld | Not affected | ||
| Red Hat Enterprise Linux 9 | lld-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | lld-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | lldb | Not affected | ||
| Red Hat Enterprise Linux 9 | lldb-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | llvm | Not affected | ||
| Red Hat Enterprise Linux 9 | llvm-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | llvm-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | llvm-filesystem | Not affected | ||
| Red Hat Enterprise Linux 9 | llvm-googletest | Not affected | ||
| Red Hat Enterprise Linux 9 | llvm-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | llvm-static | Not affected | ||
| Red Hat Enterprise Linux 9 | llvm-test | Not affected | ||
| Red Hat Enterprise Linux 9 | llvm-toolset | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-clang | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-lit | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-lldb | Not affected | ||
| Red Hat Enterprise Linux 8 | llvm | Not affected | ||
| Red Hat Enterprise Linux 8 | llvm-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | llvm-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | llvm-googletest | Not affected | ||
| Red Hat Enterprise Linux 8 | llvm-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | llvm-static | Not affected | ||
| Red Hat Enterprise Linux 8 | llvm-test | Not affected |
References
- https://github.com/llvm/llvm-project/issues/80287
- https://llvm.org/docs/Security.html
- https://bugs.chromium.org/p/llvm/issues/detail?id=69
- https://github.com/llvmbot/llvm-project/commit/0e16af8e4cf3a66ad5d078d52744ae2776f9c4b2
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.