An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.
{ "vanir_signatures": [ { "digest": { "length": 1518.0, "function_hash": "212469072739278288309289786806033539927" }, "signature_version": "v1", "id": "CVE-2022-40304-376b1588", "source": "https://gitlab.gnome.org/GNOME/libxml2@1b41ec4e9433b05bb0376be4725804c54ef1d80b", "target": { "file": "entities.c", "function": "xmlFreeEntity" }, "deprecated": false, "signature_type": "Function" }, { "digest": { "threshold": 0.9, "line_hashes": [ "190634309909365081572002964407253390679", "20981680598902946597459201174086077651", "135843228308911638673221580279593924552", "271415920501539270409818771333293193896", "186202718443874429665500032856239860646", "32088003333689128658313958731218420663", "44854604637128393226590259948466683756", "83584544373375457504351447727436542090", "22139364655739247051689193855732986544", "208674971791359833230249325535172527155", "266066056691113486615055456167162324174", "313341472861122787965230127183017085052", "127246761576932228108426114084403362830", "78839942765528730925746383588030003090", "236478687228405542599739329630909915056", "245905885476591261846000206262995077905", "337884462249140212206220716934032023572", "200369385658860404298075823919733363331", "34954884922395009518202216480267812096", "77337070722703062369588001713270798945", "242458885784932244582738195390255882943", "81302689171149179324244108486628716980", "221227936269076106976937737383859706862", "263301782477819491026734216585822386774", "302177671052737766655115027868189079618", "201536121183659372662912577180426576551", "188721642947628140206203838293447428215", "138533467519930953247435247287428716584", "108601975786066442389999829442449230000", "231141905344525440643245490934281708454", "124281652967162078265088719179719004604", "296716198641811836580688440062790141425", "106652085057826332825731245215327335082", "84797466063776963283596362932182636183", "305642424639555715981956811880573835991", "326594552024490137922567897574735822816", "120050400841177294112893518169352104865", "163012958334194570575329210130758997215", "62991651390362493403073226293187881788", "156277527602119723146761073091882877465", "258254701040536153668645260100060120855", "46763122142022486641542133773457232365", "275348114928367355877731400569713379273", "267821946119455383337763212212522317663", "143641219971710333464881101828664565438", "187283542437493006705000548602924845765", "321856565995081156862682941697761830569", "36512508789285488580383488773230505393" ] }, "signature_version": "v1", "id": "CVE-2022-40304-656d1bff", "source": "https://gitlab.gnome.org/GNOME/libxml2@1b41ec4e9433b05bb0376be4725804c54ef1d80b", "target": { "file": "entities.c" }, "deprecated": false, "signature_type": "Line" }, { "digest": { "length": 1174.0, "function_hash": "8557866305532818140713559980477253807" }, "signature_version": "v1", "id": "CVE-2022-40304-96df7d08", "source": "https://gitlab.gnome.org/GNOME/libxml2@1b41ec4e9433b05bb0376be4725804c54ef1d80b", "target": { "file": "entities.c", "function": "xmlCreateEntity" }, "deprecated": false, "signature_type": "Function" } ] }