diff options
author | Takashi Iwai <[email protected]> | 2021-10-20 18:48:46 +0200 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2021-10-21 07:03:47 +0200 |
commit | 411cef6adfb38a5bb6bd9af3941b28198e7fb680 (patch) | |
tree | c4a5edfafc36ef46e1fe1ca2fb0a4bbbe98773b7 /scripts/gdb/linux/utils.py | |
parent | 29664923725a384dc7e0f74af7c66e5ab7bb2a26 (diff) |
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]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions