Description
llama.cpp b10398 before b11301 contains an integer overflow vulnerability in gguf_init_from_reader that allows attackers to bypass tensor element-count validation by supplying shapes whose product wraps to zero. Attackers can craft GGUF files with enormous tensor extents that overflow ggml_nbytes() and strides, causing out-of-bounds memory access when buffers are sized from wrapped byte counts.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ggml-org | llama.cpp | b10398 – < b11301, 0.1.0 – < 0.6.0 | b11301 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | llama.cpp | 1:0.6.0+dfsg-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | llama.cpp | No fix yet | — |
| Ubuntu 26.04 LTS | llama.cpp | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | llamacpp | 0.9.0-1.1 | openSUSE-SU-2026:12500-1 |
Advisories 1
- openSUSE-SU-2026:12500-1 ggml-devel-0.9.0-1.1 on GA media SUSE / openSUSE Security Updates · Nov 10, 2026
References
- https://github.com/ggml-org/llama.cpp/issues/29383 issue-tracking
- https://github.com/ggml-org/llama.cpp/pull/29384 patch issue-tracking
- https://github.com/ggml-org/llama.cpp/commit/2149c00f4442dc59302e134a02e4c99d5f7ed9fc patch
- https://github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#L701 technical-description
- llama.cpp b11301 Release Notes release-notes
- VulnCheck Advisory: llama.cpp b10398 before b11301 Integer Overflow in gguf_init_from_reader third-party-advisory