In the Linux kernel, the following vulnerability has been resolved: ALSA: emux: Stop voices before freeing zones in all cases The emux voice caches the soundfont zone pointer in vp->zone, which is referred to later, e.g. in snd_emux_send_effect(). For avoiding dangling pointers, the soundfont code calls the sample_reset callback to stop all voices before freeing zones. However, in a few cases (e.g. emu10k1's missing sample_reset or the call path via remove_info()), the sample reset isn't called properly, leaving the playing voices. Fix it by always registering the sample_reset callback, falling back to snd_emux_terminate_all() when the driver has no own ops, and by calling sample_reset in remove_info() before freeing the zones.
https://git.kernel.org/stable/c/d41e43dbcc289a02c1c49fc5f7b7611fb1aa5cc1
https://git.kernel.org/stable/c/c8d77ef2adc1c95a3afe318011b9714922f0d484
https://git.kernel.org/stable/c/8a5d87c2ba30e8de31cfbe888fd4d95f43c63db9
https://git.kernel.org/stable/c/7dff4e2578fee54e8244df7c93bf627ce160632d
https://git.kernel.org/stable/c/52a5c2159c57340395743af58ffd79d9d9decbeb
https://git.kernel.org/stable/c/459f107441052ee763f6d022f895a55c3b8dc778
https://git.kernel.org/stable/c/2b8a2a687c004d44f480206cd9c8e717ea80a4bb
https://git.kernel.org/stable/c/16a74918f183297579e35d5de66ce5f426023bb6