CVE-2023-7256
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-7256 is a double-free vulnerability discovered in libpcap, affecting versions prior to 1.10.5. The vulnerability exists in the internal function sock_initaddress() during the setup of a remote packet capture. The issue occurs when the function calls getaddrinfo() and possibly freeaddrinfo(), but fails to clearly indicate to the caller function whether freeaddrinfo() still needs to be called after the function returns (NVD, Red Hat).

Technical details

The vulnerability is classified as a CWE-415 (Double Free) issue with a CVSS v3.1 base score of 4.4 (Moderate). The technical root cause involves memory management issues where both the sock_initaddress() function and its caller might call freeaddrinfo() for the same allocated memory block. The vulnerability specifically manifests during remote packet capture setup operations, requiring local access and high privileges to exploit (NVD, Red Hat).

Impact

The impact of this vulnerability is primarily focused on system availability. While it involves a double-free condition that can lead to undefined behavior, the exploitability is generally constrained by specific conditions. The vulnerability occurs in the handling of memory allocation and deallocation within a specific internal function during remote packet capture setup, which is not commonly exposed to untrusted inputs or frequent use in most applications (Red Hat).

Mitigation and workarounds

The vulnerability has been patched in libpcap version 1.10.5. The fix involves modifying the sock_initaddress() function to return the list of addrinfo structures or NULL, making it clearer when memory needs to be freed. For systems where patches cannot be immediately applied, no specific workarounds are available that meet security criteria for ease of use and deployment (Libpcap Patch).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management