All reports
Medium

kernel: ALSA: ump: do not touch legacy_rmidi before it exists

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-98086

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-21

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: ump: do not touch legacy_rmidi before it exists snd_ump_parse_endpoint() sets ump->parsed on every exit, including error, before the caller attaches the legacy rawmidi device. ump_handle_ep_name_msg() then treats parsed as "legacy_rmidi is live" and calls ump_legacy_set_rawmidi_name(), which snprintf()s into ump->legacy_rmidi->name. If a UMP packet arrives in that window (IRQ path from snd_ump_receive), legacy_rmidi is still NULL (KASAN null-ptr-deref in snprintf). Guard the legacy helpers. parsed only means endpoint info was parsed, not that legacy_rmidi exists.

A flaw was found in the Linux kernel's Advanced Linux Sound Architecture (ALSA) subsystem. When configuring Universal MIDI Packet (UMP) devices, the driver prematurely treats endpoint structures as fully initialized before legacy MIDI data structures are attached. A local user or connected device sending packets during this window can trigger a null pointer dereference, causing a kernel crash and resulting in a Denial of Service (DoS).