linux/sound/firewire/motu
Junrui Luo 8f9e51cf2a ALSA: firewire-motu: add bounds check in put_user loop for DSP events
[ Upstream commit 298e753880 ]

In the DSP event handling code, a put_user() loop copies event data.
When the user buffer size is not aligned to 4 bytes, it could overwrite
beyond the buffer boundary.

Fix by adding a bounds check before put_user().

Suggested-by: Takashi Iwai <tiwai@suse.de>
Fixes: 634ec0b290 ("ALSA: firewire-motu: notify event for parameter change in register DSP model")
Signed-off-by: Junrui Luo <moonafterrain@outlook.com>
Link: https://patch.msgid.link/SYBPR01MB788112C72AF8A1C8C448B4B8AFA3A@SYBPR01MB7881.ausprd01.prod.outlook.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-12-18 14:03:39 +01:00
..
amdtp-motu-trace.h ASoC: Updates for v5.3 2019-07-08 14:45:34 +02:00
amdtp-motu.c ALSA: firewire-lib: obsolete return value from context payload processing layer 2023-01-12 12:14:50 +01:00
Makefile ALSA: firewire: Use *-y instead of *-objs in Makefile 2024-05-08 18:18:03 +02:00
motu-command-dsp-message-parser.c ALSA: firewire: motu: Use guard() for spin locks 2025-08-30 10:04:22 +02:00
motu-hwdep.c ALSA: firewire-motu: add bounds check in put_user loop for DSP events 2025-12-18 14:03:39 +01:00
motu-midi.c ALSA: firewire: motu: Use guard() for spin locks 2025-08-30 10:04:22 +02:00
motu-pcm.c ALSA: firewire: motu: Use guard() for mutex locks 2025-08-30 10:02:21 +02:00
motu-proc.c ALSA: firewire-motu: use table-based calculation of packet formats for proc 2020-05-22 16:52:16 +02:00
motu-protocol-v1.c ALSA: firewire: Remove some left-over license text in sound/firewire 2022-09-27 08:42:18 +02:00
motu-protocol-v2.c ALSA: firewire-motu: add message parser to gather meter information in register DSP model 2021-10-15 17:52:05 +02:00
motu-protocol-v3.c ALSA: firewire-motu: add support for MOTU 896 mk3 FireWire and Hybrid 2024-01-29 09:04:30 +01:00
motu-register-dsp-message-parser.c ALSA: firewire: motu: Use guard() for spin locks 2025-08-30 10:04:22 +02:00
motu-stream.c ALSA: firewire: motu: Use guard() for spin locks 2025-08-30 10:04:22 +02:00
motu-transaction.c ALSA: firewire: motu: Use guard() for spin locks 2025-08-30 10:04:22 +02:00
motu.c ALSA: firewire: motu: Use safer strscpy() instead of strcpy() 2025-07-11 09:52:57 +02:00
motu.h ALSA: firewire-motu: add support for MOTU 896 mk3 FireWire and Hybrid 2024-01-29 09:04:30 +01:00