Buffer Overflow Vulnerability in tcpdump

tcpdump Updated 02 Oct 2025

Summary

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

CVE-2016-7931: The MPLS parser in tcpdump before 4.9.0 has a buffer overflow in print-mpls.c:mpls_print(). Affects tcpdump across 2 version ranges.

< 4.9.0-r0 < af974494da71f2dae8eeac40e1611db5d6a82668

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 Your last release was probably never penetration tested 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 widely used packet analyzer tool that allows users to capture and analyze network traffic. It is commonly used for troubleshooting network issues, monitoring network activity, and performing network security analysis. However, a buffer overflow vulnerability (CVE-2016-7931) has been discovered in tcpdump's MPLS parser. This vulnerability can be exploited by an attacker to execute arbitrary code or crash the tcpdump process.

Vulnerability Detail

The buffer overflow vulnerability in tcpdump's MPLS parser (print-mpls.c:mpls_print()) allows an attacker to overflow a buffer and overwrite adjacent memory. By crafting a malicious MPLS packet, an attacker can trigger this vulnerability and potentially execute arbitrary code with the privileges of the tcpdump process. This can lead to a complete compromise of the system or denial of service.

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

There is no known workaround for this vulnerability. It is crucial to update tcpdump to the fixed version as soon as possible.

Conclusion

The buffer overflow vulnerability in tcpdump's MPLS parser can have severe consequences, including arbitrary code execution or denial of service. It is crucial to update tcpdump to the fixed version (4.9.0 or later) to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for tcpdump →

Share this vulnerability

FAQ

tcpdump is a packet analyzer tool used for capturing and analyzing network traffic.

This vulnerability can allow an attacker to execute arbitrary code or crash the tcpdump process, potentially leading to a complete compromise of the system or denial of service.

To fix this vulnerability, update tcpdump to version 4.9.0 or later.

No, there is no known workaround for this vulnerability. Updating tcpdump to the fixed version is the recommended solution.

For more information about this vulnerability, you can refer to the CVE-2016-7931 entry in the National Vulnerability Database (NVD) or contact the tcpdump development team.

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