Alerts This Week
Warning Icon 1 714
Alerts This Week
Warning Icon 1 714

Mageia 9: 2024-0295 Critical: libpcap Memory Management Issues

mageia
Calendar Grey September 11, 2024
Dist Mageia Esm H88
Mageia's recent libpcap updates resolve critical vulnerabilities, targeting hazards associated with improper memory handling during packet sniffing.
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 clea...

Summary

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. (CVE-2023-7256) Remote packet capture support is disabled by default in libpcap. When a user builds libpcap with remote packet capture support enabled, one of the functions that become available is pcap_findalldevs_ex(). One of the function arguments can be a filesystem path, which normally means a directory with input data files. When the specified path cannot be used as a directory, the function receives NULL from opendir(), but does not check the return value and passes the NULL value to readdir(), which causes a NULL pointer derefence. (CVE-2024-8006)

References

- https://bugs.mageia.org/show_bug.cgi?id=33537

-

- https://www.cve.org/CVERecord?id=CVE-2023-7256

- https://www.cve.org/CVERecord?id=CVE-2024-8006

Resolution

SRPMS

- 9/core/libpcap-1.10.5-1.mga9

Severity
critical
Lowest
Low
Medium
High
Critical

Publication date: 11 Sep 2024
URL: https://advisories.mageia.org/MGASA-2024-0295.html
Type: security
CVE: CVE-2023-7256, CVE-2024-8006

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.

Your message here