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

CVE-2026-98086: Linux Kernel ALSA UMP Use-After-Free Flaw

CVE-2026-98086 is a use-after-free vulnerability in the Linux kernel ALSA UMP subsystem that causes null pointer dereference when UMP packets arrive before legacy rawmidi initialization. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

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-98086 Overview

CVE-2026-98086 is a null pointer dereference vulnerability in the Linux kernel's Advanced Linux Sound Architecture (ALSA) Universal MIDI Packet (UMP) subsystem. The flaw exists in the snd_ump_parse_endpoint() function, which sets the ump->parsed flag on every exit path, including error conditions, before the caller attaches the legacy rawmidi device. If a UMP packet arrives during this window via the interrupt request (IRQ) path from snd_ump_receive, the kernel treats parsed as an indication that legacy_rmidi is live and invokes ump_legacy_set_rawmidi_name(). That function performs an snprintf() into ump->legacy_rmidi->name, triggering a Kernel Address Sanitizer (KASAN) null pointer dereference.

Critical Impact

Local attackers with access to USB MIDI devices can trigger a kernel null pointer dereference, leading to a denial of service on affected Linux systems.

Affected Products

  • Linux kernel versions containing the vulnerable ALSA UMP endpoint parsing logic
  • Systems with the snd-ump kernel module loaded
  • Devices supporting Universal MIDI Packet (UMP) 2.0 endpoints

Discovery Timeline

  • 2026-09-25 - CVE-2026-98086 published to the National Vulnerability Database
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98086

Vulnerability Analysis

The vulnerability resides in the ALSA UMP driver's endpoint parsing flow. snd_ump_parse_endpoint() unconditionally sets the ump->parsed flag on function exit, regardless of whether the parse operation completed successfully. The caller only attaches the legacy_rmidi device after this function returns. This creates a race window in which the parsed flag indicates the endpoint has been processed, but the legacy rawmidi structure has not yet been allocated or attached.

Incoming UMP packets handled in the IRQ context through snd_ump_receive() reach ump_handle_ep_name_msg(), which incorrectly interprets ump->parsed as a guarantee that legacy_rmidi is live. The handler then calls ump_legacy_set_rawmidi_name(), which executes snprintf() against ump->legacy_rmidi->name. Because legacy_rmidi is still NULL during this window, the dereference faults in kernel context.

Root Cause

The root cause is a semantic mismatch between the meaning of the ump->parsed flag and its use in downstream handlers. The flag signals that endpoint information was parsed, not that the legacy rawmidi structure exists. Legacy helpers rely on the flag as a liveness indicator for legacy_rmidi without verifying the pointer. This qualifies as a Null Pointer Dereference weakness in the kernel's MIDI subsystem.

Attack Vector

An attacker needs local access and the ability to connect or emulate a UMP-capable MIDI device. During device probing, a crafted or malicious UMP endpoint can send packets through the IRQ path before the driver completes attachment of the legacy rawmidi device. The resulting null pointer dereference in snprintf() panics the kernel or produces a KASAN splat, causing denial of service on the host.

See the upstream fixes for implementation details: Kernel Git Commit 1c8e017, Kernel Git Commit 228075f, Kernel Git Commit a4cef20, and Kernel Git Commit adeee71.

Detection Methods for CVE-2026-98086

Indicators of Compromise

  • Kernel oops or panic messages referencing ump_legacy_set_rawmidi_name or ump_handle_ep_name_msg in the call trace
  • KASAN null pointer dereference reports originating from snd_ump_receive IRQ context
  • Unexpected system reboots or crashes coinciding with USB MIDI device enumeration events

Detection Strategies

  • Monitor kernel ring buffer output using dmesg and journald for faults in the snd-ump module
  • Audit /proc/asound/cards and USB device enumeration logs for anomalous UMP endpoint attachments during device onboarding
  • Correlate crash telemetry with recent connections of USB MIDI 2.0 hardware or virtual MIDI endpoints

Monitoring Recommendations

  • Enable kernel crash dump collection (kdump) to capture full stack traces when the fault occurs
  • Forward kernel logs to a centralized logging platform for cross-host correlation of ALSA subsystem errors
  • Track loaded kernel modules on sensitive hosts and alert on unexpected loading of snd-ump where MIDI functionality is not required

How to Mitigate CVE-2026-98086

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the stable tree commits as soon as vendor-rebuilt kernels become available
  • Restrict physical and logical access to USB ports on servers and workstations that do not require MIDI functionality
  • Unload the snd-ump module on systems that do not use UMP-capable MIDI devices

Patch Information

The fix guards the legacy helpers so that the parsed flag is no longer treated as proof that legacy_rmidi exists. The handlers now verify the pointer before dereferencing it. Patches are available in the mainline and stable kernel trees via commits 1c8e017, 228075f, a4cef20, and adeee71. Rebuild and deploy distribution kernels incorporating these commits.

Workarounds

  • Blacklist the snd-ump module on systems with no legitimate MIDI 2.0 requirement by adding blacklist snd_ump to /etc/modprobe.d/
  • Disable USB device autosuspend and new-device enumeration on servers using udev rules to prevent untrusted MIDI endpoints from attaching
  • Apply USB device access controls through tools such as USBGuard to restrict which devices can bind to the ALSA UMP driver
bash
# Configuration example
# Prevent the vulnerable module from loading on hosts without MIDI needs
echo "blacklist snd_ump" | sudo tee /etc/modprobe.d/disable-snd-ump.conf
sudo modprobe -r snd_ump

# Verify the module is not loaded
lsmod | grep snd_ump

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.