ALSA fixed a use-after-free in snd_pcm_drain() earlier this year by caching a draining substream’s parameters, but the kernel CNA record says that fix left a gap: “we check the draining substream (to_check) again in the loop and remove it from the queue only when it’s still present. It means, however, that the wait queue entry won’t be removed if the substream went out of the link beforehand, hence a stale wq entry remains. Later on, this can be woken up, and this may hit a UAF, too. The problem surfaced more due to the recent change to call snd_pcm_unlink() earlier.” The new fix “introduce[s] a refcount to the snd_pcm_runtime that indicates the substream is being accessed / used”, synced at release via snd_refcount_sync(), and moves the wait-queue setup “before the group unref” to avoid an enqueue/wakeup race. The CNA and Red Hat score it 7.8. On a multi-user or workstation host where non-root accounts can open the sound devices, upgrade to a kernel at or above 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 6.19.9 or 7.3.6 and reboot.
CVE-2026-139361 at a glance.
| Component | Linux kernel, ALSA PCM core (include/sound/pcm.h, sound/core/pcm.c, sound/core/pcm_native.c): the drain/unlink race on linked PCM substreams |
| Affected versions | introduced by the earlier fix 9b1dbd69 (“ALSA: pcm: fix use-after-free on linked stream runtime in snd_pcm_drain()”), which was backported to stable, so the affected ranges start mid-series: 5.10.253–5.10.x, 5.15.220–5.15.225, 6.1.167–6.1.192, 6.6.130–6.6.162, 6.12.78–6.12.118, 6.18.19–6.18.64, 6.19.9–6.19.x, and 7.0 to 7.4-rc1 |
| Fixed in | mainline 7.4-rc1 (commit 91d0048a, the one Debian cites) and stable 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 (and the 6.19.9 and 5.10 series). The fix adds a runtime refcount synced at snd_pcm_release_substream() and moves the wait-queue setup before the group unref; three files, +24/−33 |
| Severity | Kernel CNA CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD shows the CNA metric; Red Hat Important, 7.8 on the same vector (draft, CWE-825, use after free), bug 2587047 “Privilege escalation via use-after-free in ALSA audio subsystem”; Ubuntu Medium, no score |
| Exploited in the wild | Not on the CISA KEV catalogue (2026.11.30). EPSS 0.00182 (8th percentile) on 1 December 2026 |
| Who is exposed | A host where a non-root account can open the PCM sound devices and link two substreams, then drain and unlink them. Red Hat’s statement: “Default Red Hat Enterprise Linux server installations rarely expose sound hardware”, but “multi-user systems or workstation deployments where non-root accounts have access to /dev/snd/pcm* character devices remain susceptible”, and it “strictly requires local execution access”. A headless server with no sound card and no one in the audio group is not in the path |
| Published | CVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026 |
What it is
ALSA lets an application link several PCM substreams into a group so they start, stop and drain together. Draining, waiting for queued audio to finish playing, is done by one substream on behalf of the group, and an earlier bug let a linked substream be unlinked by another member during the drain, freeing the runtime the drain was still reading. The fix for that, commit 9b1dbd69, cached the draining substream’s parameters so the drain would not touch freed memory, and in the drain loop re-checked the substream and removed it from the wait queue only if it was still present in the link.
The record describes what that left behind: if the substream had already left the link before the loop re-checked it, the wait-queue entry was never removed, so a stale entry stayed on the queue. Something woken later could then wake that stale entry, into memory that had been freed, which is a use-after-free of its own. The record notes the problem “surfaced more due to the recent change to call snd_pcm_unlink() earlier”, which widened the window between the substream leaving the link and the loop noticing. The trigger is local: an unprivileged process that can open the PCM devices, link substreams and drive the drain-and-unlink sequence.
The new fix, by Takashi Iwai, adds a refcount to snd_pcm_runtime that marks the substream as in use and is synced with snd_refcount_sync() in snd_pcm_release_substream() before the memory is released, so accessors have finished before anything is freed; it partially reverts the former fix’s comments and code, which no longer fit, and moves the wait-queue entry setup and prepare_to_wait() before the group unref to close an enqueue/wakeup race as well. The Fixes: tag is 9b1dbd69 itself, and because that commit was Cc: stable and backported widely, this CVE’s affected ranges start mid-series rather than at a release boundary. git.kernel.org refuses automated readers, so the commit was read on GitHub.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. The flaw rides a stable backport, so a kernel is affected only in the sub-ranges after the earlier fix landed; the practical filter is whether non-root users can open the sound devices.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026 | — |
| Debian | bookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) vulnerable; fixed in forky and sid (7.3.6-1); no DSA (both stable versions fall inside the affected sub-ranges) | unstable 7.3.6-1 |
| Ubuntu | Medium, no Ubuntu CVSS; linux needs evaluation in every supported release; no USN (the Ubuntu page refused the automated reader on 2 December) | nothing released on 2 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.8 (bug 2587047, CWE-825); per-product fix states were not yet published on 2 December 2026 (the hydra record carried the rating and statement but no package table); the statement bounds exposure to hosts whose non-root users can reach /dev/snd/pcm* | nothing released on 2 December 2026 |
| openSUSE/SLE | Not consulted: suse.com refused the automated reader on 2 December 2026 (client error) | — |
| Fedora, Arch; self-built kernels | Not consulted; upstream stable versions apply | 5.15.226 / 6.1.193 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 or later |
How to check
Two questions: is the running kernel inside one of the affected sub-ranges, and can a non-root account open the PCM devices here. A headless server with no sound hardware and an empty audio group is not in the path.
# 1. the running kernel: affected only in the sub-ranges after the earlier fix was backported
uname -r # e.g. 6.1.167-6.1.192, 6.6.130-6.6.162, 6.12.78-6.12.118, 6.18.19-6.18.64 are affected
# 2. is there a sound device, and who can open the PCM character devices
ls -l /dev/snd/pcm* 2>/dev/null # the nodes; note their group and mode
getent group audio # who is in the audio group
aplay -l 2>/dev/null | head # whether any playback hardware existsA kernel at or above the fixed version for its series is done; a kernel below the sub-range’s lower bound, that is, one that never took the earlier 9b1dbd69 backport, does not have this bug either, which is why the affected ranges are bounded at both ends. A host with no /dev/snd/pcm* nodes, or where only root and a system service account can open them, is not reachable by an ordinary user; a workstation or a multi-user host where interactive users are in the audio group is the case Red Hat describes. The log signature is a KASAN slab-use-after-free in the PCM drain or wait-queue wakeup path (snd_pcm_drain, snd_pcm_release_substream) after linked-stream activity.
How to fix it
Install the fixed kernel and reboot. Debian forky and sid had 7.3.6-1; bookworm, trixie, Ubuntu and Red Hat had it pending. The record lists no mitigation, but limiting who can open the sound devices narrows who can reach it.
# Debian forky / sid (bookworm and trixie once a security update names this CVE)
apt update && apt install linux-image-amd64 && systemctl reboot# Ubuntu, RHEL family, SUSE: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
dnf update kernel && systemctl reboot
zypper patch && systemctl reboot# Interim narrowing: keep untrusted local accounts out of the audio group on a multi-user host
gpasswd -d <user> audio # remove a user from the audio group
ls -l /dev/snd/pcm* # confirm non-members cannot open the nodesOn a server, the honest mitigation is that there is usually nothing to mitigate: no sound hardware, no PCM nodes, no users in the audio group, so the exposure is nil until someone adds a card and grants access. On a multi-user host that does have audio, removing untrusted accounts from the audio group keeps them from opening the devices, which closes the path without a fix. What not to do: do not assume an older kernel is safe only because it is old, as the affected range has a lower bound set by the earlier backport, not by age alone; check the sub-range. On a workstation that real users log into, the fixed kernel is the answer.
Sources
- CVE-2026-139361 at CVE.org — the kernel CNA record: the “the wait queue entry won’t be removed if the substream went out of the link beforehand” and “introduce a refcount to the snd_pcm_runtime” sentences, the reference to the earlier fix 9b1dbd69, the git ranges, the three sound-core files (30 November 2026)
- Fix commit 91d0048a (mainline, 7.4-rc1) and the stable backports in the record; git.kernel.org refuses automated readers, so it was read on GitHub: Takashi Iwai,
Fixes:9b1dbd69(the earlier drain UAF fix, itselfCc: stable, which is why the affected ranges start mid-series), three files +24/−33 - NVD entry — Received on 30 November 2026; shows the CNA’s 7.8 as its only metric, no NVD score or CWE on 2 December
- Distribution trackers: Debian (bookworm and trixie vulnerable, forky and sid fixed in 7.3.6-1) · Ubuntu (Medium; needs evaluation; page not reachable on 2 December) · Red Hat (Important 7.8, bug 2587047, no package table yet) · SUSE (not reachable on 2 December)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00182 (percentile 0.081) on 1 December 2026
Related reading
- CVE-2026-139359: Linux kernel Soft-RoCE frees a queue pair that a type 2 memory window still references — the same day, another reference-counting fix for a use-after-free
- CVE-2026-100016: Linux kernel ALSA compressed-audio device lets a gapless track change shrink the buffer under a stale write count — the last ALSA entry on this site, another local sound-device flaw
- CVE-2026-139219: Linux kernel counts socket-buffer references in sixteen bits, so about 65,537 clones make a shared packet buffer look private and it is freed while clones still point at it — the highest-ranked of the same day’s set
- CVE-2026-99477: Linux kernel PAGEMAP_SCAN takes a freed hugetlb lock when the scanned process exits — another local use-after-free from a race
- CVE-2026-99583: Linux kernel SCTP drops the last reference to a shared key while migrating queued chunks to a new socket — a reference released a step too early
- The Kernel — why a fix for one use-after-free can open another, and what a refcount sync is for
This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

