# CVE-2026-142800: ALSA: control: Fix UAF in snd\_ctl\_elem\_add() on card disconnect

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:11:30.459Z
- **Modified:** 2026-12-03T04:18:13.650Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 67c618c90679b03ff615a003852ca43752fd3ee4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bce4f04edc756f910ce1b87f3a505e6f2aa3da44; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d8421d0db7572cd4f3a2779584552bfb1575ad43; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9c4530b09d7a0129557ed01208f1b9360d23fe11; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d93d8307024eb141c8d1b127c01c6c33f1a2d6c4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 04d11c4db269e76ded488e650af9b70d523c6cee; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< aa7e5d71f90cb0048c0143ccdb6199acc2a6f66d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d4febca239be3c91498762dd0535a87d4af1eabc; \< 5.10.275; \< 5.15.226; …
- Anyone running Linux all versions

## Description

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

ALSA: control: Fix UAF in snd\_ctl\_elem\_add() on card disconnect

A use-after-free can be triggered via SNDRV\_CTL\_IOCTL\_ELEM\_ADD when a
USB audio card is disconnected while an ELEM\_ADD ioctl is in flight.

The reproducer parks the ioctl thread inside copy\_from\_user() using
userfaultfd, then tears down the USB device.  Unlike every other
ALSA control \_user handler (ELEM\_INFO, ELEM\_READ, ELEM\_WRITE, TLV\_\*),
snd\_ctl\_elem\_add\_user() never calls snd\_power\_ref\_and\_wait(), so the
parked thread holds no power reference.  snd\_card\_disconnect() therefore
cannot observe it via snd\_power\_sync\_ref() and proceeds unimpeded:

  1. card-\>shutdown is set to 1
  2. device\_del(&card-\>card\_dev) drops the kobject reference on the
     parent USB interface device (card-\>dev = &intf-\>dev)
  3. The USB core drops its own reference and calls device\_release(),
     freeing the struct usb\_interface, including the embedded struct
     device that card-\>dev points to

When the userfaultfd is resolved and the thread resumes,
snd\_ctl\_elem\_add() acquires controls\_rwsem without checking
card-\>shutdown and calls \_\_snd\_ctl\_add\_replace().  Because the
reproducer pre-registered the same control, the CTL\_ADD\_EXCLUSIVE
path calls dev\_err(card-\>dev, ...) on the freed USB interface:

  KASAN: slab-use-after-free Read in \_\_dev\_printk

Add a card-\>shutdown guard immediately after acquiring controls\_rwsem
in snd\_ctl\_elem\_add().  At that point card-\>shutdown is guaranteed to
be stable: snd\_card\_disconnect() 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 controls\_rwsem-less shutdown=1 store
(which happened earlier, outside the lock) from racing with dev\_err().

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 67c618c90679b03ff615a003852ca43752fd3ee4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bce4f04edc756f910ce1b87f3a505e6f2aa3da44; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d8421d0db7572cd4f3a2779584552bfb1575ad43; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9c4530b09d7a0129557ed01208f1b9360d23fe11; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d93d8307024eb141c8d1b127c01c6c33f1a2d6c4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 04d11c4db269e76ded488e650af9b70d523c6cee; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< aa7e5d71f90cb0048c0143ccdb6199acc2a6f66d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d4febca239be3c91498762dd0535a87d4af1eabc; \< 5.10.275; \< 5.15.226; … (cvelist)
- Linux: all versions (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142800. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142800.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 67c618c90679b03ff615a003852ca43752fd3ee4; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < bce4f04edc756f910ce1b87f3a505e6f2aa3da44; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < d8421d0db7572cd4f3a2779584552bfb1575ad43; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 67c618c90679b03ff615a003852ca43752fd3ee4, Linux 9c4530b09d7a0129557ed01208f1b9360d23fe11, Linux 04d11c4db269e76ded488e650af9b70d523c6cee, Linux 5.10.275, Linux 5.15.226

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142800 being exploited?

There is no confirmed exploitation: CVE-2026-142800 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142800?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142800?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 67c618c90679b03ff615a003852ca43752fd3ee4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bce4f04edc756f910ce1b87f3a505e6f2aa3da44; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d8421d0db7572cd4f3a2779584552bfb1575ad43; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9c4530b09d7a0129557ed01208f1b9360d23fe11; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d93d8307024eb141c8d1b127c01c6c33f1a2d6c4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 04d11c4db269e76ded488e650af9b70d523c6cee; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< aa7e5d71f90cb0048c0143ccdb6199acc2a6f66d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d4febca239be3c91498762dd0535a87d4af1eabc; \< 5.10.275; \< 5.15.226; …; Linux all versions.

### Is there a fix for CVE-2026-142800?

Yes. Fixed in Linux 67c618c90679b03ff615a003852ca43752fd3ee4, Linux 9c4530b09d7a0129557ed01208f1b9360d23fe11, Linux 04d11c4db269e76ded488e650af9b70d523c6cee, Linux 5.10.275, Linux 5.15.226. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142800?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/67c618c90679b03ff615a003852ca43752fd3ee4>
- other: <https://git.kernel.org/stable/c/bce4f04edc756f910ce1b87f3a505e6f2aa3da44>
- other: <https://git.kernel.org/stable/c/d8421d0db7572cd4f3a2779584552bfb1575ad43>
- other: <https://git.kernel.org/stable/c/9c4530b09d7a0129557ed01208f1b9360d23fe11>
- other: <https://git.kernel.org/stable/c/d93d8307024eb141c8d1b127c01c6c33f1a2d6c4>
- other: <https://git.kernel.org/stable/c/04d11c4db269e76ded488e650af9b70d523c6cee>
- other: <https://git.kernel.org/stable/c/aa7e5d71f90cb0048c0143ccdb6199acc2a6f66d>
- other: <https://git.kernel.org/stable/c/d4febca239be3c91498762dd0535a87d4af1eabc>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142800>

HTML: <https://flawdb.com/CVE-2026-142800> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142800>
