Skip to content
OpenAdvisories
Medium · 4.4 CVE-2024-8006 EUVD-2024-48881GHSA-gj9v-677h-mwcx

NULL pointer dereference in libpcap before 1.10.5 with remote packet capture support

Published Aug 30, 2024 · Updated Sep 3, 2024 · Assigned by Tcpdump

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.

Affected products

VendorProductAffectedFixed
The Tcpdump Group libpcap 1.9.x, 1.10.x – ≤ 1.10.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libpcap 1.10.5-1 —
Debian 13 libpcap 1.10.5-1 —
Debian 12 libpcap No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP6 libpcap 1.10.4-150600.3.3.2 SUSE-SU-2024:3217-1
SLES 15 SP5 libpcap 1.10.1-150400.3.3.2 SUSE-SU-2024:3210-1
SLES 12 SP5 libpcap 1.8.1-10.6.1 SUSE-SU-2024:3355-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 libpcap 1.8.1-10.6.1 SUSE-SU-2024:3355-1
SLE Micro 6.1 libpcap 1.10.4-slfo.1.1_2.1 SUSE-SU-2026:20064-1
SLE Micro 6.0 libpcap 1.10.4-3.1 SUSE-SU-2025:20059-1
SLE Micro 5.5 libpcap 1.10.1-150400.3.3.2 SUSE-SU-2024:3210-1
SLE Micro 5.4 libpcap 1.10.1-150400.3.3.2 SUSE-SU-2024:3210-1
SLE Micro 5.3 libpcap 1.10.1-150400.3.3.2 SUSE-SU-2024:3210-1
SLE Micro 5.2 libpcap 1.9.1-150300.3.3.1 SUSE-SU-2024:3516-1
SLE Micro 5.1 libpcap 1.9.1-150300.3.3.1 SUSE-SU-2024:3516-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libpcap 1.10.5-1.1 openSUSE-SU-2024:14309-1
openSUSE Leap 15.6 libpcap 1.10.4-150600.3.3.2 SUSE-SU-2024:3217-1
openSUSE Leap 15.5 libpcap 1.10.1-150400.3.3.2 SUSE-SU-2024:3210-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.5 libpcap 1.10.1-150400.3.3.2 SUSE-SU-2024:3210-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libpcap 1.10.5-1 —
Azure Linux 3 nmap 7.95-2 —
Azure Linux 2 (CBL-Mariner) libpcap 1.10.1-3 —
Azure Linux 2 (CBL-Mariner) nmap 7.93-3 —

Advisories 15

References