{"id":"UBUNTU-CVE-2024-8006","details":"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.","modified":"2026-02-05T03:36:53.590295Z","published":"2024-08-31T00:15:00Z","withdrawn":"2025-06-23T15:57:34Z","related":["CVE-2024-8006"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-8006"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-8006"},{"type":"REPORT","url":"https://github.com/the-tcpdump-group/libpcap/commit/0f8a103469ce87d2b8d68c5130a46ddb7fb5eb29"},{"type":"REPORT","url":"https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b0d6"},{"type":"REPORT","url":"https://github.com/the-tcpdump-group/libpcap/commit/0f8a103469ce87d2b8d68c5130a46ddb7fb5eb29"},{"type":"REPORT","url":"https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b0d6"}],"affected":[{"package":{"name":"libpcap","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/libpcap"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.0-2","1.5.1-1","1.5.2-1","1.5.3-1","1.5.3-2","1.5.3-2ubuntu0.1"],"ecosystem_specific":{"ubuntu_priority":"medium"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-8006.json"}},{"package":{"name":"libpcap","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libpcap"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.4-1","1.7.4-2","1.7.4-2ubuntu0.1"],"ecosystem_specific":{"ubuntu_priority":"medium"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-8006.json"}},{"package":{"name":"libpcap","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/libpcap"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.1-5ubuntu1","1.8.1-6ubuntu1","1.8.1-6ubuntu1.18.04.1","1.8.1-6ubuntu1.18.04.2"],"ecosystem_specific":{"ubuntu_priority":"medium"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-8006.json"}},{"package":{"name":"libpcap","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libpcap"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.1-2","1.9.1-3"],"ecosystem_specific":{"ubuntu_priority":"medium"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-8006.json"}},{"package":{"name":"libpcap","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libpcap"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0-2build1","1.10.1-4","1.10.1-4build1"],"ecosystem_specific":{"ubuntu_priority":"medium"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-8006.json"}},{"package":{"name":"libpcap","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libpcap"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.4-4","1.10.4-4ubuntu3","1.10.4-4.1ubuntu2","1.10.4-4.1ubuntu3"],"ecosystem_specific":{"ubuntu_priority":"medium"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-8006.json"}}],"schema_version":"1.7.3"}