Bug 2276140 (CVE-2024-31745)

Summary: CVE-2024-31745 libdwarf: use after free in dw_empty_errlist_item in dwarf_alloc.c
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
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: ---
Doc Text:
A flaw was found in libdwarf. An attacker may use a specially-crafted file to trigger a use-after-free condition, which can potentially lead to an application crash or other unexpected behavior.
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: 2276141    
Bug Blocks: 2276137    

Description Robb Gatica 2024-04-19 19:48:02 UTC
Libdwarf v0.9.1 was discovered to contain a heap use-after-free via the dw_empty_errlist_item function at /libdwarf/dwarf_alloc.c.

https://github.com/davea42/libdwarf-code/commit/404e6b1b14f60c81388d50b4239f81d461b3c3ad
https://github.com/davea42/libdwarf-code/issues/238

Comment 1 Robb Gatica 2024-04-19 19:49:00 UTC
Created libdwarf tracking bugs for this issue:

Affects: fedora-all [bug 2276141]