PT-2026-167171

CVE-2026-143313

·

تاريخ النشر

2026-12-03

·

تاريخ التحديث

2026-12-03

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

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: 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---
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾