Bug 2267700 (CVE-2024-2002)

Summary: CVE-2024-2002 libdwarf: crashes randomly on fuzzed object
Product: [Other] Security Response Reporter: ybuenos
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libdwarf-0.9.2 Doc Type: If docs needed, set a value
Doc Text:
A double-free vulnerability was found in libdwarf. In a multiply-corrupted DWARF object, libdwarf may try to dealloc(free) an allocation twice, potentially causing unpredictable and various results.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2267720    
Bug Blocks: 2267723    

Description ybuenos 2024-03-04 14:37:30 UTC
In a multiply-corrupted DWARF object libdwarf may try to dealloc(free) an allocation twice.
Results are unpredictable and various. This has been a possibility since we added code to prevent leaks when generating 'unattached' Dwarf_Error records (where there is no Dwarf_Debug available at the point of error).
The problem was introduced in libdwarf-0.1.0 in 2021.

Comment 1 ybuenos 2024-03-04 14:38:40 UTC
Flaw ID on github repo: DW202402-002

Comment 2 ybuenos 2024-03-04 16:23:51 UTC
Created libdwarf tracking bugs for this issue:

Affects: fedora-all [bug 2267720]