CVE-2023-7256

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

State
Published
Severity
4.4 Medium
Published
Aug 30, 2024
Updated
Sep 3, 2024
Reserved
Apr 11, 2024

Read the record on cve.org

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

CVSSScoreVectorSource
3.14.4 MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HTcpdump

Weaknesses

Affected Products

ProductVersions
libpcapThe Tcpdump Group
  • 1.8.xAffected
  • 1.9.xAffected
  • 1.10.x through 1.10.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.