CVE-2026-139351: Linux kernel ALSA core frees a device’s resources while another thread is still waking its reference count

ByLinuxtastic

December 2, 2026 #CVE, #Linux Kernel

ALSA’s core gained a small reference-counting helper in the 7.2 cycle, snd_refcount, used to let a thread wait until every user of a sound resource has let go before destroying it. The kernel CNA record says the wait and the release are not serialised: “snd_refount_put() calls wake_up() after atomic_dec_and_test(), but wait_event() in snd_refcount_sync() checks the condition via atomic_test() without serialization, hence the thread that called snd_refcount_sync() can continue immediately to release the resource before another thread calls wake_up().” The waker then touches freed memory, “a UAF in a very slight time window”. Red Hat rates it Important at 7.8 as a local escalation for an unprivileged user with access to a sound device. On 7.2 and 7.3 kernels with sound hardware and local users who are not root, upgrade to 7.3.6 or later and reboot; kernels before 7.2 do not have the helper.

CVE-2026-139351 at a glance.

ComponentLinux kernel, ALSA core (include/sound/core.h and sound/core/misc.c: snd_refcount_put() and snd_refcount_sync()), module snd, beneath every sound driver
Affected versionsfrom dcca9b6064c3, the commit that introduced snd_refcount: 7.2 up to 7.3 before 7.3.6, and 7.4 before 7.4-rc1 by the record’s version list. The record also carries five git ranges whose start points are other commits, which is the pattern of a helper backported into older stable trees and fixed there in the same release; the record names no numbered release for them, so a stable kernel below 7.2 that has snd_refcount_sync in sound/core/misc.c should be treated as in range until its tree carries the fix
Fixed inmainline 7.4-rc1 (commit 6904743a, “Serialize snd_refcount put and sync”: a spinlock taken in both functions) and stable 7.3.6; seven commits in the record
SeverityRed Hat Important, CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, draft, CWE-366 race condition within a thread), bug 2586885 “Use-after-free in ALSA subsystem via reference counting race condition”; the kernel CNA gives no score and NVD (Received, 30 November) carries none; Ubuntu Medium; SUSE could not be read on 2 December 2026
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00206 (11th percentile) on 1 December 2026
Who is exposedMachines with a sound card, on an affected kernel, where users who are not root can open ALSA devices: desktops and laptops through the logind ACL on /dev/snd/*, shared workstations through the audio group. Red Hat’s statement: a local unprivileged user could use the race to corrupt kernel memory and “possibly escalate privileges or cause an unrecoverable crash”; audio hardware is seldom configured on enterprise servers but ALSA is in the standard build. Red Hat marks its RHEL 9 and 10 kernels affected
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

The helper is a counter and a wait queue. Users call snd_refcount_put() when they are done; the thread tearing the resource down calls snd_refcount_sync(), which sleeps on the wait queue until the counter reaches zero and then frees the resource. The put side decrements atomically and, if it brought the counter to zero, wakes the waiter. The two steps on the put side are separate, and nothing stops the waiter running between them: the atomic decrement lands, the waiter’s wait_event() re-checks the counter, sees zero, returns and frees, and only then does the putter reach wake_up() on a wait queue that lives inside the memory just freed.

The window is small, which the record says plainly, but the two threads are an application closing a device and a driver or another application tearing down the same object, both of which an unprivileged user with a sound device can drive in a loop. The write that follows is wake_up() on freed memory, which on a slab that has been reused is a write into whatever now occupies it; that is the basis of the Important rating, and it is why the score matches the other local ALSA escalations of the same week rather than a plain crash.

The fix adds a spinlock that both snd_refcount_put() and snd_refcount_sync() take, so the decrement and the wake-up are one step from the waiter’s point of view. It touches include/sound/core.h and sound/core/misc.c. git.kernel.org refuses automated readers, so the diff is described from the CNA’s copy of the commit message.

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 helper exists only in 7.2 and later, and in trees that backported it.

DistributionStatusFixed package
AlpineNot consulted for this page—
DebianNot affected in bookworm (6.1.192-3) and trixie (6.12.118-1): “vulnerable code not present”; forky and sid (7.3.6-1) fixed; no DSAunstable 7.3.6-1
UbuntuMedium; the linux package is needs evaluation on every release from 14.04 to 26.10 on 2 December 2026 (page updated 2 December), nothing released; by the record only 7.2 and later kernels are in rangenothing on 2 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8 (bug 2586885, CWE-366); kernel affected in RHEL 9 and 10; RHEL 6, 7, 8, kernel-rt and every OpenShift RHCOS image not affected; no errata on 2 December 2026—
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply. A tree below 7.2 is affected only if it backported snd_refcount7.3.6 or later

How to check

Is the kernel in range, does it have the helper at all, is there a sound card, and who can open it. The helper check matters for vendor kernels whose version number says one thing and whose source says another.

# 1. the running kernel: affected from 7.2, fixed in 7.3.6 or later
uname -r

# 2. does this kernel contain the helper (the symbol is exported from the snd module)
grep -E ' snd_refcount_(sync|put)$' /proc/kallsyms 2>/dev/null || echo "snd_refcount not present: not in range"

# 3. is there a sound card, and who can open its devices
cat /proc/asound/cards 2>/dev/null
ls -l /dev/snd/ 2>/dev/null | head
getfacl /dev/snd/controlC0 2>/dev/null | grep -E '^user:[^:]'
getent group audio

A kernel without the symbols is not in range whatever its version. One with them, below 7.3.6, on a machine with a card in /proc/asound/cards and a non-root user holding an ACL or audio membership, is the exposed case; on a headless server with no card the code has no device to be reached through and the fix can wait for the normal cycle. The record’s race is driven from userspace through ordinary open and close calls, so there is no log line to look for.

How to fix it

Install the fixed kernel and reboot; the ALSA core is loaded with the sound stack and stays until the machine boots the new image. Until then, keep the sound devices away from untrusted accounts on shared machines.

# Debian forky / sid (7.3.6-1) carry the fix; bookworm and trixie are not affected
apt update && apt install linux-image-amd64 && systemctl reboot
# RHEL 9 / 10, Rocky, Alma: no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot
# Ubuntu: needs evaluation on 2 December 2026; once the linux package is released
apt update && apt install linux-generic && systemctl reboot
# Stop-gap on a shared machine with a sound card: take the devices away from unprivileged users until the reboot
chmod 600 /dev/snd/* && setfacl -b /dev/snd/*

What not to do: do not blacklist snd on a desktop to close the window, since every sound driver depends on it and the machine loses audio entirely; and do not add users to the audio group to work around the stop-gap, which is the configuration the score assumes. The ACL that logind grants to the console user is restored on the next login, so the stop-gap is for the hours until the reboot, not a permanent setting.

Sources

  • CVE-2026-139351 at CVE.org — the kernel CNA record: the put-and-sync ordering, the “very slight time window”, the files, the git and version ranges (30 November 2026)
  • Fix commit 6904743a (mainline 7.4-rc1, the commit Debian cites) and the stable backports 182e3635, e2c1efb2, d27b48f6, fb923220, 6939ffcf, e457ae1f; git.kernel.org refuses automated readers, so the diff is described from the CNA’s copy of the commit message
  • NVD entry — Received on 30 November 2026; no CVSS metric, CWE or CPE on 2 December 2026
  • Distribution trackers: Debian (bookworm and trixie not affected, unstable fixed in 7.3.6-1) · Red Hat (Important 7.8, bug 2586885, CWE-366; RHEL 9 and 10 affected; the statement on local unprivileged users and server audio) · Ubuntu (Medium, needs evaluation; read from the HTML page, the JSON endpoint refused) · SUSE (refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00206 (percentile 0.113) on 1 December 2026

Related reading

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.