CVE-2026-139792: Linux kernel ALSA lets a second process attach to an OSS PCM stream with O_APPEND, freeing pages that are still mapped

ByLinuxtastic

December 2, 2026 #CVE, #Linux Kernel

ALSA’s PCM core allows a second opener to join an existing stream when it passes O_APPEND; the dmix plugin uses that to share a device. The kernel CNA record says “this mode isn’t supposed to be used for OSS: the OSS stream allows re-configuration via its hw_params/hw_refine procedure even while it’s being mmapped, so it implies the usage of only a single stream. Because of this assumption, the sanity check is skipped for OSS streams, and if user may attach to an existing OSS stream with O_APPEND, it may result in a UAF of the mapped pages which could be used as a privilege escalation exploit.” The fix prohibits O_APPEND on OSS streams, which the OSS layer itself never used. The CNA scores it 7.0; Red Hat 7.8 Important. Where the snd_pcm_oss module is loaded, upgrade to 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later; everywhere else, keep the OSS emulation modules unloaded and blacklisted, which costs nothing on a PipeWire or PulseAudio desktop.

CVE-2026-139792 at a glance.

ComponentLinux kernel, ALSA PCM core (sound/core/pcm.c, pcm_local.h, pcm_native.c) as used by the OSS emulation layer (snd_pcm_oss)
Affected versionsfrom 0df63e44c3e3: 2.6.18 up to 5.10 before 5.10.275, 5.15 before 5.15.226, 6.1 before 6.1.193, 6.6 before 6.6.163, 6.12 before 6.12.119, 6.18 before 6.18.65, 7.3 before 7.3.6 and 7.4 before 7.4-rc2
Fixed inmainline 7.4-rc2 (commit 9017bc3d, the one Debian cites) and stable 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6. The commit page could not be read on 2 December 2026 (GitHub rate-limited the reader and the patch view, git.kernel.org refuses it), so the author and line counts are not stated; the record describes the change: an open of an OSS stream with O_APPEND is refused, so an OSS stream always has a single owner
SeverityKernel CNA CVSS 3.1 7.0 (AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD shows the CNA metric only; Red Hat Important, 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, draft, CWE-825 expired pointer dereference), bug 2586577 “ALSA: privilege escalation via O_APPEND on OSS streams”; Ubuntu not consulted (its page refused the automated reader)
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00238 (16th percentile) on 1 December 2026
Who is exposedA host with the OSS emulation module loaded (snd_pcm_oss, which provides /dev/dsp and /dev/adsp) and a local user who can open those nodes, normally membership of the audio group or a logind seat. Red Hat: the path “relies on legacy OSS PCM functionality not utilized by default sound architectures”; PipeWire and PulseAudio do not use it
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

When an ALSA PCM device is opened with O_APPEND the core does not create a new substream but attaches the opener to one that is already running, and both file descriptors then share the same hardware buffer; the dmix and dshare plugins depend on that. The core protects the shared buffer with a check that refuses reconfiguration while more than one opener is attached, so neither side can pull the ring buffer out from under the other.

The OSS emulation layer sits on top of the same substreams but with different rules: an OSS application can change the stream parameters through the emulated SNDCTL ioctls at any time, including while the buffer is mmapped, and the code was written on the assumption that an OSS stream has exactly one owner. The record says the multi-opener sanity check was therefore skipped for OSS streams. Combine the two and a second process that opens /dev/dsp with O_APPEND while the first has it mmapped can trigger a reconfiguration that frees the buffer pages the first process still has mapped; the record calls that a use-after-free of mapped pages that “could be used as a privilege escalation exploit”, since whatever the kernel allocates in those pages next is visible to, and writable by, the attacker’s mapping.

The fix refuses O_APPEND on OSS streams outright. The record notes the OSS layer never used that flag itself, so nothing legitimate breaks; the only programs affected are ones trying to attach to someone else’s OSS stream. Neither GitHub (rate-limited on the commit page and the patch view) nor git.kernel.org (refuses automated readers) would show commit 9017bc3d on 2 December 2026, so the author, date and line counts are not quoted; Debian places it in 7.4-rc2 and the CNA lists seven stable backports, down to 5.10. The CNA and Red Hat differ on attack complexity, 7.0 against 7.8, and agree on everything else.

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. Every distribution builds the OSS emulation modules; modern desktops do not load them unless something opens /dev/dsp, and many ship a blacklist. “Vulnerable” below describes the package.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (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 DSAunstable 7.3.6-1
UbuntuNot consulted for this page: ubuntu.com refused the automated reader on 2 December 2026 (the bulk list on run 18 onward and this page twice); the Ubuntu priority is not stated here—
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8 (bug 2586577, CWE-825); kernel and kernel-rt affected in RHEL 7, 8, 9 and 10 and every OpenShift 4/5 RHCOS image; RHEL 6 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 apply5.10.275 / 5.15.226 / 6.1.193 / 6.6.163 / 6.12.119 / 7.3.6 or later

How to check

Two questions settle most hosts: is the OSS emulation module loaded or loadable on demand, and who can open the audio device nodes. The kernel version decides whether the fix is in.

# 1. is OSS emulation present (module loaded, /dev/dsp nodes exist, or the module can still be auto-loaded)
lsmod | grep -E '^snd_(pcm|mixer)_oss '
ls -l /dev/dsp* /dev/adsp* /dev/mixer* 2>/dev/null
grep -rhE 'snd[-_]pcm[-_]oss' /etc/modprobe.d/ 2>/dev/null

# 2. the running kernel: fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later
uname -r

# 3. who can open the sound devices (audio group members and logind seat users)
ls -l /dev/snd/pcmC0D0p 2>/dev/null; getent group audio

No snd_pcm_oss module, no /dev/dsp and a blacklist entry means the OSS path does not exist on the host and the page does not apply, which is the state of most current desktops and every headless server. A host where the module is loaded or will auto-load on first open, on an affected kernel, with more than one user able to reach the device nodes, is exposed; a single-user laptop is exposed only to code already running as that user, which is a smaller concern than the vector suggests.

How to fix it

Update the kernel and reboot. Where OSS compatibility is not needed, which is almost everywhere since PulseAudio and PipeWire talk to ALSA directly, unloading and blacklisting the OSS emulation modules removes the code path and is a sensible permanent setting; osspd or PipeWire’s own compatibility shims can serve the rare OSS-only program without the kernel modules.

# Debian forky / sid (7.3.6-1 carries the fix); trixie and bookworm: watch the tracker row above
apt update && apt install linux-image-amd64 && systemctl reboot
# RHEL / Rocky / Alma: no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot
# Ubuntu: no USN yet; once the linux package is released
apt update && apt install linux-generic && systemctl reboot
# Interim or permanent: drop the OSS emulation modules and keep them from auto-loading
modprobe -r snd_pcm_oss snd_mixer_oss snd_seq_oss 2>/dev/null
printf 'blacklist snd_pcm_oss\nblacklist snd_mixer_oss\nblacklist snd_seq_oss\n' > /etc/modprobe.d/no-oss.conf

Blacklisting the OSS modules is the mitigation the record’s own description points at: no OSS stream, no second opener. It is permanent-grade on any host that does not run OSS-only software, and it leaves ALSA’s own O_APPEND sharing, which dmix needs, untouched. What not to do: do not remove users from the audio group or tighten /dev/snd permissions on a desktop to close this; logind grants seat users device access regardless, and the change breaks sound without closing the path for the logged-in user.

Sources

  • CVE-2026-139792 at CVE.org — the kernel CNA record: the “this mode isn’t supposed to be used for OSS” paragraph, the “UAF of the mapped pages which could be used as a privilege escalation exploit” sentence, the 2.6.18 lower bound and the git ranges (30 November 2026)
  • Fix commit 9017bc3d (mainline, 7.4-rc2) and the seven stable backports in the record; neither GitHub (rate-limited) nor git.kernel.org (refuses automated readers) could be read on 2 December 2026, so the author and line counts are not stated here
  • NVD entry — Received on 30 November 2026; shows the CNA’s metric as its only score, no NVD score or CWE on 2 December 2026
  • Distribution trackers: Debian (bookworm and trixie vulnerable, forky and sid fixed in 7.3.6-1) · Ubuntu (refused the automated reader on 2 December 2026) · Red Hat (Important 7.8, bug 2586577, CWE-825, RHEL 7/8/9/10 affected) · SUSE and Alpine (both refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00238 (percentile 0.160) 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.