Bug 1340106 (CVE-2016-5038) - CVE-2016-5038 libdwarf: Out-of-bounds read in dwarf_get_macro_startend_file()
Summary: CVE-2016-5038 libdwarf: Out-of-bounds read in dwarf_get_macro_startend_file()
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2016-5038
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: 1340128 1340129
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-26 13:07 UTC by Andrej Nemec
Modified: 2021-02-17 03:49 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-08 02:53:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2016-05-26 13:07:03 UTC
An out-of-bounds read was found in dwarf_get_macro_startend_file(). Test object shows out of bound read. OOB at: line 772 *src_file_name = macro_context->mc_srcfiles[trueindex]; in dwarf_macro5.c A string offset into .debug_str is outside the bounds of the .debug_str section. 

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/82d8e007851805af0dcaaff41f49a2d48473334b

Comment 1 Andrej Nemec 2016-05-26 13:42:45 UTC
Created libdwarf tracking bugs for this issue:

Affects: fedora-all [bug 1340128]
Affects: epel-6 [bug 1340129]


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