PT-2026-163420
CVE-2026-139379
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci core: Keep RCU protection through LTK filtering
The LTK selected by hci find ltk() must remain allocated while its
value is checked against the blocked-key list. The finder releases RCU
before passing k->val to hci is blocked key(). The helper's own RCU
section protects the blocked-key list, but the selected LTK may already
have been reclaimed before that section starts.
An LE ATT socket security request can reach smp ltk encrypt() without
holding hdev->lock. With a matching stored LTK and an LTK-type
blocked-key entry present, a concurrent MGMT OP LOAD LONG TERM KEYS can
remove the selected LTK in the following order:
Socket security Management / RCU reclamation
hci find ltk()
rcu read lock()
select k
rcu read unlock()
load long term keys()
hci dev lock(hdev)
hci smp ltks clear(hdev)
list del rcu(&k->list)
kfree rcu(k, rcu)
grace period ends; k is freed
hci is blocked key(..., k->val)
memcmp(b->val, val, ...)
The final comparison reads freed LTK bytes. Entering a new RCU section
in hci is blocked key() cannot protect a pointer obtained before the
completed grace period.
Keep the finder's RCU read-side section active through the blocked-key
comparison and the warning that reads k->bdaddr. Release it before
returning on either matched-key path. This delays reclamation until the
finder has finished using the selected record, following the existing
IRK lookup pattern.
KFENCE report as below:
==================================================================
BUG: KFENCE: use-after-free read in hci is blocked key+0xdf/0x240
Use-after-free read at 0x00000000b9ee38e4 (in kfence-#249):
hci is blocked key+0xdf/0x240
blocked key wrapper+0xc5/0x140 [pmbd ltk probe]
hci find ltk+0x1aa/0x3e0
smp ltk encrypt.isra.0+0xad/0x340
smp conn security+0x3b8/0x8c0
l2cap sock setsockopt+0x1c4b/0x2270
do sock setsockopt+0x1fb/0x430
sys setsockopt+0x106/0x180
x64 sys setsockopt+0xc2/0x160
do syscall 64+0x115/0x6a0
entry SYSCALL 64 after hwframe+0x77/0x7f
kfence-#249: 0x00000000121f2ad9-0x000000005b5bfb3d, size=72, cache=kmalloc-96
allocated by task 495 on cpu 0 at 36.722380s (2.603973s ago):
hci add ltk+0x1f5/0x3a0
load long term keys+0x6d0/0x860
hci sock sendmsg+0x128b/0x22e0
sys sendto+0x425/0x470
x64 sys sendto+0xe5/0x1c0
do syscall 64+0x115/0x6a0
entry SYSCALL 64 after hwframe+0x77/0x7f
freed by task 533 on cpu 0 at 36.993097s (2.339769s ago):
rcu free sheaf prepare+0x261/0x2a0
rcu free sheaf+0x1f/0xe0
rcu core+0x661/0x1d10
handle softirqs+0x201/0x930
irq exit rcu+0x110/0x1e0
irq exit rcu+0xe/0x20
sysvec apic timer interrupt+0x6c/0x80
asm sysvec apic timer interrupt+0x1a/0x20
srso alias return thunk+0x0/0xfbef5
asan memcpy+0x23/0x60
create monitor ctrl event+0x1a2/0x460
mgmt cmd complete+0x2da/0x580
load long term keys+0x741/0x860
hci sock sendmsg+0x128b/0x22e0
sys sendto+0x425/0x470
x64 sys sendto+0xe5/0x1c0
do syscall 64+0x115/0x6a0
entry SYSCALL 64 after hwframe+0x77/0x7f
CPU: 1 UID: 0 PID: 495 Comm: python3 Tainted: G O 7.2.0-rc6-pmb-bt-functional-v1+ #1 PREEMPT(lazy) Tainted: [O]=OOT MODULE 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
Found an issue in the description? Have something to add? Feel free to write us 👾