CVE-2018-16402: libelf/elf_end.c in elfutils 0.173 allows remote attackers to cause a denial of service (double free and appli CRITICAL 9.8 REMOTE WATCHLIST DOWNGRADE MITIGATE MITIGATE
CVE-2018-16402 is a critical-severity flaw (CVSS 9.8) affecting elfutils, debian linux, enterprise linux desktop. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
libelf/elf_end.c in elfutils 0.173 allows remote attackers to cause a denial of service (double free and application crash) or possibly have unspecified other impact because it tries to decompress twice.
Why this priority Critical severity Public exploit reference Remotely exploitable, no login, no user action On your watchlist A fixed release or distro patch exists.
Risk facts CVSS score 9.8 (Critical) Attack vector Network (remote) Attack complexity Low Privileges needed None User interaction None EPSS exploit chance 3.7% (top 10%) CISA exploited list No Weakness CWE-415 Published 2018-09-03 Last modified 2026-06-17
Share: LinkedIn · X · Reddit
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline 2018-09-03 19:29 UTC Published CVE record published2026-06-17 01:44 UTC Updated Record last modifiedelfutils project elfutils DOWNGRADE
Affected: 0.173
Fixed in: no fixed release known
Safe to downgrade to: a release before 0.173
1. Check installed version
Copy apt-cache policy elfutils || rpm -q elfutils || elfutils --version
2. No fixed release: DOWNGRADE to a release before 0.173 (Debian / Ubuntu)
Copy apt-cache madison elfutils
sudo apt install elfutils=<VERSION_BEFORE_0.173>
sudo apt-mark hold elfutils
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list elfutils
sudo dnf downgrade elfutils-<VERSION_BEFORE_0.173>
sudo dnf versionlock add elfutils
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
debian debian linux MITIGATE
Affected: 9.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 9.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat enterprise linux desktop MITIGATE
Affected: 7.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 7.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat enterprise linux server MITIGATE
Affected: 7.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 7.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat enterprise linux workstation MITIGATE
Affected: 7.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 7.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
opensuse leap MITIGATE
Affected: 15.0 · 15.1
Fixed in: no fixed release known
Safe to downgrade to: a release before 15.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
Exact fixes by distribution Show all
A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · copyparty ·
FIXED · 1.20.26-1.fc46 · FEDORA-2026-8fbe18458e ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-8fbe18458e
Fedora ELN · man-pages ·
FIXED · 6.20-1.eln159 · FEDORA-2026-f1f5fb11b4 ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-f1f5fb11b4
Ubuntu 22.04 · elfutils · NOT AFFECTED
Ubuntu 20.04 · elfutils · NOT AFFECTED
Debian 12 · elfutils · FIXED · 0.175-1
Copy sudo apt update && sudo apt install --only-upgrade elfutils
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' elfutils)" ge "0.175-1" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · elfutils · FIXED · 0.175-1
Copy sudo apt update && sudo apt install --only-upgrade elfutils
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' elfutils)" ge "0.175-1" && echo PATCHED || echo STILL-VULNERABLE
RHEL 7 · elfutils · FIXED · elfutils-0.176-2.el7
Copy sudo dnf upgrade --advisory=RHSA-2019:2197
rpm -q elfutils
RHEL 7.6 Extended Update Support · elfutils · FIXED · elfutils-0.172-4.el7_6
Copy sudo dnf upgrade --advisory=RHSA-2020:1471
rpm -q elfutils
RHEL 5 · elfutils · NOT AFFECTED
RHEL 6 · elfutils · NOT AFFECTED
RHEL 8 · elfutils · NOT AFFECTED
Alpine 3.20 · elfutils · FIXED · elfutils-0.174-r0
Copy apk add --upgrade elfutils
apk info -v elfutils
Alpine 3.21 · elfutils · FIXED · elfutils-0.174-r0
Copy apk add --upgrade elfutils
apk info -v elfutils
Alpine 3.22 · elfutils · FIXED · elfutils-0.174-r0
Copy apk add --upgrade elfutils
apk info -v elfutils
Alpine 3.23 · elfutils · FIXED · elfutils-0.174-r0
Copy apk add --upgrade elfutils
apk info -v elfutils
Copy sudo yum update --advisory=ALAS2-2019-1337
Verify at the official source NVD ·
CVE Program ·
Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems. Quick answers How do I fix CVE-2018-16402? elfutils: downgrade or apply the listed mitigation; debian linux: mitigate or apply the listed mitigation; enterprise linux desktop: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2018-16402 being exploited? CVE-2018-16402 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2018-16402 affect? CVE-2018-16402 affects elfutils, debian linux, enterprise linux desktop. Severity is critical (CVSS 9.8). libelf/elf_end.c in elfutils 0.173 allows remote attackers to cause a denial of service (double free and application crash) or possibly have unspecified other impact because it tries to decompress twice.
How urgent is CVE-2018-16402? Priority 72/100. Critical severity; Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist
Software pages Debian vulnerabilities
Related CVEs CVE-2021-33294 MEDIUM 5.5 DOWNGRADE In elfutils 0.183, an infinite loop was found in the function handle_symtab in readelf.c .Which allows attackeCVE-2020-21047 MEDIUM 5.5 DOWNGRADE The libcpu component which is used by libasm of elfutils version 0.177 (git 47780c9e), suffers from denial-of-CVE-2025-1377 LOW 3.3 DOWNGRADE A vulnerability, which was classified as problematic, has been found in GNU elfutils 0.192CVE-2025-1376 LOW 2.5 DOWNGRADE A vulnerability classified as problematic was found in GNU elfutils 0.192CVE-2025-1372 MEDIUM 5.3 DOWNGRADE A vulnerability was found in GNU elfutils 0.192References ← Back to latest CVEs