CVE-2023-7256Double-free in libpcap before 1.10.5 with remote packet capture support.
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
Fixed builds are available from Debian: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | libpcap | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libpcap | Not affected vulnerable_code_not_present | ||
| Debian 14 | libpcap | Fixed | 1.10.5-1 | DEBIAN-CVE-2023-7256 |
| Debian 13 | libpcap | Fixed | 1.10.5-1 | DEBIAN-CVE-2023-7256 |
| Debian 12 | libpcap | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2023-7256 | |
| Red Hat Enterprise Linux 10 | libpcap | Not affected | ||
| Red Hat Enterprise Linux 10 | libpcap-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libpcap | Not affected | ||
| Red Hat Enterprise Linux 9 | libpcap-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libpcap | Not affected | ||
| Red Hat Enterprise Linux 8 | libpcap-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libpcap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libpcap-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libpcap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libpcap-devel | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by Tcpdump, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- The Tcpdump Group libpcap: affected: 1.8.x, 1.9.x, 1.10.x to 1.10.4
Solution: Upgrade to libpcap 1.10.5.
Workaround: Do not build libpcap with remote packet capture support.
Vendor advisories:
- https://github.com/the-tcpdump-group/libpcap/commit/262e4f34979872d822ccedf9f318ed89c4d31… (patch)
- https://github.com/the-tcpdump-group/libpcap/commit/2aa69b04d8173b18a0e3492e0c8f2f7fabdf6… (patch)
References
- https://github.com/the-tcpdump-group/libpcap/commit/262e4f34979872d822ccedf9f318ed89c4d31c03
- https://github.com/the-tcpdump-group/libpcap/commit/2aa69b04d8173b18a0e3492e0c8f2f7fabdf642d
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.