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


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.22% (13th 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-DEBIAN13-LIBPCAP-7855692
  • published31 Aug 2024
  • 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 Debian:13 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 Debian. See How to fix? for Debian:13 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