CVE-2026-143313

Source
https://cve.org/CVERecord?id=CVE-2026-143313
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143313.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143313
Downstream
Published
2026-12-03T09:21:40Z
Modified
2026-12-03T11:02:00Z
Summary
Bluetooth: hci_core: Keep link-key filtering inside RCU
Details

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: hci_core: Keep link-key filtering inside RCU

hci_find_link_key() must keep the matching link key allocated while it checks the key against the blocked-key list. It currently leaves the key-list RCU read-side section before passing k->val to hci_is_blocked_key(). That helper's own RCU section protects the blocked-key list, but it cannot keep an unlinked link key from being reclaimed.

The SMP receive path calls the finder without hdev->lock: Secure Connections key distribution over BR/EDR reaches it through smp_distribute_keys() and sc_generate_ltk(). With a stored peer link key and a link-key entry in the blocked-key list, MGMT_OP_LOAD_LINK_KEYS can free the selected key before the comparison:

HCI RX worker (SMP) Management / RCU reclamation hci_find_link_key() rcu_read_lock() select k rcu_read_unlock() load_link_keys() hci_dev_lock(hdev) hci_link_keys_clear(hdev) list_del_rcu(), kfree_rcu() hci_dev_unlock(hdev) grace period ends, k is freed hci_is_blocked_key(hdev, ..., k->val) memcmp() reads the freed key

Keep the RCU read-side section active through the blocked-key comparison and the warning that prints k->bdaddr, and release it before returning on both matched-key paths. hci_find_ltk() already handles its blocked-key check this way.

KASAN reported this on a test kernel whose scheduling hook paused the receive worker after the lookup until the key had been freed.

KASAN report as below:

==================================================================
BUG: KASAN: slab-use-after-free in hci_is_blocked_key+0x2db/0x300
Read of size 1 at addr ffff88810b5f89a7 by task kworker/u17:0/502

CPU: 1 UID: 0 PID: 502 Comm: kworker/u17:0 Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #5 PREEMPT(lazy)
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
Workqueue: hci1 hci_rx_work
Call Trace:
 <TASK>
 dump_stack_lvl+0x93/0xd0
 print_report+0xce/0x630
 ? hci_is_blocked_key+0x2db/0x300
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __virt_addr_valid+0x20d/0x410
 ? hci_is_blocked_key+0x2db/0x300
 kasan_report+0xe0/0x110
 ? hci_is_blocked_key+0x2db/0x300
 hci_is_blocked_key+0x2db/0x300
 hci_find_link_key+0x12e/0x400
 smp_distribute_keys+0x1830/0x2950
 ? trace_hardirqs_on+0x18/0x160
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? queue_delayed_work_on+0xb3/0xf0
 ? __pfx_smp_distribute_keys+0x10/0x10
 ? __pfx_smp_send_cmd.isra.0+0x10/0x10
 ? __cancel_work+0x1b0/0x290
 ? __entry_text_end+0x1020f7/0x1020f9
 ? lockdep_hardirqs_on_prepare+0xea/0x1a0
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __asan_memset+0x23/0x50
 ? smp_recv_cb+0x12c7/0x8d80
 ? srso_alias_return_thunk+0x5/0xfbef5
 smp_recv_cb+0x12c7/0x8d80
 ? __pfx_smp_recv_cb+0x10/0x10
 ? __pfx___might_resched+0x10/0x10
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? stack_depot_save_flags+0x29/0x9a0
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __mutex_lock+0x182c/0x2590
 ? kasan_save_stack+0x42/0x60
 ? l2cap_recv_frame+0x9ef/0x8830
 ? __kasan_slab_free+0x5f/0x80
 ? kmem_cache_free+0x242/0x580
 ? kfree_skbmem+0x15e/0x1d0
 ? sk_skb_reason_drop+0x12f/0x490
 ? hci_event_packet+0x556/0xc70
 ? hci_rx_work+0x367/0xf00
 ? process_one_work+0x908/0x19c0
 ? worker_thread+0x65c/0xe40
 ? __pfx___mutex_lock+0x10/0x10
 ? __lock_acquire+0x466/0x2260
 ? __pfx_l2cap_chan_hold_unless_zero+0x10/0x10
 ? l2cap_recv_frame+0x13cc/0x8830
 ? __pfx_smp_recv_cb+0x10/0x10
 l2cap_recv_frame+0x13cc/0x8830
 ? srso_a

---truncated---

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143313.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

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
Show 1 more event Show fewer events
Fixed
281ddc4e01ab54cab07995f2a1b72cf81bf90eb5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143313.json"

Linux / Kernel

Package

Name
Kernel

Affected 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"