CVE-2024-56606·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: af_packet: avoid erroring out after sock_init_data() in packet_create() After sock_init_data() the allocated sk object is attached to the provided sock object. On error, packet_create() 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.
- 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 patch the af_packet socket initialization flaw. This vulnerability allows a use-after-free condition when packet socket creation fails after memory allocation, potentially leading to kernel memory corruption. Apply the kernel update through your distribution's package manager and reboot your system to activate the patched kernel.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version by running: uname -r
- Step 2: Verify if your kernel version falls between 6.7 and 6.12.4 (vulnerable range) by comparing output against the fixed version 6.12.5
- Step 3: Search kernel logs for af_packet related errors or crashes with: dmesg | grep -i 'af_packet\|packet.*socket' and journalctl -xe | grep -i 'kernel'
- Step 4: After applying the update, confirm the new kernel is running with: uname -r (should show 6.12.5 or later)
FAQ
What is CVE-2024-56606?
CVE-2024-56606 is a use-after-free vulnerability in the Linux kernel's af_packet (packet socket) implementation. When packet socket creation fails after initial memory setup, the kernel leaves a dangling pointer that can be exploited by local attackers to read or write kernel memory.
Is CVE-2024-56606 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities catalog, CVE-2024-56606 is not currently being exploited in active attacks, and no public exploits are available.
What versions of Kernel are affected by CVE-2024-56606?
Linux kernel versions 6.7 through 6.12.4 are vulnerable. The vulnerability has been fixed in kernel version 6.12.5 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2024-56606?
Run 'uname -r' and check if your kernel version is between 6.7 and 6.12.4. If it is, your system is vulnerable and requires immediate patching.
Does Defensia detect CVE-2024-56606?
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-56606 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/132e615bb1d7cdec2d3cfbdec2efa630e923fd21
- https://git.kernel.org/stable/c/157f08db94123e2ba56877dd0ac88908b13a5dd0
- https://git.kernel.org/stable/c/1dc1e1db927056cb323296e2294a855cd003dfe7
- https://git.kernel.org/stable/c/46f2a11cb82b657fd15bab1c47821b635e03838b
- https://git.kernel.org/stable/c/71b22837a5e55ac27d6a14b9cdf2326587405c4f
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-56606. Free for 1 server.
Get started free