
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."