There is a heap-based buffer over-read in libdwarf 0.4.0. This issue is related to dwarfglobalformref_b.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-34299.json"
[
{
"digest": {
"length": 3791.0,
"function_hash": "78862220269873398469667286450600140818"
},
"id": "CVE-2022-34299-40819a14",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/davea42/libdwarf-code/commit/7ef09e1fc9ba07653dd078edb2408631c7969162",
"target": {
"function": "dwarf_global_formref_b",
"file": "src/lib/libdwarf/dwarf_form.c"
}
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"258716398145294568082527531509394198831",
"163769783715992938486691183309269823418",
"339270606956719756792502860832076083990",
"159490849568476158364029038457075306881",
"315320428459480269092930358133969609620",
"265780766283395225142527022282432068556"
]
},
"id": "CVE-2022-34299-6d88f717",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/davea42/libdwarf-code/commit/7ef09e1fc9ba07653dd078edb2408631c7969162",
"target": {
"file": "src/lib/libdwarf/dwarf_form.c"
}
}
]
"2026-04-12T02:57:01Z"