Vulnerability · Published Aug 30, 2024 · Assigned by Tcpdump

CVE-2024-8006NULL pointer dereference in libpcap before 1.10.5 with remote packet capture support

Medium 4.4

In plain English

A medium-severity null pointer dereference in libpcap from The Tcpdump Group. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 16% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.2%top 84.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libpcapno fix listedDEBIAN-CVE-2024-8006
Debian:13libpcap1.10.5-1DEBIAN-CVE-2024-8006
Debian:14libpcap1.10.5-1DEBIAN-CVE-2024-8006

Affected products (as reported)

VendorProductVersions
The Tcpdump Group libpcap 1.9.x1.10.x – through 1.10.4

Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

References