Bug 2273715 (CVE-2024-31852) - CVE-2024-31852 llvm: LR register can be overwritten without data being saved to the stack on ARM
Summary: CVE-2024-31852 llvm: LR register can be overwritten without data being saved ...
Keywords:
Status: NEW
Alias: CVE-2024-31852
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2273716 2273717
Blocks: 2273709
TreeView+ depends on / blocked
 
Reported: 2024-04-05 20:20 UTC by Robb Gatica
Modified: 2024-04-18 21:55 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A miscompile flaw was found in LLVM. In certain conditions, the LR register can be overwritten without data being saved to the stack, which can lead to an exploitable error in the compiled code. This affects the ARM backend and can be demonstrated with Clang.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Robb Gatica 2024-04-05 20:20:40 UTC
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."

https://bugs.chromium.org/p/llvm/issues/detail?id=69
https://github.com/llvm/llvm-project/issues/80287
https://github.com/llvmbot/llvm-project/commit/0e16af8e4cf3a66ad5d078d52744ae2776f9c4b2
https://llvm.org/docs/Security.html

Comment 1 Robb Gatica 2024-04-05 20:24:22 UTC
Created llvm tracking bugs for this issue:

Affects: fedora-all [bug 2273716]


Note You need to log in before you can comment on or make changes to this bug.