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