Bug 1340116 (CVE-2016-5044) - CVE-2016-5044 libdwarf: Heap-based buffer overflow in update_entry()
Summary: CVE-2016-5044 libdwarf: Heap-based buffer overflow in update_entry()
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2016-5044
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-26 13:23 UTC by Andrej Nemec
Modified: 2021-02-17 03:49 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-05-26 13:42:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2016-05-26 13:23:02 UTC
A vulnerability was found in libdwarf in dwarf_elf_access.c:1071. A crafted ELF file may lead to a large offset value, which bigger than the size of target_section heap chunk, then this WRITE_UNALIGNED() function will write the value of &outval out of the heap chunk. offset is a 64bit unsigned int value, so this is more than a heap overflow bug, but also a Out-of-Bound write bug. So WRITE_UNALIGNED() need more strictly checking to prevent this. 

References:

http://seclists.org/oss-sec/2016/q2/393

External references:

https://www.prevanders.net/dwarfbug.html

Upstream fix:

https://sourceforge.net/p/libdwarf/code/ci/98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f

Comment 1 Tom Hughes 2016-05-26 13:29:35 UTC
Already fixed in Fedora.


Note You need to log in before you can comment on or make changes to this bug.