
Cloud Vulnerability DB
A community-led vulnerabilities database
Remote packet capture support is disabled by default in libpcap. When a user builds libpcap with remote packet capture support enabled, the pcap_findalldevs_ex() function becomes available. This function contains a vulnerability where it fails to properly check the return value from opendir() when processing a filesystem path argument, leading to a NULL pointer dereference when the specified path cannot be used as a directory (NVD).
The vulnerability is classified as a NULL Pointer Dereference (CWE-476). The issue occurs in the pcap_findalldevs_ex() function when processing directory paths. When the specified path cannot be used as a directory, the function receives NULL from opendir() but fails to validate this return value before passing it to readdir(). The vulnerability has been assigned a CVSS v3.1 Base Score of 4.4 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H (NVD).
The vulnerability can lead to a NULL pointer dereference, which typically results in a program crash. This could potentially be exploited to cause a denial of service condition in applications using the affected libpcap versions (NVD).
The vulnerability requires local access and high privileges to exploit. The attack complexity is low, but no user interaction is needed. There are no known reports of this vulnerability being exploited in the wild (NVD).
The vulnerability has been patched in the libpcap repository. Two commits address the issue: one implementing the fix and another backporting it. The fix involves proper error handling when the directory doesn't exist or is inaccessible (Patch 1, Patch 2).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."