CVE-2024-8006 NULL pointer dereference in libpcap before 1.10.5 with remote packet capture support
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Debian
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.
Upgrade path
7 packages: 6 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libpcap(Debian 12) | = 1.10.3-1; = 1.10.4-1; = 1.10.4-2; = 1.10.4-3 +12 more | No fix listed | No fix yet |
| debian/libpcap(Debian 13) | < 1.10.5-1 | 1.10.5-1 | Fixed |
| debian/libpcap(Debian 14) | < 1.10.5-1 | 1.10.5-1 | Fixed |
| Microsoft azure linux | < 1.10.5-1; < 7.95-2 | 1.10.5-1, 7.95-2 | Fixed |
| Microsoft cbl mariner | < 1.10.1-3; < 7.93-3 | 1.10.1-3, 7.93-3 | Fixed |
| tcpdump libpcap | < 1.10.5 | 1.10.5 | Fixed |
| The Tcpdump Group libpcap | = 1.9.x; >= 1.10.x, <= 1.10.4 | after 1.10.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cbl mariner | < 1.10.1-3 | 1.10.1-3 |
| Microsoft cbl mariner | < 7.93-3 | 7.93-3 |
| Microsoft azure linux | < 1.10.5-1 | 1.10.5-1 |
| Microsoft azure linux | < 7.95-2 | 7.95-2 |
| debian/libpcap(Debian:12) | All versions | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.3-1 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.4-1 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.4-2 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.4-3 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.4-4 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.4-4.1 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.4-4.1~exp1 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.4-5 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.4-5+hurd.1 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.5-1 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.5-2 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.6-1 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.6-2 | No fix listed |
| debian/libpcap(Debian:12) | = 1.10.7-1 | No fix listed |
| debian/libpcap(Debian:12) | = 1.11.0-1 | No fix listed |
| debian/libpcap(Debian:13) | < 1.10.5-1 | 1.10.5-1 |
| debian/libpcap(Debian:14) | < 1.10.5-1 | 1.10.5-1 |
| The Tcpdump Group libpcap | = 1.9.x | No fix listed |
| The Tcpdump Group libpcap | >= 1.10.x, <= 1.10.4 | No fix listed |
| tcpdump libpcap | < 1.10.5 | 1.10.5 |
References
- MSRC Security Update Guide vendor-advisory
- libpcap vendor-advisory
- Debian Security Tracker CVE-2024-8006 vendor-advisory
- github.com patch
- github.com patch