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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-08-30 · Modified: 2024-09-03
- Aliases: DEBIAN-CVE-2023-7256
- Record: https://cvemate.com/vulnerability/CVE-2023-7256 · JSON: https://cvemate.com/vulnerability/CVE-2023-7256/json

## Description

```text
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.
```

## Signals

- CVSS: 4.4 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.244%, percentile 16.634%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libpcap (Debian): All versions (No fix recorded) \| \< 1.10.5-1
- tcpdump libpcap: \< 1.10.5
- the tcpdump group libpcap: ≥ 1.8.0, \< 1.9.0 \| ≥ 1.9.0, \< 1.10.0 \| ≥ 1.10.x, ≤ 1.10.4

## References

- <https://github.com/the-tcpdump-group/libpcap/commit/262e4f34979872d822ccedf9f318ed89c4d31c03>
- <https://github.com/the-tcpdump-group/libpcap/commit/2aa69b04d8173b18a0e3492e0c8f2f7fabdf642d>
- <https://security-tracker.debian.org/tracker/CVE-2023-7256>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-7256>

---

Data as of 2026-12-05T08:01:19.862Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
