cve.bz

CVE-2018-18521 Divide By Zero

5.5 mediumExploit referenceEPSS 1.7%Fix available

Medium (5.5). EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
Divide-by-zero vulnerabilities in the function arlib_add_symbols() in arlib.c in elfutils 0.174 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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 78th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-369 Divide By Zero
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-18521 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-18521?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-18521?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-18521 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
elfutils_project:elfutils0.174
debian:debian_linux8.0
debian:debian_linux9.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_workstation7.0
opensuse:leap15.0
opensuse:leap15.1
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8elfutils0.159-4.2+deb8u1DLA-1689-1
Debian9elfutils0.168-1+deb9u1DLA-2802-1
Debian12, 13, 14elfutils0.175-1DEBIAN-CVE-2018-18521
Ubuntu16.04:LTSelfutils0.165-3ubuntu1.2UBUNTU-CVE-2018-18521 USN-4012-1
Ubuntu18.04:LTSelfutils0.170-0.4ubuntu0.1UBUNTU-CVE-2018-18521 USN-4012-1
Ubuntu20.04:LTSelfutils0.176-1.1ubuntu0.1USN-6322-1
UbuntuPro:14.04:LTSelfutils0.158-0ubuntu5.3+esm1UBUNTU-CVE-2018-18521 USN-6322-1
UbuntuPro:16.04:LTSelfutils0.165-3ubuntu1.2+esm1USN-6322-1
UbuntuPro:18.04:LTSelfutils0.170-0.4ubuntu0.1+esm1USN-6322-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreelfutils, elfutils-libs, elfutils-devel and 6 more0:0.176-2.el7RHSA-2019:2197
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP3 and 5 moreelfutils0.158-7.7.2SUSE-SU-2019:1733-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Module for Basesystem 15 SP3dwarves1.22-150300.7.3.1SUSE-SU-2022:2614-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Module for Basesystem 15 SP3elfutils0.177-150300.11.3.1SUSE-SU-2022:2614-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1elfutils0.168-4.5.3SUSE-SU-2019:1486-1
openSUSELeap 15.0, Leap 15.1elfutils0.168-lp151.4.3.1openSUSE-SU-2019:1590-1
openSUSELeap 15.3dwarves1.22-150300.7.3.1SUSE-SU-2022:2614-1
openSUSELeap 15.3elfutils0.177-150300.11.3.1SUSE-SU-2022:2614-1
openSUSELeap Micro 5.2dwarves1.22-150300.7.3.1SUSE-SU-2022:2614-2
openSUSELeap Micro 5.2elfutils0.177-150300.11.3.1SUSE-SU-2022:2614-2

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's 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/.

ProductPackageStateAdvisory
Red Hat Ansible Tower 3.4 for RHEL 7ansible-tower-34/ansible-tower-memcached:1.4.15-28Fixed 2020-02-18RHBA-2020:0547
Red Hat Ansible Tower 3.4 for RHEL 7ansible-tower-35/ansible-tower-memcached:1.4.15-28Fixed 2020-02-18RHBA-2020:0547
Red Hat Ansible Tower 3.4 for RHEL 7ansible-tower-37/ansible-tower-memcached-rhel7:1.4.15-28Fixed 2020-02-18RHBA-2020:0547
Red Hat Enterprise Linux 7elfutils-0:0.176-2.el7Fixed 2019-08-06RHSA-2019:2197
Red Hat Enterprise Linux 5elfutilsWill not fix
Red Hat Enterprise Linux 6elfutilsWill not fix
Red Hat Enterprise Linux 8elfutilsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-18521.

References

Check your stackJSON