CVE-2026-116840

Source
https://cve.org/CVERecord?id=CVE-2026-116840
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116840.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-116840
Downstream
Related
Published
2026-10-27T00:33:59Z
Modified
2026-11-10T13:27:20Z
Severity
  • 6.9 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-190"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116840.json"
}
References

Affected packages

Git / github.com/ggml-org/llama.cpp

Affected ranges

Type
GIT
Repo
https://github.com/ggml-org/llama.cpp
Events
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

Other
b10470
b10472
b10481
b10483
b10485
b10486
b10488
b10499
b10502
b10505
b10506
b10507
b10509
b10514
b10516
b10517
b10519
b10520
b10524
b10531
b10532
b10533
b10534
b10536
b10537
b10538
b10539
b10541
b10545
b10548
b10549
b10566
b10567
b10568
b10569
b10573
b10576
b10577
b10578
b10580
b10581
b10582
b10584
b10585
b10586
b10587
b10588
b10589
b10590
b10593
b10594
b10595
b10598
b10599
b10603
b10604
b10605
b10606
b10608
b10610
b10612
b10614
b10615
b10617
b10618
b10620
b10621
b10622
b10625
b10628
b10629
b10630
b10631
b10632
b10635
b10636
b10638
b10639
b10642
b10643
b10644
b10645
b10646
b10647
b10648
b10649
b10653
b10655
b10656
b10657
b10658
b10659
b10660
b10661
b10662
b10663
b10664
b10665
b10666
b10667
b10668
b10669
b10670
b10672
b10673
b10675
b10676
b10677
b10678
b10679
b10680
b10681
b10682
b10683
b10684
b10685
b10686
b10687
b10688
b10689
b10690
b10691
b10692
b10693
b10694
b10695
b10696
b10697
b10698
b10699
b10700
b10701
b10702
b10703
b10704
b10705
b10706
b10707
b10708
b10709
b10710
b10711
b10712
b10713
b10714
b10715
b10717
b10718
b10719
b10720
b10721
b10723
b10724
b10726
b10727
b10728
b10729
b10730
b10731
b10733
b10734
b10736
b10737
b10738
b10739
b10740
b10741
b10742
b10743
b10749
b10750
b10751
b10752
b10753
b10754
b10756
b10757
b10758
b10759
b10760
b10762
b10763
b10764
b10766
b10767
b10769
b10770
b10771
b10772
b10773
b10774
b10775
b10776
b10777
b10778
b10780
b10781
b10782
b10783
b10784
b10785
b10786
b10790
b10791
b10792
b10793
b10794
b10795
b10796
b10797
b10798
b10809
b10813
b10814
b10816
b10817
b10818
b10819
b10820
b10821
b10822
b10823
b10825
b10826
b10827
b10828
b10829
b10830
b10831
b10833
b10834
b10835
b10837
b10839
b10840
b10842
b10844
b10850
b10852
b10853
b10855
b10856
b10857
b10858
b10859
b10863
b10864
b10865
b10867
b10868
b10869
b10870
b10871
b10872
b10873
b10874
b10875
b10876
b10877
b10878
b10881
b10883
b10884
b10885
b10886
b10887
b10888
b10889
b10891
b10892
b10893
b10894
b10896
b10897
b10899
b10900
b10901
b10902
b10903
b10905
b10906
b10907
b10908
b10909
b10917
b10919
b10920
b10921
b10922
b10923
b10924
b10926
b10927
b10929
b10930
b10931
b10932
b10933
b10934
b10935
b10936
b10937
b10938
b10941
b10944
b10946
b10947
b10948
b10950
b10951
b10952
b10955
b10956
b10964
b10964-b10964-b29c606
b10969
b10970
b10975
b10976
b10977
b10978
b10980
b10981
b10982
b10983
b10984
b10985
b10988
b10989
b10990
b10991
b10992
b10993
b10994
b10995
b10996
b10997
b10998
b10999
b11000
b11001
b11002
b11003
b11005
b11006
b11007
b11009
b11010
b11011
b11012
b11013
b11015
b11016
b11017
b11018
b11019
b11020
b11022
b11024
b11025
b11026
b11027
b11028
b11029
b11030
b11033
b11034
b11035
b11036
b11037
b11039
b11040
b11042
b11043
b11044
b11045
b11046
b11047
b11048
b11049
b11050
b11052
b11053
b11054
b11055
b11056
b11057
b11058
b11059
b11060
b11062
b11063
b11064
b11065
b11067
b11068
b11069
b11070
b11071
b11073
b11074
b11075
b11076
b11077
b11078
b11080
b11081
b11090
b11093
b11094
b11095
b11096
b11097
b11099
b11100
b11101
b11102
b11103
b11104
b11105
b11108
b11109
b11110
b11111
b11112
b11113
b11114
b11115
b11117
b11118
b11119
b11120
b11121
b11122
b11123
b11124
b11125
b11126
b11130
b11132
b11135
b11136
b11138
b11139
b11140
b11146
b11147
b11149
b11151
b11153
b11154
b11155
b11156
b11157
b11158
b11159
b11160
b11163
b11165
b11166
b11167
b11168
b11169
b11170
b11171
b11172
b11173
b11174
b11175
b11176
b11177
b11178
b11179
b11180
b11181
b11182
b11183
b11184
b11185
b11188
b11189
b11190
b11191
b11192
b11193
b11194
b11195
b11199
b11200
b11201
b11202
b11203
b11205
b11206
b11207
b11208
b11209
b11211
b11212
b11213
b11214
b11215
b11216
b11217
b11218
b11221
b11222
b11223
b11224
b11225
b11226
b11227
b11228
b11229
b11232
b11233
b11234
b11235
b11236
b11237
b11238
b11239
b11240
b11242
b11243
b11245
b11246
b11247
b11249
b11254
b11255
b11256
b11257
b11258
b11259
b11260
b11261
b11262
b11263
b11264
b11265
b11266
b11267
b11268
b11269
b11270
b11272
b11273
b11274
v0.*
v0.1.0
v0.1.1
v0.1.2
v0.2.0
v0.3.0
v0.4.0
v0.4.1
v0.5.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116840.json"
vanir_signatures
[
    {
        "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"
        }
    }
]
vanir_signatures_modified
"2026-10-29T07:22:58Z"