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

State
Published
Severity
7.8 High
Published
Nov 19, 2026
Updated
Nov 23, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 18eb027b711e8fb7b5771e78cecfb0d6b6eb023c Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 153547a5018726fa94e2fbe964fbf060006bac92 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before df85c9211220c7139ef6772686b0b7654b8c6cc2 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 1f9da9df213fa13be38ad33b1a314767e43eed42 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 102b2474f4b6809be934bbf2428b4ae4f3883e32 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before af2b590be8feb62b5a0779dadd08e2ece5f370f2 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before fb5ae914176d7252c9bd6aee7ab94a64a41ebf3b Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 34e3e04b8a1731a773797542f0781e99ce7cd755 Affected
Linux Linux2.6.12 Affectedbefore 2.6.12 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.