CVE-2023-7256
Double-free in libpcap before 1.10.5 with remote packet capture support.
Reported by tcpdump · Published August 30, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libpcap | tcpdump | 1.10.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| The Tcpdump Group | libpcap | 1.8.x, 1.9.x, 1.10.x |
| The Tcpdump Group | libpcap | 1.8.x, 1.9.x, 1.10.x |
Timeline
- Aug 30, 2024 CVE Published
- Aug 31, 2024 EPSS Score (30 in total, the first dated here)
- Sep 3, 2024 CVE Updated
- Oct 5, 2024 Coalition ESS Score (10 in total, the first dated here)
- Jun 2, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-7256
vulnetix vdb fixes CVE-2023-7256
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-7256/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart