PT-2026-167039
CVE-2026-143181
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
ALSA: caiaq: Kill EP1 URB before unregistering the input device
snd disconnect() unregisters the input device via
snd usb caiaq input disconnect() and only afterwards kills the EP1
command URB (cdev->ep1 in urb). The EP1 completion handler
usb ep1 command reply dispatch() feeds snd usb caiaq input dispatch()
for EP1 CMD READ {ERP,ANALOG,IO} replies, which report into
cdev->input dev. Since commit b04dcbb7f7b1 ("ALSA: caiaq: Use
snd card free when closed() at disconnection") the input device is
unregistered from snd usb caiaq input disconnect() but cdev->input dev
is cleared only later, in snd usb caiaq input free() from the card
destructor. As the dispatch guard only tests cdev->input dev for NULL,
an EP1 reply that completes after input unregister device() but before
cdev->ep1 in urb is killed reports into an input device that has
already been unregistered and, with no evdev client holding it open,
freed.
Normally the window is closed by the USB core: usb unbind interface()
calls usb disable interface() before ->disconnect(), which flushes the
EP1 URB as long as endpoint 0x81 belongs to the interface being
unbound. But caiaq addresses EP1 through the device-wide pipe
usb rcvbulkpipe(usb dev, 0x1) without checking which interface owns
the endpoint. If a device declares it in another interface, the URB
stays live across snd disconnect() of the interface that owns the card.
This needs a crafted device descriptor; a device that has EP1 in the
interface caiaq is bound to is not affected.
Kill cdev->ep1 in urb (and the paired midi out urb) before the input
and audio disconnect helpers, so no EP1 completion can run once the
input device has been unregistered.
Reproduced under KASAN with raw-gadget + dummy hcd emulating an Audio
Kontrol 1 (17cc:0815) with the EP1 bulk pair in interface 1: only
interface 0 was bound to snd-usb-caiaq and then unbound through sysfs
while the gadget flooded EP1 with EP1 CMD READ ERP replies. With no PCM
stream running the window is very short and was only hit by stalling
the unbinding CPU with a kgdb breakpoint at
snd usb caiaq audio disconnect(). With the fix applied, the same test
runs clean.
BUG: KASAN: slab-use-after-free in input event+0x3a/0xc0
Read of size 8 at addr ffff8880151a4028 by task sh/118
Call Trace:
input event+0x3a/0xc0
snd usb caiaq input dispatch+0xab2/0xf00
usb ep1 command reply dispatch+0x1f3/0x580
usb hcd giveback urb+0x246/0x400
dummy timer+0x1415/0x3380
hrtimer run queues+0x39d/0x800
hrtimer run softirq+0x187/0x2d0
handle softirqs+0x1ff/0x930
irq exit rcu+0x15b/0x210
irq exit rcu+0xe/0x20
sysvec apic timer interrupt+0x81/0xb0
asm sysvec apic timer interrupt+0x1a/0x20
RIP: 0010:snd usb caiaq audio disconnect+0x0/0x70
snd disconnect+0x81/0x110
usb unbind interface+0x1a0/0x860
device release driver internal+0x2c5/0x470
unbind store+0xde/0x100
Allocated by task 80:
input allocate device+0x47/0x340
snd usb caiaq input init+0x4c/0x1ac0
snd probe+0xab3/0x1160
usb probe interface+0x2ea/0x810
Freed by task 118:
kfree+0x1ea/0x5c0
input dev release+0xab/0xd0
device release+0xcf/0x250
kobject put+0x169/0x320
snd disconnect+0x79/0x110
usb unbind interface+0x1a0/0x860
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾