]> Git Repo - linux.git/commit
ALSA: mixer: oss: Fix racy access to slots
authorTakashi Iwai <[email protected]>
Wed, 20 Oct 2021 16:48:46 +0000 (18:48 +0200)
committerTakashi Iwai <[email protected]>
Thu, 21 Oct 2021 05:03:47 +0000 (07:03 +0200)
commit411cef6adfb38a5bb6bd9af3941b28198e7fb680
treec4a5edfafc36ef46e1fe1ca2fb0a4bbbe98773b7
parent29664923725a384dc7e0f74af7c66e5ab7bb2a26
ALSA: mixer: oss: Fix racy access to slots

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.

Reported-by: [email protected]
Reviewed-by: Jaroslav Kysela <[email protected]>
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
sound/core/oss/mixer_oss.c
This page took 0.055304 seconds and 4 git commands to generate.