CVE-2026-139792
published high CVSS 3.1 · 7.0ALSA: pcm: Prevent O_APPEND open on OSS streams
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0df63e44c3e315ec0fe427ae62558231864108bd to < 906fbf130ae2706df3e05a1211d6bc11591c44db · 0df63e44c3e315ec0fe427ae62558231864108bd to < d53ca35ac1074e3c5b6c72b6dd30363507f5f09c · 0df63e44c3e315ec0fe427ae62558231864108bd to < b38ad5599d60172c549c85a91b49e13c588844fe · 0df63e44c3e315ec0fe427ae62558231864108bd to < 0322b67d7718964a524ed76efd7b7488545f4650 · 0df63e44c3e315ec0fe427ae62558231864108bd to < 401f58037219b7c5bfe9829d322ff367e51a64ac · 0df63e44c3e315ec0fe427ae62558231864108bd to < e0dbd2608acabeb4a76647423b32f13755875889 · 0df63e44c3e315ec0fe427ae62558231864108bd to < b15cb2a3c074f6b240fd71d3f27850c4ca9af475 · 0df63e44c3e315ec0fe427ae62558231864108bd to < 9017bc3d13da0ea4e63be618c87143a7b69185e6 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.18 (affected) · 0 to < 2.6.18 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Prevent O_APPEND open on OSS streams ALSA PCM core accepts to re-use the existing stream when O_APPEND is passed, and it's been used for dmix, etc. However, 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. For addressing it, this patch simply prohibits the O_APPEND behavior on the OSS stream. O_APPEND is never used for OSS layer itself, so this can't break for the right applications.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The attacker uses local character devices: open /dev/dsp (snd_pcm_oss_open), then open /dev/snd/pcmC*D*p with O_APPEND so snd_pcm_attach_substream() joins the OSS-owned substream, then mmap and SNDRV_PCM_IOCTL_HW_PARAMS on the native fd. No remote protocol carries any input. AC:H - Needs snd-pcm-oss loaded (substream->oss.oss is set only by OSS open). CONFIG_SND_PCM_OSS is off by default, and distros that build it as a module don't load it. /dev/dsp exists only after the module registers it and there is no devname alias, so the attacker cannot autoload it. Once it is loaded, the attach/mmap/HW_PARAMS sequence is deterministic. PR:L - snd_pcm_oss_open, snd_pcm_open, snd_pcm_attach_substream's O_APPEND branch and snd_pcm_hw_params have no capable() check. Access to /dev/dsp and /dev/snd/pcm* comes from the audio group or the logind uaccess ACL, which an ordinary local user holds. UI:N - The attacker opens both nodes, mmaps the data and issues HW_PARAMS on their own; no other user or admin action is needed beyond the module already being loaded. S:U - The freed DMA pages and the resulting memory corruption stay within the kernel's own security authority; this is a local privilege escalation, not a VM, IOMMU or sandbox boundary crossing. C:H - snd_pcm_hw_params skips the mmap_count check for OSS streams, so a larger buffer makes snd_pcm_lib_malloc_pages free the old one while remap_pfn_range PTEs (dma_direct_mmap, snd_dma_continuous_mmap) still map it. The user can read freed physical pages after the allocator reuses them for other kernel data. I:H - The leftover mapping is writable (playback VMAs need VM_WRITE|VM_READ), so the attacker can write into pages the buddy allocator reuses for page tables, slab or creds. That is an arbitrary-write primitive, and the fix says it can be used for privilege escalation. A:H - Writing through freed DMA pages that have been reused corrupts kernel memory and page tables, causing oopses or a panic; the attacker can repeat it at will once the stream is attached.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0df63e44c3e315ec0fe427ae62558231864108bd to < 906fbf130ae2706df3e05a1211d6bc11591c44db (affected · git)0df63e44c3e315ec0fe427ae62558231864108bd to < d53ca35ac1074e3c5b6c72b6dd30363507f5f09c (affected · git)0df63e44c3e315ec0fe427ae62558231864108bd to < b38ad5599d60172c549c85a91b49e13c588844fe (affected · git)0df63e44c3e315ec0fe427ae62558231864108bd to < 0322b67d7718964a524ed76efd7b7488545f4650 (affected · git)0df63e44c3e315ec0fe427ae62558231864108bd to < 401f58037219b7c5bfe9829d322ff367e51a64ac (affected · git)0df63e44c3e315ec0fe427ae62558231864108bd to < e0dbd2608acabeb4a76647423b32f13755875889 (affected · git)0df63e44c3e315ec0fe427ae62558231864108bd to < b15cb2a3c074f6b240fd71d3f27850c4ca9af475 (affected · git)0df63e44c3e315ec0fe427ae62558231864108bd to < 9017bc3d13da0ea4e63be618c87143a7b69185e6 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.18 (affected)0 to < 2.6.18 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0322b67d7718964a524ed76efd7b7488545f4650
- https://git.kernel.org/stable/c/401f58037219b7c5bfe9829d322ff367e51a64ac
- https://git.kernel.org/stable/c/9017bc3d13da0ea4e63be618c87143a7b69185e6
- https://git.kernel.org/stable/c/906fbf130ae2706df3e05a1211d6bc11591c44db
- https://git.kernel.org/stable/c/b15cb2a3c074f6b240fd71d3f27850c4ca9af475
- https://git.kernel.org/stable/c/b38ad5599d60172c549c85a91b49e13c588844fe
- https://git.kernel.org/stable/c/d53ca35ac1074e3c5b6c72b6dd30363507f5f09c
- https://git.kernel.org/stable/c/e0dbd2608acabeb4a76647423b32f13755875889
Provider assertions
1Linux · cna
ALSA: pcm: Prevent O_APPEND open on OSS streams
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4b5f7006474a669c89038d0635aebb1d892e2ac3717d1aeb4743ea68aa56688d
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record