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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libpcap | no fix listed | DEBIAN-CVE-2024-8006 |
| Debian:13 | libpcap | 1.10.5-1 | DEBIAN-CVE-2024-8006 |
| Debian:14 | libpcap | 1.10.5-1 | DEBIAN-CVE-2024-8006 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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