Critical Buffer Overflow Vulnerability in tcpdump - CVE-2016-7931

tcpdump Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2016-7931: The MPLS parser in tcpdump before 4.9.0 has a buffer overflow in print-mpls.c:mpls_print(). 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 troubleshoot issues or analyze traffic patterns. The tool is widely used by network administrators and security professionals for its ability to dissect various network protocols. However, a critical vulnerability has been identified in tcpdump versions prior to 4.9.0, which exposes users to potential buffer overflow attacks.

Vulnerability Detail

The vulnerability, identified as CVE-2016-7931, originates from a buffer overflow in the MPLS parser within tcpdump, specifically in the function print-mpls.c:mpls_print(). This flaw allows an attacker to exploit the buffer overflow, potentially leading to arbitrary code execution, system crashes, or unauthorized access to sensitive data. Given the severity of this vulnerability, it has been assigned a 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

If an immediate update is not feasible, consider restricting access to the tcpdump tool to trusted users only, and avoid running it with elevated privileges. Additionally, monitor network traffic closely for any unusual activity that may indicate exploitation attempts.

Conclusion

The buffer overflow vulnerability in tcpdump (CVE-2016-7931) poses a significant risk to users of the tool. It is crucial to update to the patched version to mitigate potential threats. Users are encouraged to monitor their systems and restrict access as a temporary measure until the update can be applied.

See every vulnerability recorded for tcpdump →

Share this vulnerability

FAQ

CVE-2016-7931 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 platform to check if your application is affected by this vulnerability by analyzing your manifest file at Vulert Scanner.

Failing to address this vulnerability may expose your system to potential attacks, including unauthorized access and data breaches.

Yes, tcpdump has released a patch in version 4.9.0 and later to fix the buffer overflow vulnerability.

If an immediate update is not possible, restrict access to tcpdump and monitor network traffic for any suspicious activity.

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