CVE-2024-8006
NixOS vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-16412CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026
CVE-2026-16411CRITICAL9.8
  • NixOS logoNixOS
  • firefox
NoYesJul 21, 2026
CVE-2026-16410CRITICAL9.8
  • NixOS logoNixOS
  • firefox
NoYesJul 21, 2026
CVE-2026-16408CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026
CVE-2026-16409HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management