CVE-2023-7256: Tcpdump Libpcap
Medium severity, CVSS 4.4. EPSS: 0.3% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for the versions it affects. If you run one, update to it.
- Tcpdump Libpcap, before 1.10.5: fixed in 1.10.5
Affected products
Published 2024-08-31. Last modified 2026-06-17.