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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-190"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116840.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "b5854"
},
{
"fixed": "b11275"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "0.1.0"
},
{
"fixed": "0.6.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "b11275",
"range": [
{
"fixed": "a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116840.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"242410705729876402454535159255682294840",
"259870031069255689034391375448308685325",
"32393262615398232122282950643096411208",
"283651011890374603787423174052187684552",
"284931567048146392863955466055364332476",
"284997228186701362990165092714627336292",
"80193181858081030613895691733296964861",
"179701278303023755130074457375773366509",
"198999884670413978107330880622492813902",
"89186908424417189130946697816988903576",
"133234217558091030858422780832366577332",
"229359794789285845971244788163014071598",
"300085305452484209610767989909978070612",
"94988682778972237924623088869170220280",
"231189240486225820836436707278759215253"
],
"threshold": 0.9
},
"id": "CVE-2026-116840-23ab1306",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44",
"target": {
"file": "tests/test-gguf.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "163172947968134731988656897190767250447",
"length": 12757
},
"id": "CVE-2026-116840-976ad2bc",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44",
"target": {
"file": "ggml/src/gguf.cpp",
"function": "gguf_init_from_reader"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "117938359382831994727910978945174985800",
"length": 2309
},
"id": "CVE-2026-116840-a045c4f8",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44",
"target": {
"file": "tests/test-gguf.cpp",
"function": "handcrafted_file_type_name"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "52217065367638737894832632111555930253",
"length": 3584
},
"id": "CVE-2026-116840-a0fb5ff2",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44",
"target": {
"file": "tests/test-gguf.cpp",
"function": "test_handcrafted_file"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"299473814009523867769222433927115550497",
"74213949108755276280555754634431669831",
"283376858296881976483534946575434291608",
"336855470878245816472286142096662360283"
],
"threshold": 0.9
},
"id": "CVE-2026-116840-a2aeed4c",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44",
"target": {
"file": "ggml/src/gguf.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "316723576971923403524737035075822415711",
"length": 7676
},
"id": "CVE-2026-116840-cc08969d",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44",
"target": {
"file": "tests/test-gguf.cpp",
"function": "get_handcrafted_file"
}
}
]
"2026-10-29T07:22:58Z"