ALSA: emux: Fix UAF of soundfont zones at note-on
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fb5ae914176d7252c9bd6aee7ab94a64a41ebf3b, Kernel 102b2474f4b6809be934bbf2428b4ae4f3883e32, Kernel 34e3e04b8a1731a773797542f0781e99ce7cd755 and 4 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <fb5ae914176d7252c9bd6aee7ab94a64a41ebf3b, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <102b2474f4b6809be934bbf2428b4ae4f3883e32, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <34e3e04b8a1731a773797542f0781e99ce7cd755, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <af2b590be8feb62b5a0779dadd08e2ece5f370f2, =2.6.12 | fb5ae914176d7252c9bd6aee7ab94a64a41ebf3b, 102b2474f4b6809be934bbf2428b4ae4f3883e32, 34e3e04b8a1731a773797542f0781e99ce7cd755, af2b590be8feb62b5a0779dadd08e2ece5f370f2 |
| linux-kernel: Kernel | >=6.13.0 <6.18.61, >=6.19.0 <7.3.2, >=2.6.12 <6.12.118 | 6.18.61, 7.3.2, 6.12.118 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket