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-98116 Overview
CVE-2026-98116 is a page-level use-after-free vulnerability in the Linux kernel's Advanced Linux Sound Architecture (ALSA) PCM subsystem. The flaw stems from a race condition between snd_pcm_mmap_data() and buffer reallocation paths such as snd_pcm_hw_params() and snd_pcm_hw_free(). A concurrent mmap() call can install writable page table entries (PTEs) referencing DMA buffer pages that are subsequently freed by do_free_pages(), leaving a stale writable mapping of freed memory in the process's virtual memory area (VMA). Local attackers can leverage this to achieve privilege escalation on affected kernels.
Critical Impact
A local, low-privileged attacker can obtain a writable mapping to freed kernel pages and escalate to root by racing PCM mmap() with hw_params/hw_free buffer reallocation.
Affected Products
- Linux kernel ALSA PCM subsystem (sound/core/pcm_native.c)
- Stable kernel branches prior to the fixing commits 8c1882d, 9b110a9, cbc7ec9, and fd137bf
- Any Linux distribution shipping an unpatched kernel with audio (ALSA) support enabled
Discovery Timeline
- 2026-09-25 - CVE-2026-98116 published to the National Vulnerability Database (NVD)
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98116
Vulnerability Analysis
The ALSA PCM subsystem exposes DMA buffers to userspace through mmap(). Buffer lifetime is coordinated between three code paths: snd_pcm_hw_params() (allocates buffers), snd_pcm_hw_free() (frees buffers), and snd_pcm_mmap_data() (maps buffers into a VMA). The hardware parameter paths check mmap_count under the PCM stream lock before reallocating or freeing buffers.
The stream lock is released well before the actual free occurs. Between the check and the call to do_free_pages(), snd_pcm_sync_stop() and constraint refinement execute without holding the lock. The mmap path takes no lock at all, validating the buffer state and dma_bytes, then calling remap_pfn_range() before incrementing mmap_count.
Root Cause
The root cause is an unsynchronized time-of-check to time-of-use (TOCTOU) race between buffer validation and buffer freeing. remap_pfn_range() installs writable PTEs for the old buffer pages without taking page references. When do_free_pages() subsequently returns those pages to the page allocator, the VMA still contains writable mappings to physical pages that the kernel considers free. This produces a classic page-level use-after-free condition.
Attack Vector
An unprivileged local user with access to an ALSA PCM device (typically /dev/snd/pcm*) can open the device, trigger SNDRV_PCM_IOCTL_HW_PARAMS to force buffer reallocation, and simultaneously race an mmap() call against the free path. On success, the attacker retains a writable mapping of freed pages. Reallocating those pages for sensitive kernel structures (page tables, credentials, file descriptor tables) enables arbitrary kernel memory corruption and local privilege escalation. A functional reproducer that converts the race into a stale writable mapping is referenced in the upstream commit message.
See the upstream fix in Kernel Git Commit 8c1882d for technical details.
Detection Methods for CVE-2026-98116
Indicators of Compromise
- Unprivileged processes opening /dev/snd/pcm* devices and issuing high-frequency SNDRV_PCM_IOCTL_HW_PARAMS and mmap() system calls in tight loops
- Unexpected kernel oops, page fault, or BUG: Bad page state messages in dmesg referencing ALSA, snd_pcm, or do_free_pages
- Processes gaining UID 0 without a corresponding setuid binary execution in audit logs
Detection Strategies
- Deploy eBPF or auditd rules that flag non-audio processes opening PCM character devices and performing rapid ioctl/mmap sequences
- Monitor /proc/self/maps or kernel tracepoints (syscalls:sys_enter_mmap) for suspicious mapping patterns against ALSA file descriptors
- Alert on kernel log entries containing snd_pcm_mmap_data, remap_pfn_range warnings, or page allocator corruption messages
Monitoring Recommendations
- Enable kernel hardening options such as CONFIG_PAGE_POISONING and CONFIG_DEBUG_PAGEALLOC in test environments to surface use-after-free conditions early
- Collect kernel audit telemetry centrally and baseline normal ALSA device access by media and conferencing applications
- Correlate privilege-escalation events (uid transitions, new root processes) with preceding access to sound device nodes
How to Mitigate CVE-2026-98116
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced by commits 8c1882d, 9b110a9, cbc7ec9, and fd137bf or install vendor kernel updates that incorporate them
- Reboot affected systems after patching to activate the new kernel
- Audit which local user accounts and containers have access to /dev/snd/* device nodes and restrict access where audio is not required
Patch Information
The fix makes snd_pcm_mmap_data() participate in the runtime->buffer_accessing scheme previously used by hw_params and hw_free. The mmap path now acquires buffer_accessing before validating and remapping and releases it afterward. Buffer reallocation fails with -EBUSY while accessors are active, and mmap() fails with -EBUSY while reallocation is in progress, eliminating the race window. Patch commits are available at Kernel Git Commit 8c1882d, Kernel Git Commit 9b110a9, Kernel Git Commit cbc7ec9, and Kernel Git Commit fd137bf.
Workarounds
- Remove or restrict permissions on /dev/snd/pcm* device nodes for untrusted local users on systems that do not require audio playback or capture
- Blacklist the snd_pcm kernel module on servers and container hosts with no audio requirement by adding blacklist snd_pcm to /etc/modprobe.d/blacklist-alsa.conf
- In container environments, ensure the sound device is not exposed to untrusted workloads and that the host kernel is patched before resuming audio access
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

