cve.bz

CVE-2023-7256 tcpdump libpcap: Double Free

4.4 mediumEPSS 0.2%Fix available

Medium (4.4) in tcpdump libpcap. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 16th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-415 Double Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-7256 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-7256?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-7256?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-7256 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The Tcpdump Group libpcap1.8.x
The Tcpdump Group libpcap1.9.x
The Tcpdump Group libpcapfrom 1.10.x through 1.10.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libpcapno fix listedDEBIAN-CVE-2023-7256
Debian13, 14libpcap1.10.5-1DEBIAN-CVE-2023-7256
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2libpcap1.9.1-150300.3.3.1SUSE-SU-2024:3516-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5 and 2 morelibpcap1.10.1-150400.3.3.2SUSE-SU-2024:3210-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Package Hub 15 SP6libpcap1.10.4-150600.3.3.2SUSE-SU-2024:3217-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 and 1 morelibpcap1.8.1-10.6.1SUSE-SU-2024:3355-1
SUSELinux Micro 6.0libpcap1.10.4-3.1SUSE-SU-2025:20059-1
SUSELinux Micro 6.1libpcap1.10.4-slfo.1.1_2.1SUSE-SU-2026:20064-1
openSUSELeap 15.5, Leap Micro 5.5libpcap1.10.1-150400.3.3.2SUSE-SU-2024:3210-1
openSUSELeap 15.6libpcap1.10.4-150600.3.3.2SUSE-SU-2024:3217-1
openSUSETumbleweedlibpcap1.10.5-1.1openSUSE-SU-2024:14309-1
Azure Linux2libpcap1.10.1-4AZL-48451
Azure Linux2nmap7.93-3AZL-48468
Azure Linux3libpcap1.10.5-1AZL-48415
Azure Linux3nmap7.95-2AZL-48427

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is classified as Moderate severity rather than Important because while it involves a double-free condition that can lead to undefined behavior, the exploitability is generally constrained by the specific conditions under which the vulnerability can be triggered. The vulnerability arises in the handling of memory allocation and deallocation within a specific internal function (sock_initaddress()) during the remote packet capture setup, which is not commonly exposed to untrusted inputs or frequent use in most applications. Additionally, triggering the double-free condition typically requires precise control over the function's execution flow, limiting the practicality of exploitation.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libpcapNot affected
Red Hat Enterprise Linux 6libpcapOut of support scope
Red Hat Enterprise Linux 7libpcapOut of support scope
Red Hat Enterprise Linux 8libpcapNot affected
Red Hat Enterprise Linux 9libpcapNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-7256.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-043-06Siemens SINEC OS2026-01-28Energy, Critical Manufacturing, Transportation Systems, Water and WastewaterRUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family, SCALANCE XCH328 (6GK5328-4TS01-2EC2) and 13 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON