llama.cpp builds b1283 through b9058 contain an integer overflow vulnerability in the llama_batch_init() function where unchecked multiplications in malloc() calls can wrap past INT32_MAX when computing allocation sizes. Attackers can pass specially crafted parameters to trigger integer overflow, causing heap corruption and potentially achieving arbitrary code execution through subsequent batch operations that write past allocated buffer boundaries.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches Patch, Third Party Advisory
- https://www.vulncheck.com/advisories/llama-cpp-b1283-b9058-integer-overflow-in-llama-batch-init-function Mitigation, Patch, Third Party Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 8.5 · ggmlNVD modified 2026-10-23 21:10
Affected (CPE criteria) 1
cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
References 2
- https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches Patch, Third Party Advisory
- https://www.vulncheck.com/advisories/llama-cpp-b1283-b9058-integer-overflow-in-llama-batch-init-function Mitigation, Patch, Third Party Advisory