Back to vendor advisories
Microsoft Security Response CenterCVE-2024-31852

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

Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability? One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.

5.9CVSS out of 10Medium severity
Scope

What the vendor says is affected

  • cbl2 rust 1.72.0-8 on CBL Mariner 2.0
  • cbl2 clang16 16.0.0-1 on CBL Mariner 2.0
  • azl3 libcxx 18.1.2-3 on Azure Linux 3.0
  • azl3 compiler-rt 18.1.2-2 on Azure Linux 3.0
  • azl3 rust 1.75.0-9 on Azure Linux 3.0
  • azl3 clang 18.1.2-2 on Azure Linux 3.0
  • azl3 llvm 18.1.2-3 on Azure Linux 3.0
  • azl3 lldb 18.1.2-2 on Azure Linux 3.0
  • azl3 lld 18.1.2-2 on Azure Linux 3.0
  • cbl2 rust 1.72.0-10 on CBL Mariner 2.0
  • cbl2 rust 1.72.0-10 on CBL-Mariner 2.0
  • azl3 lld 18.1.2-3 on Azure Linux 3.0
  • azl3 llvm 18.1.2-4 on Azure Linux 3.0
  • azl3 clang 18.1.2-4 on Azure Linux 3.0
  • azl3 rust 1.75.0-14 on Azure Linux 3.0
  • azl3 compiler-rt 18.1.2-3 on Azure Linux 3.0
  • azl3 rust 1.86.0-1 on Azure Linux 3.0

Versions the vendor lists as fixed

  • 1.72.0-8
  • 16.0.0-1
  • 18.1.2-3
  • 18.1.2-2
  • 1.75.0-9
Next step

What the vendor recommends

CBL-Mariner Releases

Review the complete instructions on the vendor's site
Timeline

When this advisory changed

  1. Published by Microsoft Security Response Center

    The publication date reported by the vendor.

  2. Updated by Microsoft Security Response Center

    The vendor changed the advisory after it was first published.

  3. Added to SecurityAlert

    We collected the advisory from the official source.

Vulnerabilities

CVEs named in this advisory