Re: [PATCH] ALSA: emux: drain open hwdep users before freeing the emux structures(UAF)

From: Takashi Iwai

Date: Tue Dec 01 2026 - 07:59:01 EST


On Tue, 01 Dec 2026 12:57:17 +0100,
徐晗翔 wrote:
>
> Update: this is still present on v7.4-rc5 -- the identical hwdep-fd hammer across snd_emux_free() yields 113 slab-use-after-free reports (snd_emux_hwdep_ioctl at five dereference points plus snd_hwdep_ioctl+0x11f reading hw->ops), so the open/release accounting + drain-wait patch still applies as-is.

Thanks for confirmation. Could you submit a proper fix patch for
upstreaming, then?


Takashi