Remote Packet Capture Vulnerability in libpcap: NULL Pointer Dereference Risk

libpcap Updated 02 Oct 2025

Summary

31/08/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-8006: Remote packet capture support is disabled by default in libpcap. Affects libpcap versions < 1.10.5-1. Fixed in 1.10.5-1. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libpcap is a widely used library for network packet capture and analysis. It provides a framework for capturing network traffic and is essential for various applications, including network monitoring and security analysis. The library supports multiple operating systems and is known for its flexibility and performance. However, a vulnerability has been identified that affects its remote packet capture functionality when built with specific options enabled.

Vulnerability Detail

The vulnerability arises from the function pcap_findalldevs_ex() in libpcap, which can be called with a filesystem path as an argument. If the specified path is not a valid directory, the function receives a NULL value from opendir(). Unfortunately, the function does not check this return value and subsequently passes the NULL pointer to readdir(), leading to a NULL pointer dereference. This can potentially crash the application or lead to undefined behavior, making it a significant security risk.

How To Fix

Minimum fixed version

1.10.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libpcap

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

Workaround

As a temporary workaround, users can avoid enabling remote packet capture support when building libpcap. This can be done by configuring the build options appropriately to disable this feature.

Conclusion

The identified vulnerability in libpcap poses a risk due to a NULL pointer dereference when remote packet capture support is enabled. Users are encouraged to update to the patched version 1.10.5-1 to ensure their applications remain secure. Additionally, utilizing tools like Vulert can help monitor and manage open-source vulnerabilities effectively.

See every vulnerability recorded for libpcap →

Share this vulnerability

FAQ

libpcap is a library used for capturing network packets and analyzing network traffic. It is commonly used in network monitoring tools and security applications.

The vulnerability involves a NULL pointer dereference in the pcap_findalldevs_ex() function, which can lead to application crashes or undefined behavior when remote packet capture support is enabled.

You can use Vulert, which monitors open-source vulnerabilities in real-time. By uploading your manifest file like package-lock.json to Vulert, you can check if your application is affected by this vulnerability.

Yes, a patched version of libpcap (1.10.5-1) is available. Users are advised to update to this version to mitigate the vulnerability.

If immediate updating is not possible, consider disabling remote packet capture support in your build configuration as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libpcap.

How To Fix

Minimum fixed version

1.10.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libpcap

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