CVE-2024-56602: net: ieee802154: do not leave a dangling sk pointer in ieee802154_create()
In the Linux kernel, the following vulnerability has been resolved:
net: ieee802154: do not leave a dangling sk pointer in ieee802154create()
sockinitdata() attaches the allocated sk object to the provided sock object. If ieee802154create() fails later, the allocated sk object is freed, but the dangling pointer remains in the provided sock object, which may allow use-after-free.
Clear the sk pointer in the sock object on error.
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.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-56602?
CVE-2024-56602 is a moderate severity vulnerability in the Linux kernel.
How do I fix CVE-2024-56602?
To fix CVE-2024-56602, update your Linux kernel to a patched version above 6.12.5 or any other recommended fixed version.
Which versions of the Linux kernel are affected by CVE-2024-56602?
CVE-2024-56602 affects Linux kernel versions between 5.4.287 and 6.12.5, including specific versions in that range.
What does CVE-2024-56602 impact?
CVE-2024-56602 impacts the ieee802154 network protocol in the Linux kernel, specifically during the creation of socket objects.
Is CVE-2024-56602 a remote exploit vulnerability?
CVE-2024-56602 is not classified as a remote exploit vulnerability; it primarily affects local operations within the kernel.