CVE-2024-56606: af_packet: avoid erroring out after sock_init_data() in packet_create()
In the Linux kernel, the following vulnerability has been resolved:
afpacket: avoid erroring out after sockinitdata() in packetcreate()
After sockinitdata() the allocated sk object is attached to the provided sock object. On error, packetcreate() frees the sk object leaving the dangling pointer in the sock object on return. Some other code may try to use this pointer and cause use-after-free.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56606?
CVE-2024-56606 has a medium severity level as it can lead to potential denial-of-service conditions.
How do I fix CVE-2024-56606?
To fix CVE-2024-56606, upgrade to a version of the Linux kernel that is beyond the specified vulnerable range.
Which Linux kernel versions are affected by CVE-2024-56606?
CVE-2024-56606 affects Linux kernel versions 5.4.287 and below, as well as various ranges up to 6.12.5.
What components are impacted by CVE-2024-56606?
CVE-2024-56606 impacts the af_packet component of the Linux kernel.
Is CVE-2024-56606 a remote vulnerability?
CVE-2024-56606 is not classified as a remote vulnerability as it requires local access to exploit.