Logo
vulnerabilityCVE-2023-7256
Name
CVE-2023-7256
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
libpcap
Patched

Vulnerability Ratings#


4.4
CVSSv31
4.4
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
1.10.6
Not Affected
buildroot
master
1.10.6
Not Affected
openwrt
master
1.10.6-r1
Not Affected
openwrt
openwrt-25.12
1.10.6-r1
Not Affected
yocto
master
1.10.6
Not Affected
yocto
scarthgap
1.10.4
Patched

Resolved with patches#


libpcap (yocto:kirkstone)

#
Title
Author
Resolve
1
rpcap: improve error messages for host and port resolution
Guy Harris <gharris@sonic.net>
CVE-2023-7256
2
rpcap: try to distringuish between host and port errors.
Guy Harris <gharris@sonic.net>
CVE-2023-7256
3
Have sock_initaddress() return the list of addrinfo
Guy Harris <gharris@sonic.net>
CVE-2023-7256
4
rpcap: don't do pointless integer->string and then
Guy Harris <gharris@sonic.net>
CVE-2023-7256
5
Remove unused variable retval in sock_present2network
Rose <83477269+AtariDreams@users.noreply.github.com>
CVE-2023-7256

libpcap (yocto:scarthgap)

#
Title
Author
Resolve
1
Have sock_initaddress() return the list of addrinfo
Guy Harris <gharris@sonic.net>
CVE-2023-7256
2
Remove unused variable retval in sock_present2network
Rose <83477269+AtariDreams@users.noreply.github.com>
CVE-2023-7256