{"id":"CVE-2026-143313","summary":"Bluetooth: hci_core: Keep link-key filtering inside RCU","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_core: Keep link-key filtering inside RCU\n\nhci_find_link_key() must keep the matching link key allocated while it\nchecks the key against the blocked-key list. It currently leaves the\nkey-list RCU read-side section before passing k-\u003eval to\nhci_is_blocked_key(). That helper's own RCU section protects the\nblocked-key list, but it cannot keep an unlinked link key from being\nreclaimed.\n\nThe SMP receive path calls the finder without hdev-\u003elock: Secure\nConnections key distribution over BR/EDR reaches it through\nsmp_distribute_keys() and sc_generate_ltk(). With a stored peer link\nkey and a link-key entry in the blocked-key list,\nMGMT_OP_LOAD_LINK_KEYS can free the selected key before the comparison:\n\n  HCI RX worker (SMP)              Management / RCU reclamation\n  hci_find_link_key()\n    rcu_read_lock()\n    select k\n    rcu_read_unlock()\n                                   load_link_keys()\n                                     hci_dev_lock(hdev)\n                                     hci_link_keys_clear(hdev)\n                                       list_del_rcu(), kfree_rcu()\n                                     hci_dev_unlock(hdev)\n                                   grace period ends, k is freed\n    hci_is_blocked_key(hdev, ..., k-\u003eval)\n      memcmp() reads the freed key\n\nKeep the RCU read-side section active through the blocked-key\ncomparison and the warning that prints k-\u003ebdaddr, and release it before\nreturning on both matched-key paths. hci_find_ltk() already handles its\nblocked-key check this way.\n\nKASAN reported this on a test kernel whose scheduling hook paused the\nreceive worker after the lookup until the key had been freed.\n\nKASAN report as below:\n\n    ==================================================================\n    BUG: KASAN: slab-use-after-free in hci_is_blocked_key+0x2db/0x300\n    Read of size 1 at addr ffff88810b5f89a7 by task kworker/u17:0/502\n\n    CPU: 1 UID: 0 PID: 502 Comm: kworker/u17:0 Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #5 PREEMPT(lazy)\n    Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014\n    Workqueue: hci1 hci_rx_work\n    Call Trace:\n     \u003cTASK\u003e\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? hci_is_blocked_key+0x2db/0x300\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20d/0x410\n     ? hci_is_blocked_key+0x2db/0x300\n     kasan_report+0xe0/0x110\n     ? hci_is_blocked_key+0x2db/0x300\n     hci_is_blocked_key+0x2db/0x300\n     hci_find_link_key+0x12e/0x400\n     smp_distribute_keys+0x1830/0x2950\n     ? trace_hardirqs_on+0x18/0x160\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? queue_delayed_work_on+0xb3/0xf0\n     ? __pfx_smp_distribute_keys+0x10/0x10\n     ? __pfx_smp_send_cmd.isra.0+0x10/0x10\n     ? __cancel_work+0x1b0/0x290\n     ? __entry_text_end+0x1020f7/0x1020f9\n     ? lockdep_hardirqs_on_prepare+0xea/0x1a0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __asan_memset+0x23/0x50\n     ? smp_recv_cb+0x12c7/0x8d80\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     smp_recv_cb+0x12c7/0x8d80\n     ? __pfx_smp_recv_cb+0x10/0x10\n     ? __pfx___might_resched+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? stack_depot_save_flags+0x29/0x9a0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __mutex_lock+0x182c/0x2590\n     ? kasan_save_stack+0x42/0x60\n     ? l2cap_recv_frame+0x9ef/0x8830\n     ? __kasan_slab_free+0x5f/0x80\n     ? kmem_cache_free+0x242/0x580\n     ? kfree_skbmem+0x15e/0x1d0\n     ? sk_skb_reason_drop+0x12f/0x490\n     ? hci_event_packet+0x556/0xc70\n     ? hci_rx_work+0x367/0xf00\n     ? process_one_work+0x908/0x19c0\n     ? worker_thread+0x65c/0xe40\n     ? __pfx___mutex_lock+0x10/0x10\n     ? __lock_acquire+0x466/0x2260\n     ? __pfx_l2cap_chan_hold_unless_zero+0x10/0x10\n     ? l2cap_recv_frame+0x13cc/0x8830\n     ? __pfx_smp_recv_cb+0x10/0x10\n     l2cap_recv_frame+0x13cc/0x8830\n     ? srso_a\n---truncated---","modified":"2026-12-03T11:02:00.009779045Z","published":"2026-12-03T09:21:40.766Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143313.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/281ddc4e01ab54cab07995f2a1b72cf81bf90eb5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3287839374c7bf31a8db64db56de3379748b5fca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3bda129d475b42d36bfc872d2b607b52057fe184"},{"type":"WEB","url":"https://git.kernel.org/stable/c/403580855510441e284265d1b44d77c967e7f3ba"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7ba681875c88166cdf83020750aaed771fde39e3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f30f763d43ffa614e431d8733bb6f8460f14cab0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143313.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143313"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"600a87490ff9823d065fc15e86c709e707033ecc"},{"fixed":"3287839374c7bf31a8db64db56de3379748b5fca"},{"fixed":"403580855510441e284265d1b44d77c967e7f3ba"},{"fixed":"3bda129d475b42d36bfc872d2b607b52057fe184"},{"fixed":"7ba681875c88166cdf83020750aaed771fde39e3"},{"fixed":"f30f763d43ffa614e431d8733bb6f8460f14cab0"},{"fixed":"281ddc4e01ab54cab07995f2a1b72cf81bf90eb5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143313.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.6.0"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143313.json"}}],"schema_version":"1.9.2"}