{"id":"CVE-2026-99316","state":"PUBLISHED","title":"ALSA: usx2y: Initialize idle URBs before submitting streams","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usx2y: Initialize idle URBs before submitting streams\n\nusb_stream_start() submits the first two capture and playback URBs and\nonly afterwards assigns sk->idle_inurb, sk->idle_outurb,\nsk->completed_inurb and sk->completed_outurb to the remaining two URBs\nof each direction.\n\nA transfer can complete as soon as usb_submit_urb() has been called, so\nthe completion handler i_capture_start() or i_playback_start() may run\nbefore those pointers are set.  While the stream is still being\nsynchronized (state below usb_stream_sync1), stream_start() then calls\nplayback_prep_freqn(sk, sk->idle_outurb) with sk->idle_outurb still\nNULL, and the packet descriptors are written through that NULL pointer:\n\n  Oops: general protection fault, probably for non-canonical address\n  0xdffffc0000000018: 0000 [#1] SMP KASAN\n  KASAN: null-ptr-deref in range [0x00000000000000c0-0x00000000000000c7]\n  RIP: 0010:playback_prep_freqn+0x11c/0x4a0 sound/usb/usx2y/usb_stream.c:33\n  Call Trace:\n   <IRQ>\n   stream_start+0x5dc/0x8d0 sound/usb/usx2y/usb_stream.c:596\n   i_capture_start+0x3da/0x710 sound/usb/usx2y/usb_stream.c:654\n   __usb_hcd_giveback_urb+0x238/0x550 drivers/usb/core/hcd.c:1657\n   usb_giveback_urb_bh+0x20b/0x530 drivers/usb/core/hcd.c:1691\n   tasklet_hi_action+0xa/0x20 kernel/softirq.c:994\n   handle_softirqs+0x16f/0x440 kernel/softirq.c:645\n   </IRQ>\n\nThe four URBs referenced by these pointers are allocated long before and\ndo not depend on any transfer state, so assign them before the submit\nloop.  Keeping the assignment inside the retry path also restores a\nwell-defined URB rotation when the start frame mismatch handling kills\nand resubmits the streams.","publishedAt":"2026-11-18T08:42:08.606Z","updatedAt":"2026-11-19T13:52:48.921Z","severity":{"score":7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"cc826d8f6074305af7bf1d2b7c13564d194db914","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"1f32f490350fae3d64f60b5ab9b02e5254fa0a90","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"aa91b5324b5c856e18a9d356df875b29fbedd33a","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"ceb0d8c22473933099b46cec70639d0f1f7c68ad","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/usb/usx2y/usb_stream.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.28","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.28","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.5","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/usb/usx2y/usb_stream.c"]}],"references":["https://git.kernel.org/stable/c/cc826d8f6074305af7bf1d2b7c13564d194db914","https://git.kernel.org/stable/c/1f32f490350fae3d64f60b5ab9b02e5254fa0a90","https://git.kernel.org/stable/c/aa91b5324b5c856e18a9d356df875b29fbedd33a","https://git.kernel.org/stable/c/ceb0d8c22473933099b46cec70639d0f1f7c68ad"],"weaknesses":[],"ingestedAt":"2026-11-19T13:58:06.563Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99316.json","commit":"5284c0aaed448bdf5be406b31f52fecb38b554c5","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99316","state":"PUBLISHED","datePublished":"2026-11-18T08:42:08.606Z","dateUpdated":"2026-11-19T13:52:48.921Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.407Z"},"containers":{"cna":{"title":"ALSA: usx2y: Initialize idle URBs before submitting streams","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usx2y: Initialize idle URBs before submitting streams\n\nusb_stream_start() submits the first two capture and playback URBs and\nonly afterwards assigns sk->idle_inurb, sk->idle_outurb,\nsk->completed_inurb and sk->completed_outurb to the remaining two URBs\nof each direction.\n\nA transfer can complete as soon as usb_submit_urb() has been called, so\nthe completion handler i_capture_start() or i_playback_start() may run\nbefore those pointers are set.  While the stream is still being\nsynchronized (state below usb_stream_sync1), stream_start() then calls\nplayback_prep_freqn(sk, sk->idle_outurb) with sk->idle_outurb still\nNULL, and the packet descriptors are written through that NULL pointer:\n\n  Oops: general protection fault, probably for non-canonical address\n  0xdffffc0000000018: 0000 [#1] SMP KASAN\n  KASAN: null-ptr-deref in range [0x00000000000000c0-0x00000000000000c7]\n  RIP: 0010:playback_prep_freqn+0x11c/0x4a0 sound/usb/usx2y/usb_stream.c:33\n  Call Trace:\n   <IRQ>\n   stream_start+0x5dc/0x8d0 sound/usb/usx2y/usb_stream.c:596\n   i_capture_start+0x3da/0x710 sound/usb/usx2y/usb_stream.c:654\n   __usb_hcd_giveback_urb+0x238/0x550 drivers/usb/core/hcd.c:1657\n   usb_giveback_urb_bh+0x20b/0x530 drivers/usb/core/hcd.c:1691\n   tasklet_hi_action+0xa/0x20 kernel/softirq.c:994\n   handle_softirqs+0x16f/0x440 kernel/softirq.c:645\n   </IRQ>\n\nThe four URBs referenced by these pointers are allocated long before and\ndo not depend on any transfer state, so assign them before the submit\nloop.  Keeping the assignment inside the retry path also restores a\nwell-defined URB rotation when the start frame mismatch handling kills\nand resubmits the streams."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"cc826d8f6074305af7bf1d2b7c13564d194db914","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"1f32f490350fae3d64f60b5ab9b02e5254fa0a90","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"aa91b5324b5c856e18a9d356df875b29fbedd33a","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"ceb0d8c22473933099b46cec70639d0f1f7c68ad","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/usb/usx2y/usb_stream.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.28","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.28","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.5","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/usb/usx2y/usb_stream.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cc826d8f6074305af7bf1d2b7c13564d194db914"},{"url":"https://git.kernel.org/stable/c/1f32f490350fae3d64f60b5ab9b02e5254fa0a90"},{"url":"https://git.kernel.org/stable/c/aa91b5324b5c856e18a9d356df875b29fbedd33a"},{"url":"https://git.kernel.org/stable/c/ceb0d8c22473933099b46cec70639d0f1f7c68ad"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - usb_stream_hwdep_ioctl() on SNDRV_USB_STREAM_IOCTL_SET_PARAMS calls us122l_stop() then us122l_start(), and us122l_start() calls usb_stream_start(), which stored sk->idle_outurb only after usb_submit_urb() of the first isochronous URBs. A local opener of the bound snd-usb-us122l hwdep node issues that ioctl.\nAC:H - stream_start() calls playback_prep_freqn(sk, sk->idle_outurb) only after balance_check() sees iso_frame_balance at 0, so both interval-1 isochronous URBs must finish. xhci_get_isoc_start_frame() schedules them at mfindex+ist+XHCI_CFC_DELAY (10 microframes) plus every packet, and usb_stream_start() stores the idle pointers with no sleep, so the giveback wins only if that thread is delayed across the frame time.\nPR:L - usb_stream_hwdep_open() and usb_stream_hwdep_ioctl() never call capable(). File mode on the hwdep node admits a local user in the audio group or the active session, which is enough to issue SNDRV_USB_STREAM_IOCTL_SET_PARAMS.\nUI:N - The attacker opens the hwdep node and issues SNDRV_USB_STREAM_IOCTL_SET_PARAMS. usb_stream_hwdep_ioctl() restarts the stream itself under us122l->mutex.\nS:U - The dangling urb and its transfer buffer are host kernel memory in snd-usb-us122l, the same security domain as usb_stream_start().\nC:H - us122l_stop() calls usb_stream_free(), which usb_free_urb()s every inurb[] and outurb[] entry but leaves sk->idle_outurb and sk->idle_inurb pointing at those freed URBs. submit_urbs() then reads number_of_packets, transfer_buffer and complete from that freed object, a use-after-free of kernel heap.\nI:H - playback_prep_freqn() writes iso_frame_desc offsets and lengths, number_of_packets and transfer_buffer_length through dangling sk->idle_outurb, and submit_urbs() calls usb_submit_urb() on that urb and on dangling sk->idle_inurb, so the host controller consumes freed URB metadata and the already-freed transfer pages.\nA:H - When sk->idle_outurb is still NULL, playback_prep_freqn()'s store to iso_frame_desc (offset 0xc0) is the general-protection fault in the commit, from i_capture_start() through stream_start() in the giveback tasklet. On the SET_PARAMS path the dangling urb is consumed by usb_submit_urb() and crashes the kernel."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T13:52:48.921Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}