CVE-2024-8006
JSON

4.4medium

NULL pointer dereference in libpcap before 1.10.5 with remote packet capture support

Severity
4.4medium CVSS:3.1 by Tcpdump
Exploit likelihood
0.29% (higher than 14% of CVEs)
Published
Last changed
Assigned by
Tcpdump

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

Product or packageVersionsReported by
The Tcpdump Group libpcap1.9.x, from 1.10.x up to 1.10.4CVE List
tcpdump libpcapbefore 1.10.5NVD

All scores

Tcpdump4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
NVD4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

La compatibilidad con captura remota de paquetes está deshabilitada de forma predeterminada en libpcap. Cuando un usuario compila libpcap con la compatibilidad con captura remota de paquetes habilitada, una de las funciones que se vuelven disponibles es pcap_findalldevs_ex(). Uno de los argumentos de la función puede ser una ruta del sistema de archivos, que normalmente significa un directorio con archivos de datos de entrada. Cuando la ruta especificada no se puede usar como directorio, la función recibe NULL de opendir(), pero no verifica el valor de retorno y pasa el valor NULL a readdir(), lo que provoca una desreferencia del puntero NULL.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-8006 changed 2024-09-03CVE Terms of Use
NVDCVE-2024-8006 changed 2026-06-17Public domain