CVE-2016-5038
published 2017-02-17CVE-2016-5038: The dwarf_get_macro_startend_file function in dwarf_macro5.c in libdwarf before 20160923 allows remote attackers to cause a denial of service (out-of-bounds…
PriorityP335high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
4.38%
90.2th percentile
The dwarf_get_macro_startend_file function in dwarf_macro5.c in libdwarf before 20160923 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted string offset for .debug_str.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | dwarfutils | < dwarfutils 20160507+git20160523.9086738-1 (bookworm) | dwarfutils 20160507+git20160523.9086738-1 (bookworm) |
| libdwarf_project | libdwarf | >= 1999-12-14 < 2016-09-23 | 2016-09-23 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-w7w4-26x2-q6cm: The dwarf_get_macro_startend_file function in dwarf_macro5
ghsa_unreviewed·2022-05-13
CVE-2016-5038 [HIGH] CWE-125 GHSA-w7w4-26x2-q6cm: The dwarf_get_macro_startend_file function in dwarf_macro5
The dwarf_get_macro_startend_file function in dwarf_macro5.c in libdwarf before 20160923 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted string offset for .debug_str.
OSV
CVE-2016-5038: The dwarf_get_macro_startend_file function in dwarf_macro5
osv·2017-02-17·CVSS 7.5
CVE-2016-5038 [HIGH] CVE-2016-5038: The dwarf_get_macro_startend_file function in dwarf_macro5
The dwarf_get_macro_startend_file function in dwarf_macro5.c in libdwarf before 20160923 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted string offset for .debug_str.
Red Hat
libdwarf: Out-of-bounds read in dwarf_get_macro_startend_file()
vendor_redhat·2016-05-12·CVSS 7.5
CVE-2016-5038 [HIGH] CWE-125 libdwarf: Out-of-bounds read in dwarf_get_macro_startend_file()
libdwarf: Out-of-bounds read in dwarf_get_macro_startend_file()
The dwarf_get_macro_startend_file function in dwarf_macro5.c in libdwarf before 20160923 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted string offset for .debug_str.
Package: libdwarf (Red Hat Enterprise Linux 7) - Will not fix
Debian
CVE-2016-5038: dwarfutils - The dwarf_get_macro_startend_file function in dwarf_macro5.c in libdwarf before ...
vendor_debian·2016·CVSS 7.5
CVE-2016-5038 [HIGH] CVE-2016-5038: dwarfutils - The dwarf_get_macro_startend_file function in dwarf_macro5.c in libdwarf before ...
The dwarf_get_macro_startend_file function in dwarf_macro5.c in libdwarf before 20160923 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted string offset for .debug_str.
Scope: local
bookworm: resolved (fixed in 20160507+git20160523.9086738-1)
bullseye: resolved (fixed in 20160507+git20160523.9086738-1)
forky: resolved (fixed in 20160507+git20160523.9086738-1)
sid: resolved (fixed in 20160507+git20160523.9086738-1)
trixie: resolved (fixed in 20160507+git20160523.9086738-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-5028 CVE-2016-5029 CVE-2016-5030 CVE-2016-5031 CVE-2016-5032 CVE-2016-5033 CVE-2016-5034 CVE-2016-5035 CVE-2016-5036 CVE-2016-5038 libdwarf: various flaws [epel-6]
bugzilla·2016-05-26·CVSS 6.5
CVE-2016-5028 [MEDIUM] CVE-2016-5028 CVE-2016-5029 CVE-2016-5030 CVE-2016-5031 CVE-2016-5032 CVE-2016-5033 CVE-2016-5034 CVE-2016-5035 CVE-2016-5036 CVE-2016-5038 libdwarf: various flaws [epel-6]
CVE-2016-5028 CVE-2016-5029 CVE-2016-5030 CVE-2016-5031 CVE-2016-5032 CVE-2016-5033 CVE-2016-5034 CVE-2016-5035 CVE-2016-5036 CVE-2016-5038 libdwarf: various flaws [epel-6]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora EPEL.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RP
Bugzilla
CVE-2016-5028 CVE-2016-5029 CVE-2016-5030 CVE-2016-5031 CVE-2016-5032 CVE-2016-5033 CVE-2016-5034 CVE-2016-5035 CVE-2016-5036 CVE-2016-5038 libdwarf: various flaws [fedora-all]
bugzilla·2016-05-26·CVSS 6.5
CVE-2016-5028 [MEDIUM] CVE-2016-5028 CVE-2016-5029 CVE-2016-5030 CVE-2016-5031 CVE-2016-5032 CVE-2016-5033 CVE-2016-5034 CVE-2016-5035 CVE-2016-5036 CVE-2016-5038 libdwarf: various flaws [fedora-all]
CVE-2016-5028 CVE-2016-5029 CVE-2016-5030 CVE-2016-5031 CVE-2016-5032 CVE-2016-5033 CVE-2016-5034 CVE-2016-5035 CVE-2016-5036 CVE-2016-5038 libdwarf: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM
Bugzilla
CVE-2016-5038 libdwarf: Out-of-bounds read in dwarf_get_macro_startend_file()
bugzilla·2016-05-26·CVSS 7.5
CVE-2016-5038 [HIGH] CVE-2016-5038 libdwarf: Out-of-bounds read in dwarf_get_macro_startend_file()
CVE-2016-5038 libdwarf: Out-of-bounds read in dwarf_get_macro_startend_file()
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
Discussion:
Created libdwarf tracking bugs for this issue:
Affects: fedora-all [bug 1340128]
Affects: epel-6 [bug 1340129]
http://www.openwall.com/lists/oss-security/2016/05/24/1http://www.openwall.com/lists/oss-security/2016/05/25/1https://www.prevanders.net/dwarfbug.htmlhttp://www.openwall.com/lists/oss-security/2016/05/24/1http://www.openwall.com/lists/oss-security/2016/05/25/1https://www.prevanders.net/dwarfbug.html
2017-02-17
Published