CVE-2018-16402 Use after free in n/a

Critical 9.8 Published Updated

A double free vulnerability in elfutils allows remote attackers to cause a denial of service via crafted ELF files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-16402?

CVE-2018-16402 is a critical use after free vulnerability in Canonical Ubuntu Linux, published on 3 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-415

Which versions are affected by CVE-2018-16402?

It affects 7 products.

Linux distribution packages (18)
elfutils Red Hat:rhel_eus:7.6::computenodeAll versions0:0.172-4.el7_6
elfutils-debuginfo Red Hat:rhel_eus:7.6::computenodeAll versions0:0.172-4.el7_6
elfutils-default-yama-scope Red Hat:rhel_eus:7.6::computenodeAll versions0:0.172-4.el7_6
elfutils-devel Red Hat:rhel_eus:7.6::computenodeAll versions0:0.172-4.el7_6
elfutils-devel-static Red Hat:rhel_eus:7.6::computenodeAll versions0:0.172-4.el7_6
elfutils-libelf Red Hat:rhel_eus:7.6::computenodeAll versions0:0.172-4.el7_6
elfutils-libelf-devel Red Hat:rhel_eus:7.6::computenodeAll versions0:0.172-4.el7_6
elfutils-libelf-devel-static Red Hat:rhel_eus:7.6::computenodeAll versions0:0.172-4.el7_6
elfutils-libs Red Hat:rhel_eus:7.6::computenodeAll versions0:0.172-4.el7_6
elfutils Red Hat:rhel_eus:7.6::serverAll versions0:0.172-4.el7_6
elfutils-debuginfo Red Hat:rhel_eus:7.6::serverAll versions0:0.172-4.el7_6
elfutils-default-yama-scope Red Hat:rhel_eus:7.6::serverAll versions0:0.172-4.el7_6
elfutils-devel Red Hat:rhel_eus:7.6::serverAll versions0:0.172-4.el7_6
elfutils-devel-static Red Hat:rhel_eus:7.6::serverAll versions0:0.172-4.el7_6
elfutils-libelf Red Hat:rhel_eus:7.6::serverAll versions0:0.172-4.el7_6
elfutils-libelf-devel Red Hat:rhel_eus:7.6::serverAll versions0:0.172-4.el7_6
elfutils-libelf-devel-static Red Hat:rhel_eus:7.6::serverAll versions0:0.172-4.el7_6
elfutils-libs Red Hat:rhel_eus:7.6::serverAll versions0:0.172-4.el7_6

Products include Canonical Ubuntu Linux, Debian Debian Linux, Elfutils Project Elfutils, Opensuse Leap, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server and 1 more.

How do I fix CVE-2018-16402?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2018-16402 being exploited?

There is no known exploitation of CVE-2018-16402 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-16402, DEBIAN-CVE-2018-16402, GHSA-c337-vg7c-wfqh, RHSA-2020:1471, UBUNTU-CVE-2018-16402.

Is CVE-2018-16402 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free