Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-31852: n/a

0
Medium
VulnerabilityCVE-2024-31852cvecve-2024-31852
Published: Fri Apr 05 2024 (04/05/2024, 00:00:00 UTC)
Source: CVE Database V5

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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 16:17:26 UTC

Technical Analysis

CVE-2024-31852 is a compiler vulnerability found in LLVM versions before 18.1.3 that affects the ARM backend code generation. Specifically, the compiler may generate code where the Link Register (LR), which stores the return address for function calls, is overwritten without being saved onto the stack. This improper handling can lead to control flow errors, potentially allowing an attacker to craft a Jump-Oriented Programming (JOP) gadget. JOP gadgets can be used in advanced exploitation techniques to hijack program execution flow. However, the vendor notes that the likelihood of successful exploitation is low because the miscompiled function usually crashes on valid inputs, making the issue detectable during normal testing before deployment. This vulnerability does not affect confidentiality or integrity directly but can cause denial of service due to crashes (availability impact). The vulnerability requires no privileges or user interaction and can be exploited remotely if the compiled binary is exposed. No known exploits have been reported in the wild. The vulnerability is relevant to organizations compiling software for ARM architectures using affected LLVM versions. The CVSS v3.1 score is 5.9 (medium), reflecting network attack vector, high attack complexity, no privileges required, no user interaction, unchanged scope, no confidentiality or integrity impact, but high availability impact.

Potential Impact

The primary impact of CVE-2024-31852 is on the availability of software compiled with affected LLVM versions targeting ARM architectures. Miscompiled binaries may crash unexpectedly due to overwritten LR registers, leading to denial of service conditions. While confidentiality and integrity are not directly compromised, the presence of a JOP gadget could theoretically be leveraged in complex exploit chains, although this is considered unlikely. Organizations relying on LLVM for ARM development, especially those deploying critical embedded systems, IoT devices, or mobile applications, may face stability and reliability issues if vulnerable binaries are shipped to production. The vulnerability could disrupt services, cause system outages, or require emergency patches and recompilation efforts. The lack of known exploits and the difficulty of exploitation reduce immediate risk, but the potential for latent instability necessitates prompt remediation. The impact is more pronounced in sectors with high ARM usage such as telecommunications, automotive, consumer electronics, and cloud edge computing.

Mitigation Recommendations

To mitigate CVE-2024-31852, organizations should upgrade LLVM to version 18.1.3 or later, where the issue is resolved. Comprehensive testing and fuzzing of ARM-targeted binaries should be enhanced to detect miscompilations that could cause crashes. Incorporate static and dynamic analysis tools to identify control flow anomalies in compiled code. Avoid deploying binaries compiled with vulnerable LLVM versions in production environments, especially for critical systems. For legacy systems where recompilation is not immediately feasible, implement runtime monitoring to detect abnormal crashes and enable rapid incident response. Developers should review build pipelines to ensure no outdated LLVM versions are used inadvertently. Additionally, consider employing compiler verification tools or alternative compilers for ARM targets as a temporary measure. Maintain awareness of LLVM updates and security advisories to promptly address similar future issues.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-04-05T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6dd8b7ef31ef0b58f7c7

Added to database: 2/25/2026, 9:47:04 PM

Last enriched: 2/26/2026, 4:17:26 PM

Last updated: 4/12/2026, 1:59:52 PM

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses