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 pcapfindalldevsex(). 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.
[
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"274821971895769149813253593460732405121",
"70328471465415222261765572956330539410",
"82111364369546980584609979504067613477",
"162399281317615029895728943167452961801",
"322647407103076971329823635801275806516",
"65332767798215932809990559187460397951",
"127212387521458079471731179793542562902",
"187208195945300446619593720574754863010"
]
},
"target": {
"file": "pcap.c"
},
"signature_version": "v1",
"id": "CVE-2024-8006-0005751a",
"deprecated": false,
"source": "https://github.com/the-tcpdump-group/libpcap/commit/0f8a103469ce87d2b8d68c5130a46ddb7fb5eb29"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "216326314781857461255022575487116991126",
"length": 4633.0
},
"target": {
"file": "pcap-new.c",
"function": "pcap_findalldevs_ex"
},
"signature_version": "v1",
"id": "CVE-2024-8006-68d7278c",
"deprecated": false,
"source": "https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b0d6"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"303093119930627033218952398498417915189",
"70328471465415222261765572956330539410",
"333776812231799235415887346592035516484",
"115368977971345468778295755034332015261",
"322647407103076971329823635801275806516",
"143405077854950494387909433729170502149",
"148925866596298467929528575347324020767",
"146814526677318606341603352652391010899"
]
},
"target": {
"file": "pcap-new.c"
},
"signature_version": "v1",
"id": "CVE-2024-8006-9b3e64c6",
"deprecated": false,
"source": "https://github.com/the-tcpdump-group/libpcap/commit/8a633ee5b9ecd9d38a587ac9b204e2380713b0d6"
}
]