PT-2026-150329
CVE-2026-99316
·
Publicado
2026-11-18
·
Atualizado
2026-11-18
Descrição por
CVSS 3.1
7.0
AltaMétricasAV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usx2y: Initialize idle URBs before submitting streams
usb stream start() submits the first two capture and playback URBs and
only afterwards assigns sk->idle inurb, sk->idle outurb,
sk->completed inurb and sk->completed outurb to the remaining two URBs
of each direction.
A transfer can complete as soon as usb submit urb() has been called, so
the completion handler i capture start() or i playback start() may run
before those pointers are set. While the stream is still being
synchronized (state below usb stream sync1), stream start() then calls
playback prep freqn(sk, sk->idle outurb) with sk->idle outurb still
NULL, and the packet descriptors are written through that NULL pointer:
Oops: general protection fault, probably for non-canonical address
0xdffffc0000000018: 0000 [#1] SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000c0-0x00000000000000c7]
RIP: 0010:playback prep freqn+0x11c/0x4a0 sound/usb/usx2y/usb stream.c:33
Call Trace:
stream start+0x5dc/0x8d0 sound/usb/usx2y/usb stream.c:596
i capture start+0x3da/0x710 sound/usb/usx2y/usb stream.c:654
usb hcd giveback urb+0x238/0x550 drivers/usb/core/hcd.c:1657
usb giveback urb bh+0x20b/0x530 drivers/usb/core/hcd.c:1691
tasklet hi action+0xa/0x20 kernel/softirq.c:994
handle softirqs+0x16f/0x440 kernel/softirq.c:645
The four URBs referenced by these pointers are allocated long before and
do not depend on any transfer state, so assign them before the submit
loop. Keeping the assignment inside the retry path also restores a
well-defined URB rotation when the start frame mismatch handling kills
and resubmits the streams.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾