Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2023-7256

Double-free in libpcap before 1.10.5 with remote packet capture support.

Medium4.4EPSS 0.24%
Published
Updated
Reserved
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.

Scores

CVSS scores of CVE-2023-7256, by who scored it
Scored byCVSSScoreVector
TcpdumpCNA (assigner)3.1Medium4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
NVDNVD · Analyzed3.1Medium4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
EPSS (exploitation in 30 days)
0.24% · top 84% of all CVEs (6 Nov 2026)
CISA SSVC
Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.4.

Weakness

Affected products

What to do

Solution: Upgrade to libpcap 1.10.5.

Workaround: Do not build libpcap with remote packet capture support.

Exploitation: A functional exploit exists.

References (2)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2023-7256 badge
[![CVE-2023-7256](https://trackcve.app/badge/CVE-2023-7256.svg)](https://trackcve.app/cve/CVE-2023-7256)

Record last updated .