p PatchFirst

CVE-2023-7256

CVE-2023-7256 · Double-free in libpcap before 1.10.5 with remote packet capture support.

CVSS 4.4 · Medium · EPSS 0.3% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libpcap"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • SUSE-SU-2026:20064-1 · SUSE Linux Micro 6.1 ·
  • SUSE-SU-2025:20059-1 · SUSE Linux Micro 6.0 ·
  • SUSE-SU-2024:3516-1 · SUSE Linux Enterprise Micro 5.1, SUSE Linux Enterprise Micro 5.2 ·
  • SUSE-SU-2024:3355-1 · SUSE Linux Enterprise Server 12 SP5, SUSE Linux Enterprise Server for SAP Applications 12 SP5, SUSE Linux Enterprise Software Development Kit 12 SP5, SUSE Linux Enterprise Workstation Extension 12 SP5 ·
  • SUSE-SU-2024:3217-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Basesystem 15 SP6, SUSE Linux Enterprise Module for Package Hub 15 SP6 ·
  • SUSE-SU-2024:3210-1 · openSUSE Leap 15.5, openSUSE Leap Micro 5.5, SUSE Linux Enterprise Micro 5.3, SUSE Linux Enterprise Micro 5.4, SUSE Linux Enterprise Micro 5.5, SUSE Linux Enterprise Module for Basesystem 15 SP5, SUSE Linux Enterprise Module for Package Hub 15 SP5 ·
  • openSUSE-SU-2024:14309-1 · openSUSE Tumbleweed ·

Stack: system

Affected products and versions

  • libpcap

    Versions
    • 1.8.x: Affected
    • 1.9.x: Affected
    • ≥ 1.10.x, ≤ 1.10.4: Affected (semver)

    No fix published

  • libpcap Debian 12

    Versions
    • 1.10.3-1
    • 1.10.4-1
    • 1.10.4-2
    • 1.10.4-3
    • 1.10.4-4
    • 1.10.4-4.1
    All versions (15)
    • 1.10.4-4.1~exp1
    • 1.10.4-5
    • 1.10.4-5+hurd.1
    • 1.10.5-1
    • 1.10.5-2
    • 1.10.6-1
    • 1.10.6-2
    • 1.10.7-1
    • 1.11.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libpcap Debian 13

    Affected ranges
    • ECOSYSTEM: < 1.10.5-1

    Update to 1.10.5-1

  • libpcap Debian 14

    Affected ranges
    • ECOSYSTEM: < 1.10.5-1

    Update to 1.10.5-1

Original sources

Check your server →