CVE-2026-43629
published critical CVSS 4.0 · 9.2llama.cpp b4882–b9058 Buffer Overflow in KV Cache State Restore
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ggml-org | — | llama.cppb4882 through b9058 · Other versions: affected | Affected | Not stated | VulnCheck |
Description
llama.cpp builds b4882 through b9058 contain a heap buffer overflow vulnerability in the KV cache state restore path where the state_read_data() function computes write size without overflow checking, allowing attackers with write access to the slot_save_path directory to corrupt heap memory. Attackers can craft malicious state files where cell_count multiplication overflows or exceeds tensor buffer allocation to write attacker-controlled bytes past buffer boundaries, potentially resulting in heap metadata corruption, model weight corruption, or arbitrary code execution via function pointer overwrite.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.2 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ggml-org | llama.cpp | b4882 through b9058 (affected · custom)Default: affected | VulnCheck · cna |
Weaknesses
2- CWE-787 Out-of-bounds Write
- CWE-190 Integer Overflow or Wraparound
References
2Provider assertions
2VulnCheck · cna
llama.cpp b4882–b9058 Buffer Overflow in KV Cache State Restore
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 877c728d49c1f1a8d74dc0d4212ff2ea88638b9377ff362f4ed3c04b6d195507
- Ingested
- 29 Oct 2026, 21:23:06 UTC
- Source record
- Official CVE record