CVE-2024-56602·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: ieee802154: do not leave a dangling sk pointer in ieee802154_create() sock_init_data() attaches the allocated sk object to the provided sock object. If ieee802154_create() 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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.5
- Published
- 2024-12-27
Affected versions
From: 6.7
Until: 6.12.5
Fixed in: 6.12.5
How to fix this CVE
Update your Linux kernel to version 6.12.5 or later to resolve a use-after-free vulnerability in the IEEE 802.15.4 socket creation routine. This flaw occurs when socket initialization fails but leaves a dangling pointer in memory, potentially enabling attackers with local access to trigger memory corruption. Apply the patch immediately on systems running kernel versions 6.7 through 6.12.4.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r — confirm it is between 6.7 and 6.12.4 inclusive
- Verify ieee802154 module is loaded: lsmod | grep ieee802154 — if present, the vulnerable code path is active
- Review dmesg for socket creation errors: dmesg | grep -i 'ieee802154\|sock' — look for repeated allocation or initialization failures
- After patching, confirm new kernel version: uname -r — should show 6.12.5 or later, then reboot and re-verify with uname -r
FAQ
What is CVE-2024-56602?
This vulnerability exists in the Linux kernel's IEEE 802.15.4 networking subsystem where failed socket creation leaves a dangling pointer in the socket structure, creating a use-after-free condition that could lead to privilege escalation or code execution by a local attacker.
Is CVE-2024-56602 being actively exploited?
No, this vulnerability is not currently listed on the CISA KEV catalog and no public exploits are known to exist, though the high CVSS score (7.8) warrants prompt patching.
What versions of Kernel are affected by CVE-2024-56602?
Linux kernel versions 6.7, 6.8, 6.9, 6.10, 6.11, and 6.12.0 through 6.12.4 are vulnerable; version 6.12.5 and later are patched.
How do I check if my server is vulnerable to CVE-2024-56602?
Run uname -r and compare against the affected range; if output shows kernel 6.7–6.12.4, check if ieee802154 is in use with lsmod | grep ieee802154 — if loaded and version is vulnerable, apply the update.
Does Defensia detect CVE-2024-56602?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-56602 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/03caa9bfb9fde97fb53d33decd7364514e6825cb
- https://git.kernel.org/stable/c/14959fd7538b3be6d7617d9e60e404d6a8d4fd1f
- https://git.kernel.org/stable/c/1d5fe782c0ff068d80933f9cfd0fd39d5434bbc9
- https://git.kernel.org/stable/c/2b46994a6e76c8cc5556772932b9b60d03a55cd8
- https://git.kernel.org/stable/c/b4982fbf13042e3bb33e04eddfea8b1506b5ea65
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-56602. Free for 1 server.
Get started free