{"id":"UBUNTU-CVE-2026-116829","details":"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.","modified":"2026-10-28T20:17:46.309817902Z","published":"2026-10-27T01:19:00Z","upstream":["CVE-2026-116829"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-116829"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-116829"},{"type":"REPORT","url":"https://github.com/cveproject/cvelistv5/tree/main/cves/2026/116xxx/cve-2026-116829.json"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#l701"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/commit/2149c00f4442dc59302e134a02e4c99d5f7ed9fc"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/issues/29383"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/pull/29384"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/releases/tag/b11301"},{"type":"REPORT","url":"https://nvd.nist.gov/vuln/detail/cve-2026-116829"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/llama-cpp-b10398-before-b11301-integer-overflow-in-gguf-init-from-reader"}],"affected":[{"package":{"name":"llama.cpp","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/llama.cpp?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8681+dfsg-1","9721+dfsg-1ubuntu1","10438+dfsg-1","10438+dfsg-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libllama0","binary_version":"10438+dfsg-1ubuntu1"},{"binary_version":"10438+dfsg-1ubuntu1","binary_name":"llama.cpp"},{"binary_name":"llama.cpp-examples","binary_version":"10438+dfsg-1ubuntu1"},{"binary_name":"llama.cpp-services","binary_version":"10438+dfsg-1ubuntu1"},{"binary_name":"llama.cpp-tests","binary_version":"10438+dfsg-1ubuntu1"},{"binary_version":"10438+dfsg-1ubuntu1","binary_name":"llama.cpp-tools"},{"binary_name":"llama.cpp-tools-extra","binary_version":"10438+dfsg-1ubuntu1"},{"binary_name":"python3-gguf","binary_version":"10438+dfsg-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-116829.json"}},{"package":{"name":"llama.cpp","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/llama.cpp?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5882+dfsg-2","8064+dfsg-1ubuntu1","8681+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libllama0","binary_version":"8681+dfsg-1"},{"binary_name":"llama.cpp","binary_version":"8681+dfsg-1"},{"binary_name":"llama.cpp-examples","binary_version":"8681+dfsg-1"},{"binary_version":"8681+dfsg-1","binary_name":"llama.cpp-tests"},{"binary_name":"llama.cpp-tools","binary_version":"8681+dfsg-1"},{"binary_version":"8681+dfsg-1","binary_name":"llama.cpp-tools-extra"},{"binary_version":"8681+dfsg-1","binary_name":"python3-gguf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-116829.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}