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

- Severity: Medium 4.4 (CVSS:3.1, scored by Tcpdump) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 14% of CVEs (2026-11-30)
- Published: 2024-08-30T23:53:11.334Z
- Modified: 2026-06-17T08:21:39.470Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- The Tcpdump Group libpcap: 1.9.x; from 1.10.x up to 1.10.4
- tcpdump libpcap: before 1.10.5

## Every score

- Tcpdump: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/the-tcpdump-group/libpcap/commit/0f8a103469ce87d2b8d68c5130a46ddb7fb5eb29> (patch)
- <https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b0d6> (patch)

## Sources

- CVE List: [CVE-2024-8006](https://www.cve.org/CVERecord?id=CVE-2024-8006), CVE Terms of Use, modified 2024-09-03
- NVD: [CVE-2024-8006](https://nvd.nist.gov/vuln/detail/CVE-2024-8006), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-8006 · Whole record: https://cve.day/CVE-2024-8006.json · Rebuilt by cve.day 2026-11-25T22:58:44.909Z
