{"id":"CVE-2026-116840","summary":"llama.cpp b5854 before b11275 Integer Overflow in gguf_init_from_reader","details":"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.","modified":"2026-11-10T13:27:20.408027814Z","published":"2026-10-27T00:33:59.834Z","related":["openSUSE-SU-2026:12500-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116840.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-190"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116840.json"},{"type":"ADVISORY","url":"https://github.com/ggml-org/llama.cpp/releases/tag/b11275"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116840"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/llama-cpp-b5854-before-b11275-integer-overflow-in-gguf-init-from-reader"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/issues/26978"},{"type":"FIX","url":"https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44"},{"type":"FIX","url":"https://github.com/ggml-org/llama.cpp/pull/26979"},{"type":"ARTICLE","url":"https://github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#L794-L795"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ggml-org/llama.cpp","events":[{"introduced":"26a48ad699d50b6268900062661bd22f3e792579"},{"fixed":"a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44"},{"introduced":"7c35571e5dd2e577eddaca7e0ffa7cf46a54fcf2"},{"fixed":"d81235049384534c167caea52b85a694f6103d14"}],"database_specific":{"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"},{"source":"REFERENCES_TAG","original_tag":"b11275","range":[{"fixed":"a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44"}]}]}}],"versions":["b11274","b11273","b11272","b11270","b11269","b11268","b11267","b11266","b11265","b11264","b11263","b11262","b11261","b11260","b11259","b11258","b11235","b11257","b11256","b11255","b11254","b11249","b11247","b11246","b11245","b11243","b11242","b11240","b11239","b11238","b11237","b11236","b11234","b11233","b11232","b11224","b11229","b11228","b11227","b11226","b11225","b11223","b11222","b11221","b11218","b11217","b11216","b11215","b11214","b11213","b11212","b11211","b11209","b11208","b11207","b11206","b11205","b11203","b11202","b11201","b11200","b11199","b11195","b11194","b11193","b11192","b11191","b11190","b11189","b11188","b11185","b11184","b11183","b11182","b11181","b11180","b11179","b11178","b11177","b11176","b11175","b11174","b11173","b11167","b11172","b11171","b11170","b11169","b11168","b11166","b11165","b11163","b11160","b11159","b11158","b11157","b11156","b11155","b11154","b11153","b11151","b11149","b11147","v0.5.0","b11146","b11140","b11139","b11138","b11136","b11135","b11132","b11130","b11126","b11125","b11124","b11123","b11122","b11121","b11120","b11119","b11118","b11062","b11117","b11115","b11111","b11114","b11113","b11112","b11110","b11109","b11108","b11105","b11104","b11103","b11102","b11101","b11100","b11099","b11097","b11096","b11095","b11065","b11094","b11093","b11090","b11081","b11080","b11078","b11077","b11076","b11075","b11074","b11073","b11071","b11070","b11069","b11068","b11067","b11064","b11063","b11060","b11053","b11059","b11058","b11057","b11056","b11055","b11054","b11052","b11050","b11049","b11048","b11047","b11046","b11045","b11044","b11043","b11042","b11037","b11040","b11039","b11036","b11035","b11034","b11033","b11030","b11029","b11028","b11006","b11027","b11007","b11026","b11025","b11024","b11022","b11020","b11019","b11018","b11017","b11016","b11015","b11013","b11012","b11011","b11010","b11009","b11005","b11003","b11002","b11001","b11000","b10999","b10998","b10997","b10996","b10995","b10994","b10993","b10992","b10991","b10990","b10989","b10988","b10985","b10984","b10983","b10982","b10981","b10980","b10978","b10977","b10976","b10975","b10970","b10969","v0.4.1","b10964-b10964-b29c606","b10964","b10955","b10956","b10952","b10951","b10950","b10948","b10947","b10946","b10944","b10941","b10938","b10937","b10936","b10935","b10934","b10933","b10932","b10931","b10930","b10929","b10927","b10926","b10924","b10923","b10922","b10921","b10920","b10919","b10917","b10818","b10909","b10908","b10907","b10906","b10905","b10903","b10902","b10901","b10900","b10899","b10897","b10896","b10894","b10893","b10892","b10891","b10889","b10888","b10887","b10886","b10885","b10884","b10883","b10881","b10878","b10877","b10876","b10875","b10874","b10873","b10872","b10871","b10870","b10869","b10868","b10867","b10865","b10864","b10863","b10859","b10858","b10857","b10856","b10855","b10853","b10852","b10850","b10844","b10842","b10840","b10837","b10839","b10835","b10834","b10833","b10831","b10830","b10829","b10828","b10827","b10826","b10825","b10823","b10822","b10821","b10820","b10819","b10817","b10816","b10814","b10813","v0.4.0","b10809","b10798","b10797","b10796","b10795","b10794","b10793","b10792","b10791","b10790","b10786","b10785","b10784","b10783","b10782","b10781","b10780","b10778","b10777","b10776","b10775","b10774","b10773","b10772","b10771","b10770","b10769","b10767","b10766","b10764","b10763","b10762","b10760","b10759","b10758","b10757","b10756","b10754","b10753","b10752","b10751","b10750","b10749","b10743","b10739","b10742","b10741","b10740","b10738","b10737","b10736","b10734","b10733","b10731","b10730","b10729","b10728","b10727","b10726","b10724","b10723","b10721","b10720","b10719","b10718","b10717","b10715","b10714","b10713","b10712","b10711","b10710","b10709","b10708","b10707","b10706","b10705","b10704","b10703","b10701","b10702","b10700","b10699","b10698","b10697","b10696","b10695","b10694","b10693","b10692","b10691","b10690","b10689","b10688","b10687","b10686","b10685","b10684","b10683","b10682","b10681","b10680","b10675","b10679","b10678","b10673","b10677","b10676","b10672","b10670","b10669","b10668","b10667","b10666","b10665","b10664","b10663","b10662","b10661","b10660","b10659","b10658","b10657","b10656","b10655","b10653","b10647","b10649","b10648","b10646","b10645","b10644","b10643","b10642","b10639","b10638","b10636","b10631","b10635","b10632","b10630","b10629","b10628","b10625","b10622","v0.3.0","b10621","b10620","b10618","b10617","b10615","b10614","b10612","b10610","b10608","b10606","b10605","b10604","b10603","b10599","b10598","b10594","b10595","b10593","b10590","b10589","b10588","b10587","b10586","b10585","b10584","b10582","b10581","b10580","b10578","b10577","b10576","b10573","b10569","b10568","b10567","b10545","v0.2.0","b10566","b10549","b10548","b10541","b10539","b10538","b10537","b10536","b10534","b10533","b10532","b10531","b10524","b10520","b10519","b10517","b10516","b10514","b10509","b10506","b10507","b10505","b10502","b10499","b10488","b10486","v0.1.2","b10485","b10483","b10481","b10472","v0.1.1","b10470","v0.1.0"],"database_specific":{"vanir_signatures_modified":"2026-10-29T07:22:58Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116840.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44","target":{"file":"tests/test-gguf.cpp"},"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"},{"source":"https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44","target":{"function":"gguf_init_from_reader","file":"ggml/src/gguf.cpp"},"deprecated":false,"digest":{"function_hash":"163172947968134731988656897190767250447","length":12757},"id":"CVE-2026-116840-976ad2bc","signature_type":"Function","signature_version":"v1"},{"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":{"length":3584,"function_hash":"52217065367638737894832632111555930253"},"id":"CVE-2026-116840-a0fb5ff2","signature_type":"Function","signature_version":"v1","source":"https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44","target":{"function":"test_handcrafted_file","file":"tests/test-gguf.cpp"}},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["299473814009523867769222433927115550497","74213949108755276280555754634431669831","283376858296881976483534946575434291608","336855470878245816472286142096662360283"]},"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"}},{"source":"https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44","target":{"function":"get_handcrafted_file","file":"tests/test-gguf.cpp"},"deprecated":false,"digest":{"length":7676,"function_hash":"316723576971923403524737035075822415711"},"id":"CVE-2026-116840-cc08969d","signature_type":"Function","signature_version":"v1"}]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"}]}