CVE-2024-35856·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btusb: mediatek: Fix double free of skb in coredump hci_devcd_append() would free the skb on error so the caller don't have to free it again otherwise it would cause the double free of skb. Reported-by : Dan Carpenter <dan.carpenter@linaro.org>
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.9
- Published
- 2024-05-17
Affected versions
From: 6.7
Until: 6.8.9
Fixed in: 6.8.9
How to fix this CVE
Update your Linux kernel to version 6.8.9 or later to address a memory management flaw in the Bluetooth MediaTek USB driver that could lead to kernel crashes or privilege escalation. The vulnerability stems from improper error handling in the coredump mechanism where socket buffers are freed twice, corrupting kernel memory. Ensure your system is running a patched kernel version and verify the fix 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 current kernel version with 'uname -r' and compare against 6.8.9 — if your version is between 6.7 and 6.8.8, you are vulnerable
- Step 2: Verify Bluetooth USB adapters are present on your system using 'lsusb | grep -i bluetooth' to confirm the vulnerable MediaTek component could be in use
- Step 3: Search kernel logs for crash signatures related to btusb or Bluetooth coredump using 'sudo journalctl -b | grep -i "btusb\|bluetooth\|coredump"' for exploitation indicators
- Step 4: After applying patches, run 'uname -r' again and confirm the kernel version is 6.8.9 or higher, then validate with 'sudo dmesg | tail -20' to ensure no Bluetooth-related panics occur
FAQ
What is CVE-2024-35856?
This vulnerability is a double-free memory corruption bug in the Linux kernel's Bluetooth MediaTek USB driver (btusb) that occurs during coredump operations. When error handling in the hci_devcd_append() function fails, socket buffers are freed twice, leading to kernel memory corruption that could result in denial of service or privilege escalation.
Is CVE-2024-35856 being actively exploited?
No, CVE-2024-35856 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available. However, the vulnerability remains critical and should be patched promptly.
What versions of Kernel are affected by CVE-2024-35856?
Linux kernel versions 6.7 through 6.8.8 are vulnerable. Version 6.8.9 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-35856?
Run 'uname -r' to get your kernel version. If it shows 6.7.x through 6.8.8, your system is vulnerable. For example, if the output is '6.8.5-generic', you need to update.
Does Defensia detect CVE-2024-35856?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-35856 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/18bdb386a1a30e7a3d7732a98e45e69cf6b5710d
- https://git.kernel.org/stable/c/80dfef128cb9f1b1ef67c0fe8c8deb4ea7ad30c1
- https://git.kernel.org/stable/c/e20093c741d8da9f6390dd45d75b779861547035
- https://git.kernel.org/stable/c/18bdb386a1a30e7a3d7732a98e45e69cf6b5710d
- https://git.kernel.org/stable/c/80dfef128cb9f1b1ef67c0fe8c8deb4ea7ad30c1
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-35856. Free for 1 server.
Get started free