Skip to contentSkip to conversation

CVE-2026-98086: ALSA: ump: do not touch legacy_rmidi before it exists

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-98086 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.5 with commit 37e0e14128e0685267dc5c037bf655421a6ce2ea and fixed in 6.12.111 with commit 1c8e01792adf91879322f1ad752f1814de8b7e7d
	Issue introduced in 6.5 with commit 37e0e14128e0685267dc5c037bf655421a6ce2ea and fixed in 6.18.53 with commit 228075f31b141395233218712242913125ace4e0
	Issue introduced in 6.5 with commit 37e0e14128e0685267dc5c037bf655421a6ce2ea and fixed in 7.2.7 with commit a4cef20cd473e0640fefd38094d4baac0ec76ae3
	Issue introduced in 6.5 with commit 37e0e14128e0685267dc5c037bf655421a6ce2ea and fixed in 7.3-rc2 with commit adeee7187694719890aaffdc14b7e89cfd736f1d

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98086

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
sound/core/ump.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/1c8e01792adf91879322f1ad752f1814de8b7e7d
	https://git.kernel.org/stable/c/228075f31b141395233218712242913125ace4e0
	https://git.kernel.org/stable/c/a4cef20cd473e0640fefd38094d4baac0ec76ae3
	https://git.kernel.org/stable/c/adeee7187694719890aaffdc14b7e89cfd736f1d