{"id":"CVE-2024-8006","summary":"NULL pointer dereference in libpcap before 1.10.5 with remote packet capture support","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-10-28T10:42:14.803176396Z","published":"2024-08-30T23:53:11.334Z","related":["SUSE-SU-2024:3210-1","SUSE-SU-2024:3217-1","SUSE-SU-2024:3355-1","SUSE-SU-2024:3516-1","SUSE-SU-2025:20059-1","SUSE-SU-2026:20064-1","openSUSE-SU-2024:14309-1"],"database_specific":{"cna_assigner":"Tcpdump","cwe_ids":["CWE-476"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8006.json"},"references":[{"type":"WEB","url":"https://github.com/the-tcpdump-group/libpcap/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8006.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8006"},{"type":"FIX","url":"https://github.com/the-tcpdump-group/libpcap/commit/0f8a103469ce87d2b8d68c5130a46ddb7fb5eb29"},{"type":"FIX","url":"https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b0d6"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/the-tcpdump-group/libpcap","events":[{"introduced":"8c6c412779eb5bc57c9d07fe5a25f8046088bef5"},{"last_affected":"104271ba4a14de6743e43bcf87536786d8fddea4"},{"introduced":"82001f32ed9e76b0515a19ee0cc5be28c8ee0541"},{"fixed":"0f8a103469ce87d2b8d68c5130a46ddb7fb5eb29"},{"fixed":"8a633ee5b9ecd9d38a587ac9b204e2380713b0d6"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"1.10.x"},{"last_affected":"1.10.4"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"1.9.x"},{"last_affected":"1.9.x"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"0f8a103469ce87d2b8d68c5130a46ddb7fb5eb29"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"8a633ee5b9ecd9d38a587ac9b204e2380713b0d6"}]}]}}],"versions":["1.9.x","libpcap-1.10.4","libpcap-1.10.3","libpcap-1.10.2","libpcap-1.10.1","libpcap-1.10.0","libpcap-1.10-bp"],"database_specific":{"vanir_signatures":[{"signature_type":"Line","signature_version":"v1","source":"https://github.com/the-tcpdump-group/libpcap/commit/0f8a103469ce87d2b8d68c5130a46ddb7fb5eb29","target":{"file":"pcap.c"},"deprecated":false,"digest":{"line_hashes":["274821971895769149813253593460732405121","70328471465415222261765572956330539410","82111364369546980584609979504067613477","162399281317615029895728943167452961801","322647407103076971329823635801275806516","65332767798215932809990559187460397951","127212387521458079471731179793542562902","187208195945300446619593720574754863010"],"threshold":0.9},"id":"CVE-2024-8006-0005751a"},{"target":{"file":"pcap-new.c","function":"pcap_findalldevs_ex"},"deprecated":false,"digest":{"function_hash":"216326314781857461255022575487116991126","length":4633},"id":"CVE-2024-8006-68d7278c","signature_type":"Function","signature_version":"v1","source":"https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b0d6"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b0d6","target":{"file":"pcap-new.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["303093119930627033218952398498417915189","70328471465415222261765572956330539410","333776812231799235415887346592035516484","115368977971345468778295755034332015261","322647407103076971329823635801275806516","143405077854950494387909433729170502149","148925866596298467929528575347324020767","146814526677318606341603352652391010899"]},"id":"CVE-2024-8006-9b3e64c6"}],"vanir_signatures_modified":"2026-10-28T10:42:14Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-8006.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"}]}