Impact
A flaw in LLVM’s Bitcode File Handler component, specifically the GCRelocateInst::getBasePtr function in IntrinsicInst.cpp, allows an attacker to trigger a heap-based buffer overflow by supplying a malicious bitcode file. The overflow arises from insufficient bounds checking on internal arrays, which is a classic memory corruption weakness (CWE-119, CWE-122, CWE-805). The vulnerability does not currently provide a documented path to arbitrary code execution, but it could lead to application crash or, if an attacker can influence trusted LLVM-backed components, potential memory corruption that could compromise integrity.
Affected Systems
The flaw targets the llvm:llvm-project library, affecting all releases up to version 22.1.6. The vulnerable code resides in the Bitcode File Handler module of the LLVM compiler toolchain, and only instances that load or process .bc files are at risk.
Risk and Exploitability
The CVSS score of 4.8 indicates a moderate level of expected impact, while the EPSS score of less than 1% shows a low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the attack vector is local: the attacker must have the ability to execute or coerce an LLVM instance to parse a crafted bitcode file and trigger the overflow.
OpenCVE Enrichment