Skip to main content
Vulnerability Database/CVE-2026-97931

CVE-2026-97931: Linux Kernel ALSA Privilege Escalation Flaw

CVE-2026-97931 is a privilege escalation vulnerability in the Linux kernel ALSA us122l driver that allows unauthorized memory mapping modifications. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97931 Overview

CVE-2026-97931 affects the Linux kernel ALSA (Advanced Linux Sound Architecture) us122l driver. The hwdep mmap callback rejects read-buffer mappings created as writable but fails to clear the VM_MAYWRITE flag on mappings established with PROT_READ. A local user with O_RDWR access to the hwdep device node can call mprotect() to upgrade a read-only mapping to writable. This permits writes into memory used by the usb_stream read buffer, including the read_size member consumed by the fault handler and usb_stream_free().

Critical Impact

A local attacker with access to the hwdep device node can corrupt kernel memory by modifying read_size, potentially mapping pages outside the allocation or triggering free_pages_exact() on memory beyond the buffer boundary.

Affected Products

  • Linux kernel ALSA us122l USB audio driver
  • Kernel branches referenced by stable commits 0eb9dd47, 64a87950, 71c610ae, and d9c537b1
  • Systems exposing the hwdep device node to unprivileged or semi-privileged users

Discovery Timeline

  • 2026-09-25 - CVE CVE-2026-97931 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97931

Vulnerability Analysis

The vulnerability resides in the ALSA us122l driver's hwdep mmap callback. The callback inspects the incoming VMA (Virtual Memory Area) and rejects attempts to map the read buffer with write permissions. However, it does not clear the VM_MAYWRITE flag that governs whether a mapping is eligible for permission upgrades later in its lifetime.

A process that opens the hwdep character device with O_RDWR can first create a PROT_READ mapping, which passes the mmap check. The process can then invoke mprotect() with PROT_WRITE to transition the mapping to writable because VM_MAYWRITE remains set. This defeats the intended read-only guarantee for the shared usb_stream buffer.

Root Cause

The read allocation begins with struct usb_stream, whose read_size field determines which pages the fault handler attributes to the read buffer. The read VMA is intentionally left expandable because pcm_usb_stream relies on mremap() after reading the size. If an attacker writes to read_size first, subsequent fault handling can map and access pages beyond the original allocation. The same field is later consumed by usb_stream_free(), where a tampered value causes free_pages_exact() to release memory outside the allocation. This is a kernel memory corruption flaw caused by missing VMA flag normalization after permission rejection.

Attack Vector

Exploitation requires local access and the ability to open the us122l hwdep device node with O_RDWR. The attacker opens the device, mmaps the read buffer with PROT_READ, then calls mprotect() to add PROT_WRITE. The attacker then overwrites read_size within the shared usb_stream structure. Triggering a page fault on the extended region, or allowing usb_stream_free() to run, causes the kernel to touch or free memory outside the allocation.

The vulnerability mechanism is described in the upstream patch commits. See the Linux Kernel Commit 0eb9dd47 for the authoritative fix.

Detection Methods for CVE-2026-97931

Indicators of Compromise

  • Unexpected mprotect() system calls that add PROT_WRITE to mappings backed by /dev/snd/hwC*D* nodes.
  • Kernel log entries referencing page faults, slab corruption, or free_pages_exact() warnings associated with the snd-usb-us122l module.
  • Process activity opening ALSA hwdep nodes with O_RDWR from non-audio workloads.

Detection Strategies

  • Audit openat() and mmap()/mprotect() sequences against /dev/snd/hwC*D* using eBPF or auditd rules.
  • Correlate kernel oops or panic events in dmesg with recent loads of the snd-usb-us122l module.
  • Monitor for unprivileged processes interacting with USB audio hwdep devices outside expected audio software.

Monitoring Recommendations

  • Enable auditd rules on /dev/snd/ device nodes to capture open and mapping operations.
  • Collect kernel ring buffer telemetry centrally and alert on BUG, WARN, or general protection fault entries referencing ALSA code paths.
  • Track installed kernel versions across the fleet and flag hosts running kernels prior to the fix commits.

How to Mitigate CVE-2026-97931

Immediate Actions Required

  • Apply the upstream kernel fix that clears VM_MAYWRITE on read-buffer mappings in the us122l hwdep mmap callback.
  • Restrict access to /dev/snd/hwC*D* nodes to the audio group and remove unnecessary user membership.
  • Unload the snd-usb-us122l module on systems that do not require USR122L USB audio hardware.

Patch Information

The fix clears VM_MAYWRITE for read-buffer mappings after rejecting an initially writable VMA, preserving writability of the separate output buffer. Refer to the following upstream commits: Linux Kernel Commit 0eb9dd47, Linux Kernel Commit 64a87950, Linux Kernel Commit 71c610ae, and Linux Kernel Commit d9c537b1.

Workarounds

  • Blacklist the snd-usb-us122l kernel module where the hardware is not in use.
  • Tighten permissions on ALSA hwdep device nodes via udev rules to prevent O_RDWR opens by non-audio users.
  • Disable USB device access for untrusted local users through USBGuard or equivalent controls.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.