Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139792

published high CVSS 3.1 · 7.0

ALSA: pcm: Prevent O_APPEND open on OSS streams

Published
30 Nov 2026, 13:38:02 UTC
Updated
01 Dec 2026, 05:43:26 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

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.

Affected vendor and product assertions
VendorProductVersion statusSource
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

0

No weakness assertions.

References

8

Provider assertions

1

Linux · 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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected