CVE catalog

CVE-2024-31852

llvm-toolchain-14: CVE-2024-31852

[CVE catalog]

Severity
Medium · CVSS 4.2CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.99% · Oct 25, 2026

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

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianllvm-toolchain-14bookworm1:14.0.6-12vulnerable
Debianllvm-toolchain-15bookworm1:15.0.6-4vulnerable
Debianllvm-toolchain-16bookworm1:16.0.6-15~deb12u1vulnerable
Ubuntullvm-toolchain-3.614.041:3.6-2ubuntu1~trusty1vulnerable
Ubuntullvm-toolchain-3.614.041:3.6-2ubuntu1~trusty2vulnerable
Ubuntullvm-toolchain-3.814.041:3.8-2ubuntu3~trusty4vulnerable
Ubuntullvm-toolchain-3.814.041:3.8-2ubuntu3~trusty5vulnerable
Ubuntullvm-toolchain-3.914.041:3.9.1-4ubuntu3~14.04.2vulnerable
Ubuntullvm-toolchain-3.914.041:3.9.1-4ubuntu3~14.04.3vulnerable
Ubuntullvm-toolchain-3.616.041:3.6.2-1vulnerable
Ubuntullvm-toolchain-3.616.041:3.6.2-3vulnerable
Ubuntullvm-toolchain-3.616.041:3.6.2-3build1vulnerable
Ubuntullvm-toolchain-3.616.041:3.6.2-3ubuntu1vulnerable
Ubuntullvm-toolchain-3.616.041:3.6.2-3ubuntu2vulnerable
Ubuntullvm-toolchain-3.816.041:3.8~+rc1-1~exp1ubuntu3vulnerable
Ubuntullvm-toolchain-3.816.041:3.8~+rc2-1~exp1ubuntu2vulnerable
Ubuntullvm-toolchain-3.816.041:3.8-2ubuntu1vulnerable
Ubuntullvm-toolchain-3.816.041:3.8-2ubuntu3vulnerable
Ubuntullvm-toolchain-3.816.041:3.8-2ubuntu4vulnerable
Ubuntullvm-toolchain-4.016.041:4.0-1ubuntu1~16.04.1vulnerable
Ubuntullvm-toolchain-4.016.041:4.0-1ubuntu1~16.04.2vulnerable
Ubuntullvm-toolchain-5.016.041:5.0-3~16.04.1vulnerable
Ubuntullvm-toolchain-6.016.041:6.0-1ubuntu2~16.04.1vulnerable
Ubuntullvm-toolchain-3.516.041:3.5.2-2vulnerable
Ubuntullvm-toolchain-3.516.041:3.5.2-3vulnerable
Ubuntullvm-toolchain-3.516.041:3.5.2-3build1vulnerable
Ubuntullvm-toolchain-3.516.041:3.5.2-3build2vulnerable
Ubuntullvm-toolchain-3.516.041:3.5.2-3ubuntu1vulnerable
Ubuntullvm-toolchain-3.716.041:3.7-2ubuntu1vulnerable
Ubuntullvm-toolchain-3.716.041:3.7-2ubuntu2vulnerable
Ubuntullvm-toolchain-3.716.041:3.7-4ubuntu1vulnerable
Ubuntullvm-toolchain-3.716.041:3.7.1-1ubuntu1vulnerable
Ubuntullvm-toolchain-3.716.041:3.7.1-1ubuntu2vulnerable
Ubuntullvm-toolchain-3.716.041:3.7.1-1ubuntu3vulnerable
Ubuntullvm-toolchain-3.716.041:3.7.1-1ubuntu4vulnerable
Ubuntullvm-toolchain-3.716.041:3.7.1-2ubuntu1vulnerable
Ubuntullvm-toolchain-3.716.041:3.7.1-2ubuntu2vulnerable
Ubuntullvm-toolchain-3.916.041:3.9.1-4ubuntu3~16.04.1vulnerable
Ubuntullvm-toolchain-3.916.041:3.9.1-4ubuntu3~16.04.2vulnerable
Ubuntullvm-toolchain-816.041:8-3~ubuntu16.04.1vulnerable
Ubuntullvm-toolchain-1018.041:10.0.0-4ubuntu1~18.04.1vulnerable
Ubuntullvm-toolchain-1018.041:10.0.0-4ubuntu1~18.04.2vulnerable
Ubuntullvm-toolchain-3.918.041:3.9.1-17ubuntu1vulnerable
Ubuntullvm-toolchain-3.918.041:3.9.1-18ubuntu1vulnerable
Ubuntullvm-toolchain-3.918.041:3.9.1-19ubuntu1vulnerable
Ubuntullvm-toolchain-6.018.041:6.0~+rc1-1vulnerable
Ubuntullvm-toolchain-6.018.041:6.0~+rc2-1vulnerable
Ubuntullvm-toolchain-6.018.041:6.0-1ubuntu1vulnerable
Ubuntullvm-toolchain-6.018.041:6.0-1ubuntu2vulnerable
Ubuntullvm-toolchain-718.041:7-3~ubuntu0.18.04.1vulnerable
Ubuntullvm-toolchain-818.041:8-3~ubuntu18.04.1vulnerable
Ubuntullvm-toolchain-818.041:8-3~ubuntu18.04.2vulnerable
Ubuntullvm-toolchain-918.041:9-2~ubuntu18.04.1vulnerable
Ubuntullvm-toolchain-918.041:9-2~ubuntu18.04.2vulnerable
Ubuntullvm-toolchain-3.718.041:3.7.1-5ubuntu3vulnerable
Ubuntullvm-toolchain-4.018.041:4.0.1-6vulnerable
Ubuntullvm-toolchain-4.018.041:4.0.1-8vulnerable
Ubuntullvm-toolchain-4.018.041:4.0.1-10vulnerable
Ubuntullvm-toolchain-5.018.041:5.0-3vulnerable
Ubuntullvm-toolchain-5.018.041:5.0-4vulnerable
Ubuntullvm-toolchain-5.018.041:5.0.1-1vulnerable
Ubuntullvm-toolchain-5.018.041:5.0.1-2vulnerable
Ubuntullvm-toolchain-5.018.041:5.0.1-4vulnerable
Ubuntullvm-toolchain-1020.041:10~++20200121023453+de4b2a7fad6-1~exp1vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0~+rc1-1~exp1vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0~+rc2-2~build2vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0~+rc2-2vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0~+rc3-1vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0~+rc3-1build1vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0~+rc4-1vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0~+rc5-1ubuntu1vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0-1ubuntu1vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0-1ubuntu2vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0-2ubuntu1vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0-2ubuntu2vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0-3vulnerable
Ubuntullvm-toolchain-1020.041:10.0.0-4ubuntu1vulnerable
Ubuntullvm-toolchain-1120.041:11.0.0-2~ubuntu20.04.1vulnerable
Ubuntullvm-toolchain-1220.041:12.0.0-3ubuntu1~20.04.3vulnerable
Ubuntullvm-toolchain-1220.041:12.0.0-3ubuntu1~20.04.4vulnerable
Ubuntullvm-toolchain-1220.041:12.0.0-3ubuntu1~20.04.5vulnerable
Ubuntullvm-toolchain-920.041:9-2vulnerable
Ubuntullvm-toolchain-920.041:9.0.0-3ubuntu2vulnerable
Ubuntullvm-toolchain-920.041:9.0.0-4ubuntu4vulnerable
Ubuntullvm-toolchain-920.041:9.0.1~+rc2-1~exp1vulnerable
Ubuntullvm-toolchain-920.041:9.0.1~+rc2-1~exp1ubuntu1vulnerable
Ubuntullvm-toolchain-920.041:9.0.1-1vulnerable
Ubuntullvm-toolchain-920.041:9.0.1-2vulnerable
Ubuntullvm-toolchain-920.041:9.0.1-6build1vulnerable
Ubuntullvm-toolchain-920.041:9.0.1-8build1vulnerable
Ubuntullvm-toolchain-920.041:9.0.1-8ubuntu1vulnerable
Ubuntullvm-toolchain-920.041:9.0.1-9ubuntu1vulnerable
Ubuntullvm-toolchain-920.041:9.0.1-10vulnerable
Ubuntullvm-toolchain-920.041:9.0.1-11vulnerable
Ubuntullvm-toolchain-920.041:9.0.1-11ubuntu1vulnerable
Ubuntullvm-toolchain-920.041:9.0.1-12vulnerable
Ubuntullvm-toolchain-6.020.041:6.0.1-11vulnerable
Ubuntullvm-toolchain-6.020.041:6.0.1-11ubuntu1vulnerable
Ubuntullvm-toolchain-6.020.041:6.0.1-12vulnerable
Ubuntullvm-toolchain-6.020.041:6.0.1-14vulnerable
Ubuntullvm-toolchain-720.041:7.0.1-9build1vulnerable
Ubuntullvm-toolchain-720.041:7.0.1-9ubuntu2vulnerable
Ubuntullvm-toolchain-720.041:7.0.1-10vulnerable
Ubuntullvm-toolchain-720.041:7.0.1-10build1vulnerable
Ubuntullvm-toolchain-720.041:7.0.1-12vulnerable
Ubuntullvm-toolchain-820.041:8.0.1-3build1vulnerable
Ubuntullvm-toolchain-820.041:8.0.1-4vulnerable
Ubuntullvm-toolchain-820.041:8.0.1-4ubuntu3vulnerable
Ubuntullvm-toolchain-820.041:8.0.1-7build1vulnerable
Ubuntullvm-toolchain-820.041:8.0.1-7ubuntu1vulnerable
Ubuntullvm-toolchain-820.041:8.0.1-8ubuntu1vulnerable
Ubuntullvm-toolchain-820.041:8.0.1-9vulnerable
Ubuntullvm-toolchain-1122.041:11.0.1-2ubuntu5vulnerable
Ubuntullvm-toolchain-1122.041:11.1.0-6vulnerable
Ubuntullvm-toolchain-1222.041:12.0.1-8build1vulnerable
Ubuntullvm-toolchain-1222.041:12.0.1-16vulnerable
Ubuntullvm-toolchain-1222.041:12.0.1-19ubuntu3vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianllvm-toolchain-14sourcebookworm(unfixed)unimportantNot reported[1070384]
Debianllvm-toolchain-15sourcebookworm(unfixed)unimportantNot reported[1070383]
Debianllvm-toolchain-16sourcebookworm(unfixed)unimportantNot reported[1070382]

[Debian bug #1070384][Debian bug #1070383][Debian bug #1070382]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References