CVE-2026-46090: ALSA: aloop: Fix peer runtime UAF during format-change stop
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ALSA: aloop: Fix peer runtime UAF during format-change stop
loopback_check_format() may stop the capture side when playback starts with parameters that no longer match a running capture stream. Commit 826af7fa62e3 ("ALSA: aloop: Fix racy access at PCM trigger") moved the peer lookup under cable->lock, but the actual snd_pcm_stop() still runs after dropping that lock.
A concurrent close can clear the capture entry from cable->streams[] and detach or free its runtime while the playback trigger path still holds a stale peer substream pointer.
Keep a per-cable count of in-flight peer stops before dropping cable->lock, and make free_cable() wait for those stops before detaching the runtime. This preserves the existing behavior while making the peer runtime lifetime explicit.
The Linux kernel CVE team has assigned CVE-2026-46090 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.37 with commit 597603d615d2b19a9e451d8cfac24372856a522d and fixed in 6.12.88 with commit 03f52a9c170431e8f10e156b9dc0dae80b3e9198 Issue introduced in 2.6.37 with commit 597603d615d2b19a9e451d8cfac24372856a522d and fixed in 6.18.27 with commit bdd9503c3d222d2735b56c7a8b4422ccf3de6e5c Issue introduced in 2.6.37 with commit 597603d615d2b19a9e451d8cfac24372856a522d and fixed in 7.0.4 with commit 5d45e34bf001344e2966dabca1897561bbc9e913 Issue introduced in 2.6.37 with commit 597603d615d2b19a9e451d8cfac24372856a522d and fixed in 7.1-rc2 with commit e5c33cdc6f402eab8abd36ecf436b22c9d3a8aff
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46090
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
sound/drivers/aloop.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/03f52a9c170431e8f10e156b9dc0dae80b3e9198 https://git.kernel.org/stable/c/bdd9503c3d222d2735b56c7a8b4422ccf3de6e5c https://git.kernel.org/stable/c/5d45e34bf001344e2966dabca1897561bbc9e913 https://git.kernel.org/stable/c/e5c33cdc6f402eab8abd36ecf436b22c9d3a8aff