Vulnerability Description
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 Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#L794-L795
- https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d59241
- 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/releases/tag/b11275
- https://www.vulncheck.com/advisories/llama-cpp-b5854-before-b11275-integer-overf
FAQ
What is CVE-2026-116840?
CVE-2026-116840 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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 sup...
How severe is CVE-2026-116840?
CVE-2026-116840 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-116840?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.