CVE catalog

CVE-2026-43629

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,

[CVE catalog]

Severity
Critical · CVSS 9.2CVSS:4.0/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
Published
Source
[NVD] · [CVE record]
EPSS
0.70% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Cpellama.cppNot reportedNot reportedunknown
Debianllama.cpp1410108+dfsg-1vulnerable
Debianllama.cpp1410108+dfsg1-1vulnerable
Debianllama.cpp1410108+dfsg1-2vulnerable
Debianllama.cpp1410192+dfsg-1vulnerable
Debianllama.cpp1410192+dfsg-2vulnerable
Debianllama.cpp1410192+dfsg-2~exp1vulnerable
Debianllama.cpp1410271+dfsg-1vulnerable
Debianllama.cpp1410344+dfsg-1vulnerable
Debianllama.cpp1410438+dfsg-1vulnerable
Debianllama.cpp141:0.1.2+dfsg-1~exp1vulnerable
Debianllama.cpp141:0.2.0+dfsg1-1vulnerable
Debianllama.cpp141:0.2.0+dfsg1-1~exp1vulnerable
Debianllama.cpp141:0.4.0+dfsg-1vulnerable
Debianllama.cpp141:0.4.1+dfsg-1vulnerable
Debianllama.cpp141:0.5.0+dfsg-1vulnerable
Debianllama.cpp141:0.5.0+dfsg-2vulnerable
Debianllama.cpp141:0.6.0+dfsg-1vulnerable
Debianllama.cpp141:0.6.0+dfsg-2vulnerable
Debianllama.cpp141:0.7.0+dfsg-1vulnerable
Debianllama.cpp141:0.7.0+dfsg-2vulnerable
Debianllama.cpp145151+dfsg-1~exp2vulnerable
Debianllama.cpp145151+dfsg-1~exp3vulnerable
Debianllama.cpp145318+dfsg-1vulnerable
Debianllama.cpp145318+dfsg-2vulnerable
Debianllama.cpp145713+dfsg-1vulnerable
Debianllama.cpp145760+dfsg-1vulnerable
Debianllama.cpp145760+dfsg-2vulnerable
Debianllama.cpp145760+dfsg-3vulnerable
Debianllama.cpp145760+dfsg-4vulnerable
Debianllama.cpp145882+dfsg-1vulnerable
Debianllama.cpp145882+dfsg-2vulnerable
Debianllama.cpp145882+dfsg-3vulnerable
Debianllama.cpp145882+dfsg-3~exp1vulnerable
Debianllama.cpp145882+dfsg-3~exp2vulnerable
Debianllama.cpp145882+dfsg-3~exp3vulnerable
Debianllama.cpp145882+dfsg-4vulnerable
Debianllama.cpp146641+dfsg-1vulnerable
Debianllama.cpp146641+dfsg-2vulnerable
Debianllama.cpp146641+dfsg-3vulnerable
Debianllama.cpp147593+dfsg-1vulnerable
Debianllama.cpp147593+dfsg-2vulnerable
Debianllama.cpp147593+dfsg-3vulnerable
Debianllama.cpp147965+dfsg-1vulnerable
Debianllama.cpp148064+dfsg-1vulnerable
Debianllama.cpp148064+dfsg-2vulnerable
Debianllama.cpp148461+dfsg-1vulnerable
Debianllama.cpp148611+dfsg-1vulnerable
Debianllama.cpp148681+dfsg-1vulnerable
Debianllama.cpp148870+dfsg-1vulnerable
Debianllama.cpp148941+dfsg-1vulnerable
Debianllama.cpp149009+dfsg-1vulnerable
Debianllama.cpp149071+dfsg-1vulnerable
Debianllama.cpp149190+dfsg-1vulnerable
Debianllama.cpp149413+dfsg-1vulnerable
Debianllama.cpp149555+dfsg-1vulnerable
Debianllama.cpp149601+dfsg-1vulnerable
Debianllama.cpp149721+dfsg-1vulnerable
Debianllama.cpp149895+dfsg-1vulnerable
Debianllama.cpp149895+dfsg-2vulnerable
Debianllama.cpp149895+dfsg-3vulnerable
Debianllama.cpp149951+dfsg-1vulnerable
Debianllama.cpp149951+dfsg-2vulnerable
Debianllama.cpp149951+dfsg-3vulnerable

Fixed-version evidence

OpenFactory catalog packages

No matching packages in this catalog.

Observed:

References