PT-2026-163418
CVE-2026-139377
·
تاريخ النشر
2026-11-30
·
تاريخ التحديث
2026-11-30
الوصف من
CVSS 3.1
8.0
عاليةالمقاييسAV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: ISO: Hold the listener during disconnect notification
An ISO listener must remain alive until a queued child's disconnect
notification completes. bt accept enqueue() retains only the child and
stores a raw parent pointer; iso conn ready() drops its temporary
listener reference after setup. iso chan del() saves that pointer,
unlinks the child and then calls parent->sk data ready() without holding
a listener reference.
With an incoming CIS child still queued, disconnect and listener release
can proceed in this order:
HCI disconnect Listener release
iso conn del(): lock child
iso chan del(): save parent
bt accept unlink(child)
iso sock cleanup listen():
drain empty accept queue
iso sock release():
orphan and kill listener
final sock put(listener)
parent->sk data ready(parent)
After unlink, listener cleanup no longer has to take the child socket
lock. The listener can therefore be freed before iso chan del() reads
sk data ready, causing a use-after-free.
Take a temporary parent reference before bt accept unlink() and drop it
after the notification. The child lock excludes accept dequeue while the
child is still queued, so listener cleanup cannot complete before
sock hold(). The reference then keeps the listener alive across unlink
and through the callback without changing lock order.
KASAN report as below:
==================================================================
BUG: KASAN: slab-use-after-free in iso chan del+0x302/0x320
Read of size 8 at addr ffff888105ca2188 by task kworker/2:1/50
CPU: 2 UID: 0 PID: 50 Comm: kworker/2:1 Not tainted7.2.0-rc6-pmb-bt-functional-v1+ #1 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: events iso fixture disconnect work
Call Trace:
dump stack lvl+0x93/0xd0
print report+0xce/0x630
? iso chan del+0x302/0x320
? srso alias return thunk+0x5/0xfbef5
? virt addr valid+0x20d/0x410
? iso chan del+0x302/0x320
kasan report+0xe0/0x110
? iso chan del+0x302/0x320
iso chan del+0x302/0x320
iso conn del+0x19d/0x3c0
? pfx iso disconn cfm+0x10/0x10
iso disconn cfm+0x78/0x120
hci disconn complete evt+0x319/0xa30
? find held lock+0x2b/0x80
hci test iso disconn event+0x85/0xb0
? pfx hci test iso disconn event+0x10/0x10
? srso alias return thunk+0x5/0xfbef5
? srso alias return thunk+0x5/0xfbef5
? raw read unlock+0x23/0x40
? srso alias return thunk+0x5/0xfbef5
? hci dev get+0x15d/0x280
iso fixture disconnect work+0x67/0x290
process one work+0x908/0x19c0
? pfx process one work+0x10/0x10
? srso alias return thunk+0x5/0xfbef5
? lock is held type+0x8f/0x100
? srso alias return thunk+0x5/0xfbef5
worker thread+0x65c/0xe40
? srso alias return thunk+0x5/0xfbef5
? kthread parkme+0x175/0x220
? srso alias return thunk+0x5/0xfbef5
? pfx worker thread+0x10/0x10
kthread+0x34f/0x460
? srso alias return thunk+0x5/0xfbef5
? pfx kthread+0x10/0x10
ret from fork+0x659/0x940
? pfx ret from fork+0x10/0x10
? srso alias return thunk+0x5/0xfbef5
? switch to+0x74f/0xf80
? pfx kthread+0x10/0x10
ret from fork asm+0x1a/0x30
Allocated by task 521:
kasan save stack+0x33/0x60
kasan save track+0x14/0x30
kasan kmalloc+0xaa/0xb0
kmalloc noprof+0x2d7/0x770
sk prot alloc+0x13e/0x260
sk alloc+0x37/0xb40
bt sock alloc+0x40/0x3b0
iso sock alloc.constprop.0+0x3a/0x360
iso sock create+0xc7/0x160
bt sock cre
---truncated---
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾