Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-56653 Overview
CVE-2024-56653 is a use-after-free (UAF) vulnerability in the Linux kernel's Bluetooth MediaTek (btmtk) driver. The flaw resides in the btmtk_process_coredump function, where hci_devcd_append may release the socket buffer (skb), yet subsequent code continues to access the freed memory. The issue was identified by Kernel Address Sanitizer (KASAN) during coredump processing from a MediaTek Bluetooth device. Exploitation requires local access with low privileges and can lead to kernel memory corruption, information disclosure, or local privilege escalation. The vulnerability is tracked under CWE-416: Use After Free and affects Linux kernel versions including 6.13-rc1 and 6.13-rc2.
Critical Impact
A local attacker triggering a MediaTek Bluetooth coredump event can corrupt kernel memory, potentially leading to privilege escalation or denial of service on affected Linux systems.
Affected Products
- Linux Kernel (multiple stable branches prior to the fix)
- Linux Kernel 6.13-rc1
- Linux Kernel 6.13-rc2
Discovery Timeline
- 2024-12-27 - CVE-2024-56653 published to NVD
- 2026-08-04 - Last updated in NVD database
Technical Details for CVE-2024-56653
Vulnerability Analysis
The vulnerability occurs within the MediaTek Bluetooth driver (btmtk) during coredump handling. When the driver receives a coredump packet via btusb_recv_acl_mtk, it clones the skb and passes it to btmtk_process_coredump. Inside that function, hci_devcd_append is invoked to append the buffer to the coredump stream. That append call can transfer ownership of the skb and subsequently release it through hci_devcd_rx. The original caller then continues to dereference the freed skb, producing a slab-use-after-free detected by KASAN in the skbuff_head_cache of size 232 bytes.
The condition check data->cd_info.cnt > MTK_COREDUMP_NUM fires after the counter has already been incremented, meaning the completion routine runs one iteration late. By then, hci_devcd_append has already freed the buffer in a parallel path, leaving a dangling pointer.
Root Cause
The root cause is improper lifetime management of the skb structure after invoking hci_devcd_append. The function may release the buffer internally, but the btmtk_process_coredump caller still reads fields from it. Additionally, the counter comparison used to decide when to call hci_devcd_complete used strict greater-than semantics, allowing the UAF window.
Attack Vector
Exploitation requires local access with low privileges on a system that includes a MediaTek Bluetooth controller using the btusb driver. An attacker able to trigger or influence Bluetooth coredump events (through crafted USB traffic, device state manipulation, or firmware fault injection) can race the free with the read in btmtk_process_coredump. Successful exploitation corrupts kernel heap state in skbuff_head_cache, which attackers can leverage for privilege escalation or kernel information disclosure.
The patched logic reorders the check so that hci_devcd_complete is invoked before hci_devcd_append where appropriate, and uses >= against MTK_COREDUMP_NUM to prevent the late-completion window. For reference, see the upstream fixes at kernel.org commit b548f5e9, commit d20ff1d3, and commit ecdcaea0.
Detection Methods for CVE-2024-56653
Indicators of Compromise
- KASAN kernel log entries referencing slab-use-after-free in btmtk_process_coredump in the skbuff_head_cache.
- Unexpected kernel oops, panics, or soft lockups in the btusb_rx_work workqueue on systems with MediaTek Bluetooth hardware.
- Repeated Bluetooth firmware coredump events (hci_devcd_rx) in dmesg without a corresponding hardware fault.
Detection Strategies
- Audit running kernel versions against patched stable branches to identify hosts still exposed.
- Enable KASAN or KFENCE on test fleets to surface UAF conditions in the Bluetooth stack during QA.
- Correlate Bluetooth subsystem errors with workloads that interact with MediaTek Wi-Fi/Bluetooth combo chipsets.
Monitoring Recommendations
- Forward kernel ring buffer and journald events to a centralized logging platform and alert on btmtk, btusb, or KASAN strings.
- Monitor for unexpected crashes or restarts of the Bluetooth service (bluetoothd) across managed endpoints.
- Track installed kernel package versions through endpoint inventory to confirm patch deployment coverage.
How to Mitigate CVE-2024-56653
Immediate Actions Required
- Apply the latest stable Linux kernel update from your distribution vendor that includes the btmtk UAF fix.
- On systems that do not require Bluetooth, blacklist the btmtk and btusb modules to eliminate the attack surface.
- Restrict physical and local user access to systems with MediaTek Bluetooth adapters until patches are deployed.
Patch Information
The fix is available in upstream Linux stable trees via commits b548f5e9, d20ff1d3, and ecdcaea0. The patch adjusts the counter comparison in btmtk_process_coredump to data->cd_info.cnt >= MTK_COREDUMP_NUM and ensures hci_devcd_complete is invoked before hci_devcd_append to prevent accessing a freed skb.
Workarounds
- Disable the Bluetooth stack via systemctl disable --now bluetooth.service on systems that do not require it.
- Prevent the vulnerable module from loading by adding blacklist btmtk and blacklist btusb to /etc/modprobe.d/.
- Physically remove or disable MediaTek Bluetooth radios in BIOS/UEFI on endpoints where the feature is unused.
# Configuration example: blacklist the vulnerable driver
echo "blacklist btmtk" | sudo tee /etc/modprobe.d/disable-btmtk.conf
echo "blacklist btusb" | sudo tee -a /etc/modprobe.d/disable-btmtk.conf
sudo update-initramfs -u
sudo reboot
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

