Takashi Iwai 0179488ca9 ALSA: seq: oss: Fix races at processing SysEx messages
OSS sequencer handles the SysEx messages split in 6 bytes packets, and
ALSA sequencer OSS layer tries to combine those.  It stores the data
in the internal buffer and this access is racy as of now, which may
lead to the out-of-bounds access.

As a temporary band-aid fix, introduce a mutex for serializing the
process of the SysEx message packets.

Reported-by: Kun Hu <huk23@m.fudan.edu.cn>
Closes: https://lore.kernel.org/2B7E93E4-B13A-4AE4-8E87-306A8EE9BBB7@m.fudan.edu.cn
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20241230110543.32454-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2024-12-30 12:06:28 +01:00
..
2024-10-02 21:29:16 +02:00
2024-03-17 09:36:45 +01:00
2024-10-02 21:29:16 +02:00
2024-02-28 15:01:21 +01:00
2024-02-28 15:01:21 +01:00
2022-08-06 10:19:51 -07:00
2024-08-08 07:49:47 +02:00
2024-11-29 13:01:05 -08:00
2024-09-27 08:18:43 -07:00