Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2026-99484

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 102b2474f4b6809be934bbf2428b4ae4f3883e32affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < af2b590be8feb62b5a0779dadd08e2ece5f370f2affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < fb5ae914176d7252c9bd6aee7ab94a64a41ebf3baffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 34e3e04b8a1731a773797542f0781e99ce7cd755affected

Linux Linux

Default version status: affected

  • 2.6.12affected
  • 0 to < 2.6.12unaffected
  • 6.12.118 to ≤ 6.12.*unaffected
  • 6.18.61 to ≤ 6.18.*unaffected
  • 7.3.2 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References