CVE-2026-116840
CVE-2026-116840 · llama.cpp b5854 before b11275 Integer Overflow in gguf_init_from_reader
This page contains facts from public vulnerability sources. Check the original advisory before updating.
llama.cpp b5854 before b11275 contains an integer overflow vulnerability in gguf_init_from_reader that bypasses the CVE-2025-53630 size check when padding near-SIZE_MAX tensor sizes. Attackers can supply a crafted GGUF file whose tensor size pads to zero, causing an undersized data blob and out-of-bounds reads by consumers.
CVSS 6.9 · Medium · EPSS 0.1% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
llama.cpp
- Versions
- ≥ b5854, < b11275: Affected (custom)
- ≥ 0.1.0, < 0.6.0: Affected (semver)
Update to 0.6.0
llama.cpp Debian:14
- Versions
- 10108+dfsg-1
- 10108+dfsg1-1
- 10108+dfsg1-2
- 10192+dfsg-1
- 10192+dfsg-2
- 10192+dfsg-2~exp1
- 10271+dfsg-1
- 10344+dfsg-1
- 10438+dfsg-1
- 1:0.1.2+dfsg-1~exp1
- 1:0.2.0+dfsg1-1
- 1:0.2.0+dfsg1-1~exp1
- 1:0.4.0+dfsg-1
- 1:0.4.1+dfsg-1
- 1:0.5.0+dfsg-1
- 1:0.5.0+dfsg-2
- 5151+dfsg-1~exp2
- 5151+dfsg-1~exp3
- 5318+dfsg-1
- 5318+dfsg-2
- 5713+dfsg-1
- 5760+dfsg-1
- 5760+dfsg-2
- 5760+dfsg-3
- 5760+dfsg-4
- 5882+dfsg-1
- 5882+dfsg-2
- 5882+dfsg-3
- 5882+dfsg-3~exp1
- 5882+dfsg-3~exp2
- 5882+dfsg-3~exp3
- 5882+dfsg-4
- 6641+dfsg-1
- 6641+dfsg-2
- 6641+dfsg-3
- 7593+dfsg-1
- 7593+dfsg-2
- 7593+dfsg-3
- 7965+dfsg-1
- 8064+dfsg-1
- 8064+dfsg-2
- 8461+dfsg-1
- 8611+dfsg-1
- 8681+dfsg-1
- 8870+dfsg-1
- 8941+dfsg-1
- 9009+dfsg-1
- 9071+dfsg-1
- 9190+dfsg-1
- 9413+dfsg-1
- 9555+dfsg-1
- 9601+dfsg-1
- 9721+dfsg-1
- 9895+dfsg-1
- 9895+dfsg-2
- 9895+dfsg-3
- 9951+dfsg-1
- 9951+dfsg-2
- 9951+dfsg-3
- Affected ranges
- ECOSYSTEM: < 1:0.6.0+dfsg-1
Update to 1:0.6.0+dfsg-1
Original sources
- https://github.com/ggml-org/llama.cpp/issues/26978
- https://github.com/ggml-org/llama.cpp/pull/26979
- https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44
- https://github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#L794-L795
- https://github.com/ggml-org/llama.cpp/releases/tag/b11275
- https://www.vulncheck.com/advisories/llama-cpp-b5854-before-b11275-integer-overflow-in-gguf-init-from-reader
- https://nvd.nist.gov/vuln/detail/CVE-2026-116840