Skip to content
HighVulnerabilityLLM-specific

CVE-2026-43629: llama.cpp heap buffer overflow in KV cache state restore

Identifier
CVE-2026-43629
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.8%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2026-43629 affects llama.cpp builds b4882 through b9058. In the KV cache state restore path, state_read_data() computes write size without overflow checking, so an attacker with write access to the slot_save_path directory can supply a crafted state file. A cell_count multiplication that overflows or exceeds the tensor buffer allocation lets attacker-controlled bytes be written past buffer boundaries, potentially corrupting heap metadata, model weights, or enabling arbitrary code execution via function pointer overwrite.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.