CVEfocus › CVE database › CVE-2024-8006

CVE-2024-8006NULL pointer dereference in libpcap before 1.10.5 with remote packet capture support

CVSS 4.4 MediumEPSS 0.3% (higher than 14% of CVEs)Published 2024-08-30Updated 2024-09-03Assigner: Tcpdump

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.

CWE-476

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
5Will not fix
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libpcapNot affected
vulnerable_code_not_present
Ubuntu 22.04libpcapNot affected
vulnerable_code_not_present
Debian 14libpcapFixed1.10.5-1DEBIAN-CVE-2024-8006
Debian 13libpcapFixed1.10.5-1DEBIAN-CVE-2024-8006
Debian 12libpcapWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-8006
Red Hat Enterprise Linux 10libpcapNot affected
Red Hat Enterprise Linux 10libpcap-develNot affected
Red Hat Enterprise Linux 9libpcapNot affected
Red Hat Enterprise Linux 9libpcap-develNot affected
Red Hat Enterprise Linux 8libpcapNot affected
Red Hat Enterprise Linux 8libpcap-develNot affected
Red Hat Enterprise Linux 7libpcapWill not fix
Out of support scope
Red Hat Enterprise Linux 7libpcap-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libpcapWill not fix
Out of support scope
Red Hat Enterprise Linux 6libpcap-develWill not fix
Out of support scope

What the vendor says

As published in the CVE record by Tcpdump, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to libpcap 1.10.5.

Workaround: Do not build libpcap with remote packet capture support.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.