# CVE-2026-142913: ALSA: pcm: Protect delay DMA sync against concurrent HW\_FREE

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

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker with local access to an open PCM audio device can trigger a use-after-free in the Linux kernel ALSA PCM subsystem by racing DELAY/HWSYNC against HW\_FREE, causing memory corruption.

## Who should check

- Anyone running Linux \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< eb86ea542ca2cac9831dbed4dc8952adb1683302; \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< d34c692c6449f8db73c5b41edba70ecbab75c91f; \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< f27800a99e825cb642f32d9690c3772830e47a4d; \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f
- Anyone running Linux 5.16

## Description

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

ALSA: pcm: Protect delay DMA sync against concurrent HW\_FREE

A PCM DMA buffer must remain allocated until explicit DMA synchronization
finishes. snd\_pcm\_delay() calls snd\_pcm\_dma\_buffer\_sync() after dropping
the stream lock, without participating in the buffer-access exclusion
used by HW\_FREE.

With a managed NONCONTIG buffer requiring explicit sync, HW\_PARAMS can
allocate a separate runtime descriptor when the requested ring exceeds
the preallocation. In PREPARED state with mmap\_count zero, concurrent
HWSYNC and HW\_FREE calls on the same open PCM file can interleave:

1. HWSYNC checks the state in snd\_pcm\_delay() under the stream lock and
   releases that lock.
2. The sync helper fetches runtime-\>dma\_buffer\_p and enters
   snd\_dma\_noncontig\_sync() with that descriptor.
3. HW\_FREE takes the negative buffer-access count, checks PREPARED under
   the stream lock, releases the lock, and frees the DMA allocation and
   dynamic descriptor through snd\_pcm\_lib\_free\_pages().
4. The sync callback resumes and reads the freed descriptor.

The stream lock does not cover the allocation's release, and the sync
operation has no positive buffer-access count to prevent it. The stale
read causes a use-after-free in snd\_dma\_noncontig\_sync(). DELAY uses the
same snd\_pcm\_delay() path.

Take a positive buffer-access count before checking the state and keep it
until the DMA sync finishes, as the transfer and mmap paths already do.
HW\_FREE then returns -EBUSY while this access is active. If a buffer
writer has already entered, snd\_pcm\_delay() returns -EBUSY before using
the buffer. Keep the sync outside the stream lock and balance the count
on the state-error path as well.

KASAN report as below:

    BUG: KASAN: slab-use-after-free in snd\_dma\_noncontig\_sync+0x295/0x310 \[snd\_pcm\]
    Read of size 4 at addr ffff888108f58584 by task pcm-uaf-fixture/487

    CPU: 1 UID: 0 PID: 487 Comm: pcm-uaf-fixture Not tainted 7.2.0-rc6-pmb-alsa-functional-v2+ \#1 PREEMPT(lazy)
    Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch\_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
    Call Trace:
     \<TASK\>
     dump\_stack\_lvl+0x93/0xd0
     print\_report+0xce/0x630
     ? snd\_dma\_noncontig\_sync+0x295/0x310 \[snd\_pcm\]
     ? srso\_alias\_return\_thunk+0x5/0xfbef5
     ? \_\_virt\_addr\_valid+0x20d/0x410
     ? snd\_dma\_noncontig\_sync+0x295/0x310 \[snd\_pcm\]
     kasan\_report+0xe0/0x110
     ? snd\_dma\_noncontig\_sync+0x295/0x310 \[snd\_pcm\]
     ? \_\_pfx\_snd\_dma\_noncontig\_sync+0x10/0x10 \[snd\_pcm\]
     snd\_dma\_noncontig\_sync+0x295/0x310 \[snd\_pcm\]
     ? \_\_pfx\_snd\_dma\_noncontig\_sync+0x10/0x10 \[snd\_pcm\]
     snd\_dma\_buffer\_sync+0xc9/0x110 \[snd\_pcm\]
     snd\_pcm\_delay+0x3bd/0x550 \[snd\_pcm\]
     snd\_pcm\_common\_ioctl+0x1e7/0x3aa0 \[snd\_pcm\]
     ? srso\_alias\_return\_thunk+0x5/0xfbef5
     ? do\_vfs\_ioctl+0x1f5/0x1280
     ? \_\_pfx\_do\_vfs\_ioctl+0x10/0x10
     ? ioctl\_has\_perm.constprop.0.isra.0+0x34f/0x500
     ? \_\_pfx\_snd\_pcm\_common\_ioctl+0x10/0x10 \[snd\_pcm\]
     ? srso\_alias\_return\_thunk+0x5/0xfbef5
     snd\_pcm\_ioctl+0x76/0xb0 \[snd\_pcm\]
     ? \_\_pfx\_snd\_pcm\_ioctl+0x10/0x10 \[snd\_pcm\]
     \_\_x64\_sys\_ioctl+0x163/0x1d0
     do\_syscall\_64+0x115/0x6a0
     entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
    RIP: 0033:0x7f1cae7ab91b
    Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 \<89\> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
    RSP: 002b:00007ffe12d544f0 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
    RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f1cae7ab91b
    RDX: 0000000000000000 RSI: 0000000000004122 RDI: 0000000000000003
    RBP: 00000000000001ee R08: 0000000000000073 R09: 00000000ffffffff
    R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
    R13: 0000000000000001 R14: 00005584f32b1398 R15: 00005584f32b2ce8
     \</TASK\>

    Allocated by task 487:
     kasan\_sa
---truncated---

## Affected and fixed versions

- Linux: \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< eb86ea542ca2cac9831dbed4dc8952adb1683302; \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< d34c692c6449f8db73c5b41edba70ecbab75c91f; \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< f27800a99e825cb642f32d9690c3772830e47a4d; \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f (cvelist)
- Linux: 5.16 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-142913.md
Affected: Linux >= a25684a956468ee8bbbee44649e41e5d447e5adc, < eb86ea542ca2cac9831dbed4dc8952adb1683302; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < d34c692c6449f8db73c5b41edba70ecbab75c91f; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < f27800a99e825cb642f32d9690c3772830e47a4d; >= a25684a956468ee8bbbee44…
Fixed in: Linux 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f

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-142913 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< eb86ea542ca2cac9831dbed4dc8952adb1683302; \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< d34c692c6449f8db73c5b41edba70ecbab75c91f; \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< f27800a99e825cb642f32d9690c3772830e47a4d; \>= a25684a956468ee8bbbee44649e41e5d447e5adc, \< 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f; Linux 5.16.

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

Yes. Fixed in Linux 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f. Upgrade Linux to 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f or later.

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

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/eb86ea542ca2cac9831dbed4dc8952adb1683302>
- other: <https://git.kernel.org/stable/c/d34c692c6449f8db73c5b41edba70ecbab75c91f>
- other: <https://git.kernel.org/stable/c/f27800a99e825cb642f32d9690c3772830e47a4d>
- other: <https://git.kernel.org/stable/c/50f413b83b31ea8d8ee4276165ab95ed5ab0e10f>

## 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-142913>

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