ALSA: emux: Fix UAF of soundfont zones at note-on
NIST has received this entry but not started reviewing it.
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.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 18eb027b711e8fb7b5771e78cecfb0d6b6eb023c; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 153547a5018726fa94e2fbe964fbf060006bac92; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before df85c9211220c7139ef6772686b0b7654b8c6cc2; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 1f9da9df213fa13be38ad33b1a314767e43eed42; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 102b2474f4b6809be934bbf2428b4ae4f3883e32; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before af2b590be8feb62b5a0779dadd08e2ece5f370f2; and 2 more | 18eb027b711e8fb7b5771e78cecfb0d6b6eb023c; 153547a5018726fa94e2fbe964fbf060006bac92; df85c9211220c7139ef6772686b0b7654b8c6cc2; 1f9da9df213fa13be38ad33b1a314767e43eed42 |
| Linux Linux | Software | 2.6.12 | not recorded |
The 7.8 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.