Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.
[
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"54434640033148516061231194138629026265",
"36005312606787468733691535169613857896",
"20406774513225240641428088838518152789",
"31152256589248188643522889485772072262",
"333018302007796322857284296544971108009",
"10474665604692016785909399706669282923",
"118852015686781280320926685007600972444",
"334926489830149146612760990200220186931",
"34578972368817921048594679401107949855",
"67938626018468066344711208432715017404",
"104549862364235433960528485759213327713",
"895104035598238706338726863454189642",
"333691659661794338377060553396893695292",
"225188868774070178604722169567298450289",
"178421009659369774024887256913739816277",
"164098357496020222110408314788895883612",
"201908675194593531614919158297368280763",
"88303667997138751197628739510642223009",
"108060129305723536833558510022955542062",
"155556404635052772361138247102782480973",
"93917638411116238411790677871894336141",
"89926923003986250422445763207465218698",
"156324533981147638834860265256208246410",
"221065977889216699488749717955358282063",
"73630240176910640457380312420342491903",
"150355747291049439676457778792698228849",
"239800797623572347964284585324405070738",
"36565342770416434674233130777148102467",
"12324359012331978738579947485860681388"
],
"threshold": 0.9
},
"deprecated": false,
"id": "CVE-2018-8099-5d41732f",
"target": {
"file": "src/index.c"
},
"source": "https://github.com/libgit2/libgit2/commit/58a6fe94cb851f71214dbefac3f9bffee437d6fe",
"signature_type": "Line"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "198063612693010879224485591649861150621",
"length": 2344.0
},
"deprecated": false,
"id": "CVE-2018-8099-f70f94cb",
"target": {
"function": "read_entry",
"file": "src/index.c"
},
"source": "https://github.com/libgit2/libgit2/commit/58a6fe94cb851f71214dbefac3f9bffee437d6fe",
"signature_type": "Function"
}
]