CVE-2026-43629: llama.cpp b4882–b9058 Buffer Overflow in KV Cache State Restore

Published Aug 6, 2026
·
Updated

llama.cpp builds b4882 through b9058 contain a heap buffer overflow vulnerability in the KV cache state restore path where the statereaddata() function computes write size without overflow checking, allowing attackers with write access to the slotsavepath directory to corrupt heap memory. Attackers can craft malicious state files where cellcount 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.

Affected Software

1 affected component
llama.cpp>=b4882<=b9058

Event History

Aug 6, 2026
CVE Published
via MITRE·03:48 PM
Data Sourced
via MITRE·03:48 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-43629?

CVE-2026-43629 has a severity rating of 8.1, categorized as high.

2

What type of vulnerability is CVE-2026-43629?

CVE-2026-43629 is a heap buffer overflow vulnerability that occurs during the KV cache state restore process.

3

How do I fix CVE-2026-43629?

To fix CVE-2026-43629, ensure that you update to a patched version of llama.cpp that addresses the buffer overflow issue.

4

What are the potential impacts of CVE-2026-43629?

Exploitation of CVE-2026-43629 could lead to heap memory corruption, potentially allowing attackers with write access to disrupt system functionality.

5

Who is affected by CVE-2026-43629?

Users of llama.cpp builds from b4882 through b9058 are affected by CVE-2026-43629.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203