Bug 2512255 (CVE-2026-43629) - CVE-2026-43629 llama.cpp: llama.cpp: Arbitrary code execution via crafted KV cache state files
Summary: CVE-2026-43629 llama.cpp: llama.cpp: Arbitrary code execution via crafted KV ...
Keywords:
Status: NEW
Alias: CVE-2026-43629
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2514725 2514726 2514727 2514728
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-06 22:25 UTC by OSIDB Bzimport
Modified: 2026-08-12 14:49 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-06 22:25:13 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.