CVE-2026-139792

ALSA: pcm: Prevent O_APPEND open on OSS streams

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The ALSA PCM core can inadvertently reuse an existing OSS stream when the O_APPEND flag is supplied. This bypasses a critical sanity check that normally protects OSS streams, allowing an operating system process to share a single stream across multiple users. Because OSS streams can be remapped and re‑configured even while mapped, a malicious user who opens a stream with O_APPEND can trigger a use‑after‑free on the mapped pages. If exploited, this vulnerability lets a local attacker gain elevated privileges or execute uncontrolled code in the kernel context.

Affected Systems

Any Linux kernel that has the ALSA PCM core component prior to the application of the O_APPEND restriction patch. The patch is included in newer kernel releases; older deployments are affected. The CVE vendor list repeats the generic Linux kernel entry for both vendor and product listings, and no finer version details are provided.

Risk and Exploitability

The CVSS score is not disclosed and EPSS is not available, but the vulnerability is listed as not in KEV, indicating no verified public exploitation. Attackers must have local access with the ability to open OSS streams and supply the O_APPEND flag. While not trivially exploitable, the use‑after‑free can lead to privilege escalation if the attacker can control the victim process’s execution path. The patch removes the ability to open OSS streams with O_APPEND; thus, on an unpatched system the risk remains until the kernel is updated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the O_APPEND restriction patch for ALSA PCM streams
  • If kernel upgrade is not immediately possible, audit and modify any applications that open OSS streams with the O_APPEND flag so that they no longer attempt this operation
  • After ensuring the kernel is updated, verify that attempts to open OSS streams with O_APPEND fail, confirming the patch is active

Generated by OpenCVE AI on December 1, 2026 at 01:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
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.
Title ALSA: pcm: Prevent O_APPEND open on OSS streams
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:38 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM