Vulnerability · Published Dec 27, 2024 · Assigned by Linux
CVE-2024-56653Bluetooth: btmtk: avoid UAF in btmtk_process_coredump
High 8.8
In plain English
A high-severity use-after-free in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btmtk: avoid UAF in btmtk_process_coredump hci_devcd_append may lead to the release of the skb, so it cannot be accessed once it is called. ================================================================== BUG: KASAN: slab-use-after-free in btmtk_process_coredump+0x2a7/0x2d0 [btmtk] Read of size 4 at addr ffff888033cfabb0 by task kworker/0:3/82 CPU: 0 PID: 82 Comm: kworker/0:3 Tainted: G U 6.6.40-lockdep-03464-g1d8b4eb3060e #1 b0b3c1cc0c842735643fb411799d97921d1f688c Hardware name: Google Yaviks_Ufs/Yaviks_Ufs, BIOS Google_Yaviks_Ufs.15217.552.0 05/07/2024 Workqueue: events btusb_rx_work [btusb] Call Trace: <TASK> dump_stack_lvl+0xfd/0x150 print_report+0x131/0x780 kasan_report+0x177/0x1c0 btmtk_process_coredump+0x2a7/0x2d0 [btmtk 03edd567dd71a65958807c95a65db31d433e1d01] btusb_recv_acl_mtk+0x11c/0x1a0 [btusb 675430d1e87c4f24d0c1f80efe600757a0f32bec] btusb_rx_work+0x9e/0xe0 [btusb 675430d1e87c4f24d0c1f80efe600757a0f32bec] worker_thread+0xe44/0x2cc0 kthread+0x2ff/0x3a0 ret_from_fork+0x51/0x80 ret_from_fork_asm+0x1b/0x30 </TASK> Allocated by task 82: stack_trace_save+0xdc/0x190 kasan_set_track+0x4e/0x80 __kasan_slab_alloc+0x4e/0x60 kmem_cache_alloc+0x19f/0x360 skb_clone+0x132/0xf70 btusb_recv_acl_mtk+0x104/0x1a0 [btusb] btusb_rx_work+0x9e/0xe0 [btusb] worker_thread+0xe44/0x2cc0 kthread+0x2ff/0x3a0 ret_from_fork+0x51/0x80 ret_from_fork_asm+0x1b/0x30 Freed by task 1733: stack_trace_save+0xdc/0x190 kasan_set_track+0x4e/0x80 kasan_save_free_info+0x28/0xb0 ____kasan_slab_free+0xfd/0x170 kmem_cache_free+0x183/0x3f0 hci_devcd_rx+0x91a/0x2060 [bluetooth] worker_thread+0xe44/0x2cc0 kthread+0x2ff/0x3a0 ret_from_fork+0x51/0x80 ret_from_fork_asm+0x1b/0x30 The buggy address belongs to the object at ffff888033cfab40 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 112 bytes inside of freed 232-byte region [ffff888033cfab40, ffff888033cfac28) The buggy address belongs to the physical page: page:00000000a174ba93 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x33cfa head:00000000a174ba93 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x4000000000000840(slab|head|zone=1) page_type: 0xffffffff() raw: 4000000000000840 ffff888100848a00 0000000000000000 0000000000000001 raw: 0000000000000000 0000000080190019 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888033cfaa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff888033cfab00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb >ffff888033cfab80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888033cfac00: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ffff888033cfac80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Check if we need to call hci_devcd_complete before calling hci_devcd_append. That requires that we check data->cd_info.cnt >= MTK_COREDUMP_NUM instead of data->cd_info.cnt > MTK_COREDUMP_NUM, as we increment data->cd_info.cnt only once the call to hci_devcd_append succeeds.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | linux | 6.12.6-1 | DEBIAN-CVE-2024-56653 |
| Debian:14 | linux | 6.12.6-1 | DEBIAN-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux | 6.8.0-59.61 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux | 6.8.0-59.61 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1028.30 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1028.30 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1028.30~22.04.1 | USN-7492-1 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1028.30~22.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1028.33 | USN-7500-1 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1028.33 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | 6.11.0-1012.12~24.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1028.33~22.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1028.33~22.04.1 | USN-7500-2 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | 6.8.0-1016.17 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | 6.8.0-1016.17 | USN-7522-1 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1029.31 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1029.31 | USN-7492-1 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | 6.11.0-1011.11~24.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1029.31~22.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1029.31~22.04.1 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1024.28 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1024.28 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1011.13 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1011.13 | USN-7492-1 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | 6.11.0-21.21~24.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-59.61~22.04.1 | USN-7492-1 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-59.61~22.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1025.25 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1025.25 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1025.25~22.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-59.61.1 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-59.61.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-59.61.1~22.04.1 | USN-7492-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-59.61.1~22.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1027.30 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1027.30 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | 6.11.0-1007.7 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1027.30~22.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1027.30~22.04.1 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1027.30.1 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1027.30.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1008.8 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | 6.11.0-1017.17 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | 6.8.0-1027.27 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | 6.8.0-1027.27 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1025.26 | USN-7492-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1025.26 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1025.26~22.04.1 | USN-7492-1 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1025.26~22.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1028.32 | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-riscv | 6.8.0-59.61.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-59.61.1~22.04.1 | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2024-56653 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1017.18 | UBUNTU-CVE-2024-56653 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 0b70151328781a89c89e4cf3fae21fc0e98d869e – before ecdcaea0e4057171ea4c3783e1cc1c900ad991250b70151328781a89c89e4cf3fae21fc0e98d869e – before d20ff1d3cb40479789368f502eedb0a00e4161fc0b70151328781a89c89e4cf3fae21fc0e98d869e – before b548f5e9456c568155499d9ebac675c0d7a296e8 |
| Linux | Linux | 6.6 |
Weakness: CWE-416 · Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H