Libpcap Tcpdump Libpcap

Don't miss out!

Thousands of developers use stack.watch to stay informed.
Get an email whenever new security vulnerabilities are reported in Tcpdump Libpcap.

By the Year

In 2025 there have been 0 vulnerabilities in Tcpdump Libpcap. Last year, in 2024 Libpcap had 2 security vulnerabilities published. Right now, Libpcap is on track to have less security vulnerabilities in 2025 than it did last year.

Year Vulnerabilities Average Score
2025 0 0.00
2024 2 4.40
2023 0 0.00
2022 0 0.00
2021 0 0.00
2020 0 0.00
2019 4 5.85

It may take a day or so for new Libpcap vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.

Recent Tcpdump Libpcap Security Vulnerabilities

libpcap NULL pointer deref in pcap_findalldevs_ex()
CVE-2024-8006 4.4 - Medium - August 31, 2024

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.

NULL Pointer Dereference

Libpcap Double-Free in getaddrinfo() Handling
CVE-2023-7256 4.4 - Medium - August 31, 2024

In affected libpcap versions during the setup of a remote packet capture the internal function sock_initaddress() calls getaddrinfo() and possibly freeaddrinfo(), but does not clearly indicate to the caller function whether freeaddrinfo() still remains to be called after the function returns. This makes it possible in some scenarios that both the function and its caller call freeaddrinfo() for the same allocated memory block. A similar problem was reported in Apple libpcap, to which Apple assigned CVE-2023-40400.

Double-free

rpcapd/daemon.c in libpcap before 1.9.1 mishandles certain length values because of reuse of a variable
CVE-2019-15161 5.3 - Medium - October 03, 2019

rpcapd/daemon.c in libpcap before 1.9.1 mishandles certain length values because of reuse of a variable. This may open up an attack vector involving extra data at the end of a request.

Incorrect Calculation of Buffer Size

rpcapd/daemon.c in libpcap before 1.9.1
CVE-2019-15163 7.5 - High - October 03, 2019

rpcapd/daemon.c in libpcap before 1.9.1 allows attackers to cause a denial of service (NULL pointer dereference and daemon crash) if a crypt() call fails.

NULL Pointer Dereference

rpcapd/daemon.c in libpcap before 1.9.1
CVE-2019-15164 5.3 - Medium - October 03, 2019

rpcapd/daemon.c in libpcap before 1.9.1 allows SSRF because a URL may be provided as a capture source.

SSRF

sf-pcapng.c in libpcap before 1.9.1 does not properly validate the PHB header length before allocating memory.
CVE-2019-15165 5.3 - Medium - October 03, 2019

sf-pcapng.c in libpcap before 1.9.1 does not properly validate the PHB header length before allocating memory.

Allocation of Resources Without Limits or Throttling

pcap-linux.c in libpcap 1.1.1 before commit ea9432fabdf4b33cbc76d9437200e028f1c47c93 when snaplen is set may truncate packets, which might
CVE-2011-1935 9.8 - Critical - October 20, 2017

pcap-linux.c in libpcap 1.1.1 before commit ea9432fabdf4b33cbc76d9437200e028f1c47c93 when snaplen is set may truncate packets, which might allow remote attackers to send arbitrary data while avoiding detection via crafted packets.

Stay on top of Security Vulnerabilities

Want an email whenever new vulnerabilities are published for Tcpdump Libpcap or by Tcpdump? Click the Watch button to subscribe.

Tcpdump
Vendor

subscribe