CVE-2024-35966·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: Fix not validating setsockopt user input syzbot reported rfcomm_sock_setsockopt_old() is copying data without checking user input length. BUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset include/linux/sockptr.h:49 [inline] BUG: KASAN: slab-out-of-bounds in copy_from_sockptr include/linux/sockptr.h:55 [inline] BUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt_old net/bluetooth/rfcomm/sock.c:632 [inline] BUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt+0x893/0xa70 net/bluetooth/rfcomm/sock.c:673 Read of size 4 at addr ffff8880209a8bc3 by task syz-executor632/5064
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.7
- Published
- 2024-05-20
Affected versions
From: 6.7
Until: 6.8.7
Fixed in: 6.8.7
How to fix this CVE
Update your Linux kernel to version 6.8.7 or later to patch the RFCOMM socket option validation flaw. This vulnerability allows local users to trigger out-of-bounds memory reads through improper setsockopt parameter handling. Ensure your system receives the latest kernel security updates through your distribution's package manager.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and compare against 6.8.7 — if lower, you are vulnerable
- Step 2: Verify RFCOMM module is loaded with `lsmod | grep rfcomm` — if present, the vulnerable code path is active
- Step 3: Search system logs for KASAN errors related to rfcomm_sock_setsockopt with `grep -i 'rfcomm\|slab-out-of-bounds' /var/log/kern.log /var/log/messages 2>/dev/null`
- Step 4: After patching, confirm the new kernel version with `uname -r` and validate it matches 6.8.7 or higher
FAQ
What is CVE-2024-35966?
CVE-2024-35966 is a kernel vulnerability in the Bluetooth RFCOMM socket implementation where the setsockopt handler fails to validate user-supplied input length, allowing local attackers to trigger out-of-bounds memory reads with elevated privileges.
Is CVE-2024-35966 being actively exploited?
No, CVE-2024-35966 is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available. However, proof-of-concept reports from fuzzing (syzbot) exist, so patching remains important.
What versions of Kernel are affected by CVE-2024-35966?
Linux kernel versions 6.7.0 through 6.8.6 are affected. The vulnerability was resolved in kernel version 6.8.7 and subsequent releases.
How do I check if my server is vulnerable to CVE-2024-35966?
Run `uname -r` to display your kernel version. If it shows 6.7.x or 6.8.0-6.8.6, your system is vulnerable. Cross-reference against your distribution's security advisories for backported patches.
Does Defensia detect CVE-2024-35966?
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-35966 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/00767fbd67af70d7a550caa5b12d9515fa978bab
- https://git.kernel.org/stable/c/4ea65e2095e9bd151d0469328dd7fc2858feb546
- https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695
- https://git.kernel.org/stable/c/c3f787a3eafe519c93df9abbb0ca5145861c8d0f
- https://git.kernel.org/stable/c/d072ea24748189cd8f4a9c3f585ca9af073a0838
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-35966. Free for 1 server.
Get started free