]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: mixer: oss: Add card disconnect checkpoints
authorTakashi Iwai <tiwai@suse.de>
Mon, 9 Feb 2026 12:12:11 +0000 (13:12 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Feb 2026 12:29:43 +0000 (13:29 +0100)
commit084d5d44418148662365eced3e126ad1a81ee3e2
treeeceac86a41a0d3efb80c59cef49bac685611bf61
parentac656d7d7c70f7c352c7652bc2bb0c1c8c2dde08
ALSA: mixer: oss: Add card disconnect checkpoints

ALSA OSS mixer layer calls the kcontrol ops rather individually, and
pending calls might be not always caught at disconnecting the device.

For avoiding the potential UAF scenarios, add sanity checks of the
card disconnection at each entry point of OSS mixer accesses.  The
rwsem is taken just before that check, hence the rest context should
be covered by that properly.

Link: https://patch.msgid.link/20260209121212.171430-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/mixer_oss.c