CVE-2024-31852
CBL Mariner vulnerability analysis and mitigation

Overview

LLVM before version 18.1.3 contains a vulnerability where the LR (Link Register) register can be overwritten without data being saved to the stack, potentially leading to exploitable control flow errors. This vulnerability affects the ARM backend and can be demonstrated using Clang. The issue was discovered in early 2024 and tracked as CVE-2024-31852 (NVD).

Technical details

The vulnerability occurs in the ARM backend where code generation incorrectly handles the LR register. Specifically, the compiler generates code that overwrites the LR register without first saving its data on the stack, which can lead to corrupted control flow. The issue has been assigned a CVSS v3.1 base score of 5.9 (Medium) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD, LLVM Issue).

Impact

When exploited, this vulnerability can lead to corrupted control flow in compiled programs. However, according to the vendor, the likelihood of this miscompilation enabling an exploit remains very low, as the affected function is likely to crash on most valid inputs, making it probable that the issue would be discovered during testing before production deployment (NVD).

Exploitability

The vulnerability requires specific conditions in the ARM backend code generation process. While technically exploitable, the vendor notes that the miscompilation resulting in this Jump-Oriented Programming (JOP) gadget typically causes the function to crash on valid inputs, making successful exploitation challenging (NVD, LLVM Issue).

Mitigation and workarounds

The issue has been fixed in LLVM version 18.1.3. The fix involves updating the IsRestored flag for LR based on all returns in the function, not just individual instructions. A patch has been committed that addresses the incorrect handling of the LR register (LLVM Commit).

Additional resources


SourceThis report was generated using AI

Related CBL Mariner vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68454HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-aws-6.17
NoYesAug 13, 2026
CVE-2026-68446HIGH7.8
  • Linux Kernel logoLinux Kernel
  • kernel-doc
NoYesAug 12, 2026
CVE-2026-68445HIGH7.8
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules-extra
NoYesAug 12, 2026
CVE-2026-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-core
NoYesAug 12, 2026
CVE-2026-68444NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-tools-libs
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management