CVE-2024-8006

Name
CVE-2024-8006
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
patch https://github.com/the-tcpdump-group/libpcap/commit/0f8a103469ce87d2b8d68c5130a46ddb7fb5eb29
patch https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b0d6

Match rules

CPE URI Source package Min version Max version
libpcap == 1.9.x == 1.9.x
libpcap >= 1.10.x <= 1.10.4

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
libpcap 3.20-main 1.10.4-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
libpcap 3.19-main 1.10.4-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
libpcap 3.18-main 1.10.4-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
libpcap 3.17-main 1.10.1-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable