Name
libpcap
Version
1.10.1
Type
library
Description
Interface for user-level network packet capture
Licenses
BSD-3-Clause
PURL
-
CPE
cpe:2.3:*:tcpdump:libpcap:1.10.1:*:*:*:*:*:*:*
Other Versions#
Patches#
#
Title
Author
Resolve
1
rpcap: improve error messages for host and port resolution
Guy Harris <gharris@sonic.net>
CVE-2023-7256
2
CVE-2025-11961: Fix OOBR and OOBW in pcap_ether_aton().
Denis Ovsienko <denis@ovsienko.info>
CVE-2025-11961
3
makes pcap_findalldevs_ex errors out if the directory does
Nicolas Badoux <n.badoux@hotmail.com>
CVE-2024-8006
4
rpcap: try to distringuish between host and port errors.
Guy Harris <gharris@sonic.net>
CVE-2023-7256
5
Have sock_initaddress() return the list of addrinfo
Guy Harris <gharris@sonic.net>
CVE-2023-7256
6
rpcap: don't do pointless integer->string and then
Guy Harris <gharris@sonic.net>
CVE-2023-7256
7
Remove unused variable retval in sock_present2network
Rose <83477269+AtariDreams@users.noreply.github.com>
CVE-2023-7256
8
Fix a copy-and-pasteo in utf_16le_to_utf_8_truncated().
Guy Harris <gharris@sonic.net>
CVE-2025-11964
9
Rename one of the xdtoi() copies to simplify backporting.
Denis Ovsienko <denis@ovsienko.info>
CVE-2025-11961
Vulnerabilities#
Name
Analysis
Description
Patched
On Windows only, if libpcap needs to convert a Windows error message to UTF-8 and the message includes characters that UTF-8 represents using 4 bytes, utf_16le_to_utf_8_truncated() can write data beyond the end of the provided buffer.
Patched
pcap_ether_aton() is an auxiliary function in libpcap, it takes a string argument and returns a fixed-size allocated buffer. The string argument must be a well-formed MAC-48 address in one of the supported formats, but this requirement has been poorly documented. If an application calls the function with an argument that deviates from the expected format, the function can read data beyond the end of the provided string and write data beyond the end of the allocated buffer.
Patched
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.
Patched
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.