Critical Buffer Overflow Vulnerability in tcpdump: CVE-2016-7974

tcpdump Updated 02 Oct 2025

Summary

28/01/2017
N/A
Yes i
Critical
9.8

ALPINE-CVE-2016-7974: The IP parser in tcpdump before 4.9.0 has a buffer overflow in print-ip.c, multiple functions. Affects tcpdump versions < 4.9.0-r0. Fixed in 4.9.0-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

tcpdump is a powerful command-line packet analyzer tool used for network traffic monitoring and analysis. It allows users to capture and display the packets being transmitted or received over a network to which the computer is attached. This tool is widely used by network administrators and security professionals to troubleshoot network issues and analyze network security. However, tcpdump versions prior to 4.9.0 are vulnerable to a critical buffer overflow, which could lead to severe security risks.

Vulnerability Detail

The vulnerability, identified as CVE-2016-7974, originates from a buffer overflow in the IP parser within tcpdump's print-ip.c file. This flaw allows an attacker to exploit the vulnerability by sending specially crafted packets, potentially leading to arbitrary code execution, system crashes, or unauthorized access to sensitive data. The severity of this vulnerability is underscored by its CVSS score of 9.8, indicating a critical risk level that necessitates immediate attention.

How To Fix

Minimum fixed version

4.9.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade tcpdump

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can limit the exposure of tcpdump by restricting its usage to trusted networks and avoiding the capture of untrusted or potentially malicious packets until the package is updated.

Conclusion

The CVE-2016-7974 vulnerability in tcpdump poses a significant risk to systems running affected versions. It is crucial for users to update to version 4.9.0 or later to protect against potential exploits. Utilizing tools like Vulert can further enhance security by providing real-time monitoring for vulnerabilities.

See every vulnerability recorded for tcpdump →

Share this vulnerability

FAQ

CVE-2016-7974 is a critical buffer overflow vulnerability found in tcpdump versions prior to 4.9.0, which can lead to arbitrary code execution.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability can result in system crashes, unauthorized access to sensitive data, or arbitrary code execution.

You can update tcpdump to the patched version by running the command 'apk add tcpdump@4.9.0-r0' in your Alpine Linux terminal.

Yes, Vulert provides a service that monitors and alerts for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for tcpdump.

How To Fix

Minimum fixed version

4.9.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade tcpdump

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback