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.
Published: 2024-08-30
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

No analysis available yet.

Remediation

Vendor Solution

Upgrade to libpcap 1.10.5.


Vendor Workaround

Do not build libpcap with remote packet capture support.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2024-48881 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.
History

Wed, 16 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00046}

epss

{'score': 0.00036}


Thu, 19 Sep 2024 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Tcpdump
Tcpdump libpcap
CPEs cpe:2.3:a:tcpdump:libpcap:*:*:*:*:*:*:*:*
Vendors & Products Tcpdump
Tcpdump libpcap

Tue, 03 Sep 2024 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 03 Sep 2024 19:30:00 +0000

Type Values Removed Values Added
Title libcap: NULL pointer derefence NULL pointer dereference in libpcap before 1.10.5 with remote packet capture support

Mon, 02 Sep 2024 11:15:00 +0000

Type Values Removed Values Added
Title libcap: NULL pointer derefence
References
Metrics threat_severity

None

threat_severity

Moderate


Sat, 31 Aug 2024 00:30:00 +0000

Type Values Removed Values Added
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.
Weaknesses CWE-476
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Tcpdump

Published:

Updated: 2024-09-03T19:17:49.301Z

Reserved: 2024-08-20T09:58:58.455Z

Link: CVE-2024-8006

cve-icon Vulnrichment

Updated: 2024-09-03T19:17:45.961Z

cve-icon NVD

Status : Analyzed

Published: 2024-08-31T00:15:05.743

Modified: 2024-09-19T17:46:03.447

Link: CVE-2024-8006

cve-icon Redhat

Severity : Moderate

Publid Date: 2024-08-31T00:15:05Z

Links: CVE-2024-8006 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses