Skip to content
HighVulnerabilityLLM-specific

CVE-2026-43627: llama.cpp integer overflow in llama_batch_init() allocation size calculation

Identifier
CVE-2026-43627
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

llama.cpp builds b1283 through b9058 contain an integer overflow in the llama_batch_init() function. Unchecked multiplications in malloc() calls can wrap past INT32_MAX when computing allocation sizes, and attackers can pass crafted parameters to trigger it. The resulting heap corruption could lead to arbitrary code execution through later batch operations that write past allocated buffer boundaries.

Mitigation

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