Skip to contentSkip to conversation

CVE-2026-99484: ALSA: emux: Fix UAF of soundfont zones at note-on

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

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: emux: Fix UAF of soundfont zones at note-on

snd_emux_note_on() looks up the matching zones via snd_soundfont_search_zone(), which takes sflist->lock only during the lookup and returns the raw zone pointers after releasing it. The caller then stores them in vp->zone without any protection. Meanwhile, a concurrent SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES ioctl may unlink and free those zones in snd_soundfont_remove_unlocked(); this leads to a use-after-free in snd_emux_note_on(), and later at accessing the cached vp->zone, e.g. in snd_emux_send_effect().

Fix it by holding sflist->lock in snd_emux_note_on() over the whole zone lookup and voice setup, and let snd_soundfont_search_zone() require the caller to hold the lock, instead. snd_soundfont_lock_preset() takes sflist->lock for setting presets_locked, so the removal path now syncs with the note-on finish.

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

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

	Fixed in 6.12.118 with commit 102b2474f4b6809be934bbf2428b4ae4f3883e32
	Fixed in 6.18.61 with commit af2b590be8feb62b5a0779dadd08e2ece5f370f2
	Fixed in 7.3.2 with commit fb5ae914176d7252c9bd6aee7ab94a64a41ebf3b
	Fixed in 7.4-rc1 with commit 34e3e04b8a1731a773797542f0781e99ce7cd755

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-99484

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/synth/emux/emux_synth.c
sound/synth/emux/soundfont.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/102b2474f4b6809be934bbf2428b4ae4f3883e32
	https://git.kernel.org/stable/c/af2b590be8feb62b5a0779dadd08e2ece5f370f2
	https://git.kernel.org/stable/c/fb5ae914176d7252c9bd6aee7ab94a64a41ebf3b
	https://git.kernel.org/stable/c/34e3e04b8a1731a773797542f0781e99ce7cd755