PT-2024-4418 · Clang+2 · Clang+2

Published

2024-02-01

·

Updated

2024-12-04

·

CVE-2024-31852

CVSS v3.1

5.9

Medium

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions LLVM versions prior to 18.1.3
Description The issue is related to a buffer overflow in memory when handling the LR register connection due to incorrect code generation management. This can lead to an exploitable error in the flow of control, potentially allowing a remote attacker to execute arbitrary code or cause a denial of service. The ARM backend is affected, and the issue can be demonstrated with Clang. The vendor notes that the likelihood of this miscompile enabling an exploit remains very low, as the miscompile resulting in this JOP gadget is likely to crash on most valid inputs to the function.
Recommendations For versions prior to 18.1.3, update to version 18.1.3 or later to resolve the issue. As a temporary workaround, consider restricting the use of the ARM backend to minimize the risk of exploitation. Additionally, ensure that any testing covers the affected functions to discover potential miscompiles before shipping binaries to production.

Fix

Code Injection

Stack Overflow

Weakness Enumeration

Related Identifiers

AZL-39713
AZL-39728
AZL-39758
AZL-39776
AZL-39785
AZL-39791
AZL-39830
AZL-39842
AZL-49774
BDU:2024-04917
CVE-2024-31852
ECHO-0DC2-D323-A26E

Affected Products

Clang
Debian
Llvm