CVE-2026-90032 PUBLISHED

media: usbtv: keep device alive while ALSA card exists

Assigner: Linux
Reserved: 11.09.2026 Published: 16.09.2026 Updated: 16.09.2026

In the Linux kernel, the following vulnerability has been resolved:

media: usbtv: keep device alive while ALSA card exists

The ALSA PCM callbacks store the driver state in pcm->private_data. An open PCM file can outlive USB disconnect because usbtv_audio_free() uses snd_card_free_when_closed(). The disconnect path can then drop the V4L2 device reference and free struct usbtv before ALSA releases the substream, so a later close dereferences freed memory in snd_usbtv_pcm_close().

Take a V4L2 device reference for the ALSA card and drop it from the card private_free callback. This keeps struct usbtv valid until ALSA has closed the remaining files and freed the card.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 7.8

AV:L - The UAF is reached locally by opening the usbtv ALSA capture PCM, forcing usbtv_disconnect() via USBDEVFS_DISCONNECT or sysfs unbind on an already-bound USBTV007, then closing the PCM fd; there is no network or packet path. This matches AV:L scoring of analogous USB disconnect UAFs (CVE-2026-80971, CVE-2026-64585); physical unplug is only an extra path. AC:L - The attacker fully controls the sequence: open /dev/snd/pcmCDc so PCM callbacks pin pcm->private_data, issue USBDEVFS_DISCONNECT so snd_card_free_when_closed() returns without waiting, then close. That close deterministically hits freed struct usbtv in snd_usbtv_pcm_close(); no attacker-uncontrollable race or layout is required. PR:L - USBDEVFS_DISCONNECT has no capable() check, only write access to /dev/bus/usb that udev uaccess/plugdev rules grant seat users, and snd_pcm_open() has no capability gate on the capture PCM node (audio group/uaccess). An unprivileged local account suffices; init-namespace root is not required. UI:N - The attacker performs open, disconnect, and close on their own fds against an already-attached USBTV007 (capture kiosk, digitizer, or surveillance station). No separate victim action such as plugging a device or clicking is required during exploitation. S:U - The slab use-after-free of struct usbtv and the PCM close/trigger callbacks run entirely in the host kernel. This is ordinary local privilege escalation, not a VM, IOMMU, or sandbox boundary escape. C:H - snd_usbtv_pcm_close() and snd_usbtv_card_trigger() read fields of the kfree()'d struct usbtv (snd_stream, snd_trigger, snd_bulk_urb). Reclaiming that slab lets the attacker supply pointer-rich state those paths then read, enabling kernel disclosure as with other heap UAFs. I:H - Close can atomic_set snd_stream and schedule_work() on the freed usbtv.snd_trigger work_struct, and snd_pcm_drop may call trigger STOP on the same freed object. A reclaimed fake usbtv plus workqueue execution is a control-flow hijack primitive, so integrity impact is High. A:H - Use-after-free of struct usbtv in snd_usbtv_pcm_close() (and in usbtv_audio_urb_received if capture was running when USB core kills the URB after disconnect) oopses or panics the kernel. The attacker can repeat disconnect/close to crash on demand, so availability impact is High.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 63ddf68de52efaac40a9287e44266ac30e71dd36 to 97b5e8b22b98e287481a97a9a4cfebbb348738a5 (excl.)
  • affected from 63ddf68de52efaac40a9287e44266ac30e71dd36 to 503be26ff888cb3576e55d251895d290e8146f27 (excl.)
  • affected from 63ddf68de52efaac40a9287e44266ac30e71dd36 to be0f7745f883386e5263b4e475686a81dfa87175 (excl.)
  • affected from 63ddf68de52efaac40a9287e44266ac30e71dd36 to 67374e3a00814dcdd46e9feca61f69f7f2d81957 (excl.)
  • affected from 63ddf68de52efaac40a9287e44266ac30e71dd36 to 239d1683e08b2aee2a15ef35706e1ea9a76681d8 (excl.)
  • affected from 63ddf68de52efaac40a9287e44266ac30e71dd36 to 7690a86b193271322cd31ab77349a87aa10858e4 (excl.)
  • affected from 63ddf68de52efaac40a9287e44266ac30e71dd36 to 1618257cb0aba4ce342ae8c0228368c24161f5fb (excl.)
  • affected from 63ddf68de52efaac40a9287e44266ac30e71dd36 to fc530fe168bb2b745a93f553ad21fc25fd9cba3d (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 3.18 is affected
  • unaffected from 0 to 3.18 (excl.)
  • unaffected from 5.10.270 to 5.10.* (incl.)
  • unaffected from 5.15.221 to 5.15.* (incl.)
  • unaffected from 6.1.188 to 6.1.* (incl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.51 to 6.18.* (incl.)
  • unaffected from 7.2.5 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References