[PATCH] ALSA: mixer: oss: Fix racy access to slots
Jaroslav Kysela
perex at perex.cz
Wed Oct 20 20:31:45 CEST 2021
On 20. 10. 21 18:48, Takashi Iwai wrote:
> The OSS mixer can reassign the mapping slots dynamically via proc
> file. Although the addition and deletion of those slots are protected
> by mixer->reg_mutex, the access to slots aren't, hence this may cause
> UAF when the slots in use are deleted concurrently.
>
> This patch applies the mixer->reg_mutex in all appropriate code paths
> (i.e. the ioctl functions) that may access slots.
Reviewed-by: Jaroslav Kysela <perex at perex.cz>
Thanks,
Jaroslav
--
Jaroslav Kysela <perex at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
More information about the Alsa-devel
mailing list