CVE-2024-31852

llvm: LR register can be overwritten without data being saved to the stack on ARM

Published Apr 5, 2024 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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."

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L'}

cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Dec 4, 2024, 9:06 PM
Reserved
Apr 5, 2024, 12:00 AM
Status
Deferred
Published
Apr 5, 2024, 3:15 PM
Modified
Jun 17, 2026, 7:28 AM
Severity
Moderate
Public date
Apr 5, 2024, 12:00 AM