Vulnerability 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."
CVSS Score
MEDIUM
References
- 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/0e16af8e4cf3a66ad5d078d52744ae277
- https://llvm.org/docs/Security.html
- 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/0e16af8e4cf3a66ad5d078d52744ae277
- https://llvm.org/docs/Security.html
FAQ
What is CVE-2024-31852?
CVE-2024-31852 is a vulnerability with a CVSS score of 5.9 (MEDIUM). 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 a...
How severe is CVE-2024-31852?
CVE-2024-31852 has been rated MEDIUM with a CVSS base score of 5.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-31852?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.