Bug 1646482 (CVE-2018-18521) - CVE-2018-18521 elfutils: Divide-by-zero in arlib_add_symbols function in arlib.c
Summary: CVE-2018-18521 elfutils: Divide-by-zero in arlib_add_symbols function in arlib.c
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-18521
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: 1646483 1646484 1651201 1651202 1651203
Blocks: 1646485
TreeView+ depends on / blocked
 
Reported: 2018-11-05 15:42 UTC by Laura Pardo
Modified: 2023-03-24 14:20 UTC (History)
16 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:2197 0 None None None 2019-08-06 12:27:12 UTC

Description Laura Pardo 2018-11-05 15:42:24 UTC
A flaw was found in elfutils 0.174. A Divide-by-zero vulnerabilities in the function arlib_add_symbols() in arlib.c allow remote attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by eu-ranlib, because a zero sh_entsize is mishandled. 


References:
https://sourceware.org/bugzilla/show_bug.cgi?id=23786 
https://sourceware.org/ml/elfutils-devel/2018-q4/msg00055.html

Upstream Patch:
https://sourceware.org/git/?p=elfutils.git;a=commit;h=2b16a9be69939822dcafe075413468daac98b327

Comment 1 Laura Pardo 2018-11-05 15:43:18 UTC
Created elfutils tracking bugs for this issue:

Affects: fedora-all [bug 1646483]

Comment 3 Mark Wielaard 2018-11-05 16:16:14 UTC
Note that this only impacts the eu-ar and eu-ranlib binaries. Only those two share the arlib.c code (arlib isn't a generic library and isn't used by any other libraries or tools). ar files and the eu-ar/eu-ranlib tools are only used during development and it is hard to see when this denial of service issue would come up.

Comment 5 Stefan Cornelius 2018-11-19 12:07:50 UTC
Statement:

This issue affects the versions of elfutils as shipped with Red Hat Enterprise Linux 5, 6, and 7.

Red Hat Enterprise Linux 5 is now in Extended Life Phase of the support and maintenance life cycle. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

Red Hat Enterprise Linux 6 is now in Maintenance Support 2 Phase of the support and maintenance life cycle. This has been rated as having a security impact of Low, and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

Comment 7 errata-xmlrpc 2019-08-06 12:27:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2019:2197 https://access.redhat.com/errata/RHSA-2019:2197

Comment 8 Product Security DevOps Team 2019-08-06 13:20:36 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2018-18521


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