CVE-2024-8006NULL pointer dereference in libpcap before 1.10.5 with remote packet capture support
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | libpcap | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libpcap | Not affected vulnerable_code_not_present | ||
| Debian 14 | libpcap | Fixed | 1.10.5-1 | DEBIAN-CVE-2024-8006 |
| Debian 13 | libpcap | Fixed | 1.10.5-1 | DEBIAN-CVE-2024-8006 |
| Debian 12 | libpcap | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2024-8006 | |
| Red Hat Enterprise Linux 10 | libpcap | Not affected | ||
| Red Hat Enterprise Linux 10 | libpcap-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libpcap | Not affected | ||
| Red Hat Enterprise Linux 9 | libpcap-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libpcap | Not affected | ||
| Red Hat Enterprise Linux 8 | libpcap-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libpcap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libpcap-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libpcap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libpcap-devel | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by Tcpdump, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- The Tcpdump Group libpcap: affected: 1.9.x, 1.10.x to 1.10.4
Solution: Upgrade to libpcap 1.10.5.
Workaround: Do not build libpcap with remote packet capture support.
Vendor advisories:
- https://github.com/the-tcpdump-group/libpcap/commit/0f8a103469ce87d2b8d68c5130a46ddb7fb5e… (patch)
- https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b… (patch)
References
- https://github.com/the-tcpdump-group/libpcap/commit/0f8a103469ce87d2b8d68c5130a46ddb7fb5eb29
- https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b0d6
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.