CVE-2018-16301 Memory corruption in tcpdump

High 7.8 Published Updated

A buffer overflow in tcpdump's command-line argument parser allows attackers to execute arbitrary code or cause a denial of service by providing a specific large file name.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-16301?

CVE-2018-16301 is a high-severity memory corruption vulnerability in Tcpdump Tcpdump, published on 3 Oct 2019. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

The command-line argument parser in tcpdump before 4.99.0 has a buffer overflow in tcpdump.c:read_infile(). To trigger this vulnerability the attacker needs to create a 4GB file on the local filesystem and to specify the file name as the value of the -F command-line argument of tcpdump.

Weakness: CWE-120, CWE-787, CWE-190

Which versions are affected by CVE-2018-16301?

It affects 1 product.

Linux distribution packages (37)
tcpdump SUSE:Enterprise Storage 6All versions4.9.2-3.18.1
tcpdump SUSE:Enterprise Storage 7All versions4.9.2-3.18.1
tcpdump SUSE:HPE Helion OpenStack 8All versions4.9.2-14.20.1
tcpdump SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise Point of Sale 11 SP3All versions3.9.8-1.30.19.1
tcpdump SUSE:Linux Enterprise Real Time 15 SP2All versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise Server 11 SP4-LTSSAll versions3.9.8-1.30.19.1
tcpdump SUSE:Linux Enterprise Server 12 SP2-BCLAll versions4.9.2-14.20.1
tcpdump SUSE:Linux Enterprise Server 12 SP3-BCLAll versions4.9.2-14.20.1
tcpdump SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions4.9.2-14.20.1
tcpdump SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions4.9.2-14.20.1
tcpdump SUSE:Linux Enterprise Server 12 SP5All versions4.9.2-14.20.1
tcpdump SUSE:Linux Enterprise Server 15 SP1-BCLAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise Server 15 SP2-BCLAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise Server 15-LTSSAll versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions4.9.2-14.20.1
tcpdump SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions4.9.2-14.20.1
tcpdump SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions4.9.2-14.20.1
tcpdump SUSE:Linux Enterprise Server for SAP Applications 15All versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions4.9.2-3.18.1
tcpdump SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions4.9.2-3.18.1
tcpdump SUSE:Manager Proxy 4.1All versions4.9.2-3.18.1
tcpdump SUSE:Manager Retail Branch Server 4.1All versions4.9.2-3.18.1
tcpdump SUSE:Manager Server 4.1All versions4.9.2-3.18.1
tcpdump SUSE:OpenStack Cloud 8All versions4.9.2-14.20.1
tcpdump SUSE:OpenStack Cloud 9All versions4.9.2-14.20.1
tcpdump SUSE:OpenStack Cloud Crowbar 8All versions4.9.2-14.20.1
tcpdump SUSE:OpenStack Cloud Crowbar 9All versions4.9.2-14.20.1
tcpdump openSUSE:Leap 15.3All versions4.9.2-3.18.1

Products include Tcpdump Tcpdump.

How do I fix CVE-2018-16301?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2018-16301 being exploited?

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

All Tcpdump Tcpdump vulnerabilities

Sources

Also known as ALPINE-CVE-2018-16301, AZL-8506, DEBIAN-CVE-2018-16301, GHSA-h8wh-rj39-x373, OESA-2022-1862, OESA-2022-1863 and 5 more.

Is CVE-2018-16301 in your software?

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

Check your SBOMs for free