CVE-2024-31852

Public on 2024-04-05
Modified on 2024-04-09
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."
Severity
Medium severity
Medium
CVSS v3 Base Score
4.2
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 1 llvm Not Affected
Amazon Linux 2 - Core llvm Not Affected
Amazon Linux 2023 llvm Not Affected
Amazon Linux 2 - Rust1 Extra llvm3.9 Not Affected
Amazon Linux 2 - Rust1 Extra llvm5.0 Not Affected
Amazon Linux 1 llvm6.0 Not Affected
Amazon Linux 2 - Core llvm7.0 Not Affected
Amazon Linux 2 - Core rust Not Affected
Amazon Linux 2 - Rust1 Extra rust Not Affected

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 4.2 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L