CVE-2024-56604·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: avoid leaving dangling sk pointer in rfcomm_sock_alloc() bt_sock_alloc() attaches allocated sk object to the provided sock object. If rfcomm_dlc_alloc() fails, we release the sk object, but leave the dangling pointer in the sock object, which may cause use-after-free. Fix this by swapping calls to bt_sock_alloc() and rfcomm_dlc_alloc().
- 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 memory management flaw in the Bluetooth RFCOMM subsystem that could lead to use-after-free conditions. Systems running kernel versions 6.7 through 6.12.4 should prioritize this patch to eliminate the risk of kernel crashes or potential privilege escalation through the Bluetooth stack.
sudo dnf update kernel kernel-headersDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Verify if Bluetooth RFCOMM is loaded: lsmod | grep rfcomm
- Review kernel logs for Bluetooth-related crashes: journalctl -k | grep -i bluetooth | tail -50
- Confirm the patch is applied by checking the kernel build date: uname -v
FAQ
What is CVE-2024-56604?
This vulnerability is a memory management bug in the Linux kernel's Bluetooth RFCOMM implementation where a dangling socket pointer is left behind if socket allocation succeeds but DLC allocation fails, creating a potential use-after-free condition that local attackers with Bluetooth access could trigger.
Is CVE-2024-56604 being actively exploited?
No, there is no evidence of active exploitation in the wild, and no public exploits are available. However, the high CVSS score of 7.8 indicates the vulnerability poses a serious risk to system stability and security.
What versions of Kernel are affected by CVE-2024-56604?
Linux kernel versions 6.7 through 6.12.4 are vulnerable. The fix is included in kernel 6.12.5 and later stable releases.
How do I check if my server is vulnerable to CVE-2024-56604?
Run 'uname -r' and check if your kernel version is between 6.7 and 6.12.4. If so, your system is vulnerable and requires an immediate update.
Does Defensia detect CVE-2024-56604?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-56604 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/32df687e129ef0f9afcbcc914f7c32deb28fd481
- https://git.kernel.org/stable/c/3945c799f12b8d1f49a3b48369ca494d981ac465
- https://git.kernel.org/stable/c/6021ccc2471b7b95e29b7cfc7938e042bf56e281
- https://git.kernel.org/stable/c/ac3eaac4cf142a15fe67be747a682b1416efeb6e
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-56604. Free for 1 server.
Get started free