CVE-2026-142800: ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect

Published Dec 3, 2026
·
Updated

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

ALSA: control: Fix UAF in sndctlelemadd() on card disconnect

A use-after-free can be triggered via SNDRVCTLIOCTLELEMADD when a USB audio card is disconnected while an ELEMADD ioctl is in flight.

The reproducer parks the ioctl thread inside copyfromuser() using userfaultfd, then tears down the USB device. Unlike every other ALSA control user handler (ELEMINFO, ELEMREAD, ELEMWRITE, TLV), sndctlelemadduser() never calls sndpowerrefandwait(), so the parked thread holds no power reference. sndcarddisconnect() therefore cannot observe it via sndpowersyncref() and proceeds unimpeded:

1. card->shutdown is set to 1 2. devicedel(&card->carddev) drops the kobject reference on the parent USB interface device (card->dev = &intf->dev) 3. The USB core drops its own reference and calls devicerelease(), freeing the struct usbinterface, including the embedded struct device that card->dev points to

When the userfaultfd is resolved and the thread resumes, sndctlelemadd() acquires controlsrwsem without checking card->shutdown and calls sndctladdreplace(). Because the reproducer pre-registered the same control, the CTLADDEXCLUSIVE path calls deverr(card->dev, ...) on the freed USB interface:

KASAN: slab-use-after-free Read in devprintk

Add a card->shutdown guard immediately after acquiring controlsrwsem in sndctlelemadd(). At that point card->shutdown is guaranteed to be stable: sndcarddisconnect() sets it before freeing the parent device, and it never transitions back to 0. A thread that acquired the lock before disconnect sees shutdown=0 and holds the write lock through the rest of the operation, preventing concurrent disconnect from proceeding past its own controlsrwsem-less shutdown=1 store (which happened earlier, outside the lock) from racing with deverr().

Affected Software

8 affected componentsFixes available
Linux Linux kernel
linux/kernel<5.10.275
5.10.275
linux/kernel>=5.11.0<5.15.226
5.15.226
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.10.275
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.226
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.61
  7. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2
  8. Compensating control

    In snd_ctl_elem_add(), add a card->shutdown guard immediately after acquiring controls_rwsem.

Event History

Dec 3, 2026
CVE Published
via MITRE·03:11 AM
Data Sourced
via MITRE·03:11 AM
Description
Data Sourced
via OSV·03:11 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger this issue?

A SNDRV_CTL_IOCTL_ELEM_ADD request must be in flight while a USB audio card is disconnected. The described reproducer stalls the ioctl in copy_from_user() with userfaultfd, disconnects the USB device, and then allows the ioctl to resume.

2

Which systems are exposed?

Systems using the Linux kernel with a USB audio card can be affected when an ALSA control ELEM_ADD ioctl races with card disconnection. The issue specifically involves snd_ctl_elem_add_user() lacking the power-reference handling used by other ALSA control user handlers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203