Double Free Affecting libpcap package, versions <1.10.5-1


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Double Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN13-LIBPCAP-7855687
  • published31 Aug 2024
  • disclosed31 Aug 2024

Introduced: 31 Aug 2024

CVE-2023-7256  (opens in a new tab)
CWE-415  (opens in a new tab)

How to fix?

Upgrade Debian:13 libpcap to version 1.10.5-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libpcap package and not the libpcap package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1