{"id":"CVE-2026-99484","state":"PUBLISHED","title":"ALSA: emux: Fix UAF of soundfont zones at note-on","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: emux: Fix UAF of soundfont zones at note-on\n\nsnd_emux_note_on() looks up the matching zones via\nsnd_soundfont_search_zone(), which takes sflist->lock only during the\nlookup and returns the raw zone pointers after releasing it.  The\ncaller then stores them in vp->zone without any protection.\nMeanwhile, a concurrent SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES ioctl may\nunlink and free those zones in snd_soundfont_remove_unlocked(); this\nleads to a use-after-free in snd_emux_note_on(), and later at\naccessing the cached vp->zone, e.g. in snd_emux_send_effect().\n\nFix it by holding sflist->lock in snd_emux_note_on() over the whole\nzone lookup and voice setup, and let snd_soundfont_search_zone()\nrequire the caller to hold the lock, instead.\nsnd_soundfont_lock_preset() takes sflist->lock for setting\npresets_locked, so the removal path now syncs with the note-on finish.","publishedAt":"2026-11-19T14:43:20.357Z","updatedAt":"2026-11-22T11:08:37.297Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"102b2474f4b6809be934bbf2428b4ae4f3883e32","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"af2b590be8feb62b5a0779dadd08e2ece5f370f2","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fb5ae914176d7252c9bd6aee7ab94a64a41ebf3b","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"34e3e04b8a1731a773797542f0781e99ce7cd755","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/synth/emux/emux_synth.c","sound/synth/emux/soundfont.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/synth/emux/emux_synth.c","sound/synth/emux/soundfont.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-11-22T11:18:06.032Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99484.json","commit":"247cc9beefd85903834df0592e88a44f4d599223","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99484","state":"PUBLISHED","datePublished":"2026-11-19T14:43:20.357Z","dateUpdated":"2026-11-22T11:08:37.297Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.417Z"},"containers":{"cna":{"title":"ALSA: emux: Fix UAF of soundfont zones at note-on","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: emux: Fix UAF of soundfont zones at note-on\n\nsnd_emux_note_on() looks up the matching zones via\nsnd_soundfont_search_zone(), which takes sflist->lock only during the\nlookup and returns the raw zone pointers after releasing it.  The\ncaller then stores them in vp->zone without any protection.\nMeanwhile, a concurrent SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES ioctl may\nunlink and free those zones in snd_soundfont_remove_unlocked(); this\nleads to a use-after-free in snd_emux_note_on(), and later at\naccessing the cached vp->zone, e.g. in snd_emux_send_effect().\n\nFix it by holding sflist->lock in snd_emux_note_on() over the whole\nzone lookup and voice setup, and let snd_soundfont_search_zone()\nrequire the caller to hold the lock, instead.\nsnd_soundfont_lock_preset() takes sflist->lock for setting\npresets_locked, so the removal path now syncs with the note-on finish."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"102b2474f4b6809be934bbf2428b4ae4f3883e32","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"af2b590be8feb62b5a0779dadd08e2ece5f370f2","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fb5ae914176d7252c9bd6aee7ab94a64a41ebf3b","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"34e3e04b8a1731a773797542f0781e99ce7cd755","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/synth/emux/emux_synth.c","sound/synth/emux/soundfont.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/synth/emux/emux_synth.c","sound/synth/emux/soundfont.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/102b2474f4b6809be934bbf2428b4ae4f3883e32"},{"url":"https://git.kernel.org/stable/c/af2b590be8feb62b5a0779dadd08e2ece5f370f2"},{"url":"https://git.kernel.org/stable/c/fb5ae914176d7252c9bd6aee7ab94a64a41ebf3b"},{"url":"https://git.kernel.org/stable/c/34e3e04b8a1731a773797542f0781e99ce7cd755"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The zone is freed by the local ioctl SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES in snd_emux_hwdep_ioctl(), which calls snd_soundfont_remove_unlocked(), racing a SNDRV_SEQ_EVENT_NOTEON from snd_seq_write() through snd_emux_event_input() and snd_midi_process_event() into snd_emux_note_on(). Both of those entry points are local device operations.\nAC:L - The same user holds the hwdep fd and a sequencer client, loads an unlocked font with SNDRV_EMUX_IOCTL_LOAD_PATCH, and runs note-on concurrently with REMOVE_LAST_SAMPLES. Before the fix, snd_soundfont_search_zone() drops sflist->lock before snd_emux_note_on() uses the returned zone pointers, and note-on does not take presets_mutex, so the attacker controls both sides and can retry.\nPR:L - snd_hwdep_open(), snd_seq_open(), and snd_emux_hwdep_ioctl() do not call capable(). The emux port is created with SNDRV_SEQ_PORT_CAP_WRITE|SNDRV_SEQ_PORT_CAP_SUBS_WRITE, so a local user who can open the Emux WaveTable hwdep node and /dev/snd/seq can issue REMOVE_LAST_SAMPLES and deliver the note-on.\nUI:N - The attacker opens the hwdep node and /dev/snd/seq, loads the soundfont with SNDRV_EMUX_IOCTL_LOAD_PATCH, writes SNDRV_SEQ_EVENT_NOTEON, and issues SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES. Every step is their own action on those file descriptors.\nS:U - The dangling snd_sf_zone is consumed in the host kernel by snd_emux_note_on() and by emu10k1 start_voice(). The corrupted object and the impact both sit in that kernel security authority.\nC:H - snd_emux_note_on() copies the freed zone's soundfont_voice_info into vp->reg and, when zone->sample is non-NULL, reads sample->block. Reclaiming the kzalloc'd snd_sf_zone lets the attacker choose that pointer, and emu10k1 start_voice() then reads fields of the resulting snd_emu10k1_memblk.\nI:H - emu10k1 start_voice() casts vp->block, taken from the freed zone's sample, to snd_emu10k1_memblk and increments emem->map_locked. snd_emu10k1_memblk_map() then list_move_tails mapped_order_link when mapped_page >= 0, so a reclaimed zone becomes a kernel write and list corruption.\nA:H - snd_emux_note_on() and snd_emux_send_effect() dereference the snd_sf_zone after snd_soundfont_remove_unlocked() has kfree'd it, and start_voice() increments map_locked on the block pointer taken from that zone. Those kernel-context accesses oops the machine."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-22T11:08:37.297Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}