Vulnerabilities / CVE-2018-16402

critical

CVE-2018-16402

elfutils: Double-free due to double decompression of sections in crafted ELF causes crash

Published Modified CWE 415
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat4.3CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (low), Amazon (low), Oracle (low), Ubuntu (low).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 1.0elfutils0.169-2.ph1
Photon OS 2.0elfutils0.169-3.ph2
alpine 3.12elfutils0.174-r0
alpine 3.13elfutils0.174-r0
alpine 3.14elfutils0.174-r0
alpine 3.15elfutils0.174-r0
alpine 3.16elfutils0.174-r0
alpine 3.17elfutils0.174-r0
alpine 3.18elfutils0.174-r0
alpine 3.19elfutils0.174-r0
alpine 3.20elfutils0.174-r0
alpine 3.21elfutils0.174-r0
Show all 45 entries from 30 sources
SourcePackageFixed in
Photon OS 1.0elfutils0.169-2.ph1
Photon OS 2.0elfutils0.169-3.ph2
alpine 3.12elfutils0.174-r0
alpine 3.13elfutils0.174-r0
alpine 3.14elfutils0.174-r0
alpine 3.15elfutils0.174-r0
alpine 3.16elfutils0.174-r0
alpine 3.17elfutils0.174-r0
alpine 3.18elfutils0.174-r0
alpine 3.19elfutils0.174-r0
alpine 3.20elfutils0.174-r0
alpine 3.21elfutils0.174-r0
alpine 3.22elfutils0.174-r0
alpine 3.23elfutils0.174-r0
alpine 3.24elfutils0.174-r0
alpine edgeelfutils0.174-r0
amazon linux 2elfutils0.176-2.amzn2
amazon linux 2elfutils-debuginfo0.176-2.amzn2
amazon linux 2elfutils-default-yama-scope0.176-2.amzn2
amazon linux 2elfutils-devel0.176-2.amzn2
amazon linux 2elfutils-devel-static0.176-2.amzn2
amazon linux 2elfutils-libelf0.176-2.amzn2
amazon linux 2elfutils-libelf-devel0.176-2.amzn2
amazon linux 2elfutils-libelf-devel-static0.176-2.amzn2
amazon linux 2elfutils-libs0.176-2.amzn2
debian 11elfutils0.175-1
debian 12elfutils0.175-1
debian 13elfutils0.175-1
debian 14elfutils0.175-1
debian 9elfutils0.168-1+deb9u1
echoelfutils0.175-1
Oracle Linux 7elfutils0.176-2.el7
Oracle Linux 7elfutils-default-yama-scope0.176-2.el7
Oracle Linux 7elfutils-devel0.176-2.el7
Oracle Linux 7elfutils-devel-static0.176-2.el7
Oracle Linux 7elfutils-libelf0.176-2.el7
Oracle Linux 7elfutils-libelf-devel0.176-2.el7
Oracle Linux 7elfutils-libelf-devel-static0.176-2.el7
Oracle Linux 7elfutils-libs0.176-2.el7
root.io debian 12rootio-elfutils0.175-1
ubuntu 16.04elfutils0.165-3ubuntu1.2
ubuntu 16.04-ESMelfutils0.165-3ubuntu1.2
ubuntu 18.04elfutils0.170-0.4ubuntu0.1
ubuntu 18.04-ESMelfutils0.170-0.4ubuntu0.1
ubuntu 18.10elfutils0.170-0.5.0ubuntu1.1

References

All 12 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.