CVE-2026-142913
ALSA: pcm: Protect delay DMA sync against concurrent HW_FREE
AI summary AI generated
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.
Mitigation
- Upgrade Linux to 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f or later.
Who should check
- Anyone running Linux >= a25684a956468ee8bbbee44649e41e5d447e5adc, < eb86ea542ca2cac9831dbed4dc8952adb1683302; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < d34c692c6449f8db73c5b41edba70ecbab75c91f; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < f27800a99e825cb642f32d9690c3772830e47a4d; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f
- Anyone running Linux 5.16
Vulnerability facts
- Affected
- Linux >= a25684a956468ee8bbbee44649e41e5d447e5adc, < eb86ea542ca2cac9831dbed4dc8952adb1683302; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < d34c692c6449f8db73c5b41edba70ecbab75c91f; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < f27800a99e825cb642f32d9690c3772830e47a4d; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f; Linux 5.16
- Fixed in
- Linux 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= a25684a956468ee8bbbee44649e41e5d447e5adc, < eb86ea542ca2cac9831dbed4dc8952adb1683302; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < d34c692c6449f8db73c5b41edba70ecbab75c91f; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < f27800a99e825cb642f32d9690c3772830e47a4d; >= a25684a956468ee8bbbee44649e41e5d447e5adc, < 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f | — | cvelist |
| Linux | 5.16 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
Technologies
References
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| UNSCORED | CVE-2026-142948 i2c: designware: queue only one read command for block reads | Linux kernel | ||
| UNSCORED | CVE-2026-142947 cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails | Linux kernel | ||
| UNSCORED | CVE-2026-142946 ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142945 ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142944 ASoC: amd: acp-es8336: Use an owned codec device reference | Linux kernel |