PT-2026-68728 · Llama.Cpp · Llama.Cpp
CVE-2026-43629
·
Published
2026-08-06
·
Updated
2026-08-07
CVSS v4.0
9.2
Critical
| Vector | AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Name of the Vulnerable Software and Affected Versions
llama.cpp versions b4882 through b9058
Description
A heap buffer overflow exists in the KV cache state restore path. The
state read data() function calculates the write size without performing overflow checks. An attacker with write access to the slot save path directory can exploit this by creating malicious state files. By causing the cell count multiplication to overflow or exceed the tensor buffer allocation, the attacker can write controlled bytes beyond buffer boundaries. This may lead to heap metadata corruption, model weight corruption, or arbitrary code execution through the overwrite of function pointers.Recommendations
Update llama.cpp to a version later than b9058.
Fix
Memory Corruption
Integer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Llama.Cpp