PT-2026-167169
CVE-2026-143311
·
Published
2026-12-03
·
Updated
2026-12-03
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: SMP: Protect LTK encryption with RCU
smp ltk encrypt() checks the security level of the LTK returned by
hci find ltk() and then starts encryption with its EDIV, Rand, value
and key size. The finder ends its RCU read-side section before
returning the borrowed entry, and neither caller holds hdev->lock: the
SMP Security Request handler runs from the receive path, and
setsockopt(BT SECURITY) reaches smp conn security() with only the
socket and channel locks held.
MGMT OP LOAD LONG TERM KEYS can therefore free the LTK in between:
Socket security request Management / RCU reclamation
smp ltk encrypt()
key = hci find ltk()
load long term keys()
hci dev lock(hdev)
hci smp ltks clear(hdev)
list del rcu(), kfree rcu()
hci dev unlock(hdev)
grace period ends, key is freed
smp ltk sec level(key)
hci le start enc(hcon, key->ediv, key->rand, key->val, ...)
Keep an RCU read-side section across the lookup and every use of the
key. hci le start enc() copies the key into the command and queues it
with a GFP ATOMIC allocation, so the whole sequence can stay inside the
section.
KFENCE reported this on a test kernel where the socket thread was
paused after the lookup until the RCU callback had freed the key.
KFENCE report as below:
==================================================================
BUG: KFENCE: use-after-free read in smp ltk encrypt.isra.0+0xf3/0x370
Use-after-free read at 0x00000000c45332eb (in kfence-#128):
smp ltk encrypt.isra.0+0xf3/0x370
smp conn security+0x489/0x9d0
l2cap sock setsockopt+0x1bbe/0x2300
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-#128: 0x00000000d45af9b0-0x0000000053c1365e, size=72, cache=kmalloc-96
allocated by task 533 on cpu 0 at 50.484258s (0.449177s ago):
hci add ltk+0x1f5/0x3a0
load long term keys+0x6ea/0x930
hci sock sendmsg+0x128b/0x22e0
sock write iter+0x4c0/0x550
vfs write+0x637/0x1010
ksys write+0x1b7/0x200
do syscall 64+0x115/0x6a0
entry SYSCALL 64 after hwframe+0x77/0x7f
freed by task 0 on cpu 0 at 50.846944s (0.093664s ago):
rcu free sheaf prepare+0x261/0x2a0
rcu free sheaf nobarn+0x1d/0x50
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
pv native safe halt+0xf/0x20
default idle+0x9/0x10
default idle call+0x6c/0xb0
do idle+0x3a7/0x650
cpu startup entry+0x54/0x60
rest init+0x15e/0x2b0
start kernel+0x412/0x4b0
x86 64 start reservations+0x18/0x30
x86 64 start kernel+0x111/0x120
common startup 64+0x13e/0x158
CPU: 2 UID: 0 PID: 534 Comm: l2cap-ltk-actor 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
Found an issue in the description? Have something to add? Feel free to write us 👾