CVE-2023-7256

Double-free in libpcap before 1.10.5 with remote packet capture support.

Description

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.

Remediation

Solution:

  • Upgrade to libpcap 1.10.5.

Workaround:

  • Do not build libpcap with remote packet capture support.

Category

4.4
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.04%
Affected: The Tcpdump Group libpcap
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-7256?
CVE-2023-7256 has been scored as a medium severity vulnerability.
How to fix CVE-2023-7256?
To fix CVE-2023-7256: Upgrade to libpcap 1.10.5.
Is CVE-2023-7256 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-7256 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-7256?
CVE-2023-7256 affects The Tcpdump Group libpcap.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.