PT-2026-68728
CVE-2026-43629
·
Published
2026-08-06
·
Updated
2026-09-21
Description by
CVSS 4.0
9.2
CriticalMetricsAV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
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.
Found an issue in the description? Have something to add? Feel free to write us 👾