NULL Pointer Dereference Affecting libpcap package, versions <1.10.5-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.24% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-LIBPCAP-19637971
  • published6 Sept 2026
  • disclosed31 Aug 2024

Introduced: 31 Aug 2024

CVE-2024-8006  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade Echo:latest libpcap to version 1.10.5-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libpcap package and not the libpcap package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

Remote packet capture support is disabled by default in libpcap. When a user builds libpcap with remote packet capture support enabled, one of the functions that become available is pcap_findalldevs_ex(). One of the function arguments can be a filesystem path, which normally means a directory with input data files. When the specified path cannot be used as a directory, the function receives NULL from opendir(), but does not check the return value and passes the NULL value to readdir(), which causes a NULL pointer derefence.

CVSS Base Scores

version 3.1