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