# CVE-2023-7256: Double-free in libpcap before 1.10.5 with remote packet capture support.

- Severity: Medium 4.4 (CVSS:3.1, scored by Tcpdump) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-08-30T23:44:04.383Z
- Modified: 2026-06-17T06:52:25.317Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Tcpdump

## 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.

(As written by CVE List.)

## Affected

- The Tcpdump Group libpcap: 1.8.x; 1.9.x; from 1.10.x up to 1.10.4
- tcpdump libpcap: before 1.10.5

## Every score

- Tcpdump: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/the-tcpdump-group/libpcap/commit/262e4f34979872d822ccedf9f318ed89c4d31c03> (patch)
- <https://github.com/the-tcpdump-group/libpcap/commit/2aa69b04d8173b18a0e3492e0c8f2f7fabdf642d> (patch)

## Sources

- CVE List: [CVE-2023-7256](https://www.cve.org/CVERecord?id=CVE-2023-7256), CVE Terms of Use, modified 2024-09-03
- NVD: [CVE-2023-7256](https://nvd.nist.gov/vuln/detail/CVE-2023-7256), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-7256 · Whole record: https://cve.day/CVE-2023-7256.json · Rebuilt by cve.day 2026-11-25T22:58:34.298Z
