linux/sound/isa
Junrui Luo 1823e08f76 ALSA: wavefront: Fix integer overflow in sample size validation
commit 0c4a13ba88 upstream.

The wavefront_send_sample() function has an integer overflow issue
when validating sample size. The header->size field is u32 but gets
cast to int for comparison with dev->freemem

Fix by using unsigned comparison to avoid integer overflow.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Signed-off-by: Junrui Luo <moonafterrain@outlook.com>
Link: https://patch.msgid.link/SYBPR01MB7881B47789D1B060CE8BF4C3AFC2A@SYBPR01MB7881.ausprd01.prod.outlook.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-12-18 14:03:43 +01:00
..
ad1816a ALSA: ad1816a: Use guard() for spin locks 2025-09-01 13:53:01 +02:00
ad1848 ALSA: isa: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:48 +02:00
cs423x ALSA: cs423x: Use guard() for spin locks 2025-09-01 13:53:01 +02:00
es1688 ALSA: es1688: Use guard() for spin locks 2025-09-01 13:53:01 +02:00
galaxy ALSA: galaxy: Use safer strscpy() instead of strcpy() 2025-07-11 09:53:15 +02:00
gus ALSA: gus: Use guard() for spin locks 2025-09-01 13:53:02 +02:00
msnd ALSA: msnd: Use guard() for spin locks 2025-09-01 13:53:02 +02:00
opti9xx ALSA: opti9xx: Use guard() for spin locks 2025-09-01 13:53:02 +02:00
sb ALSA: emu8000: Use guard() for spin locks 2025-09-01 13:53:02 +02:00
wavefront ALSA: wavefront: Fix integer overflow in sample size validation 2025-12-18 14:03:43 +01:00
wss ALSA: wss: Use guard() for spin locks 2025-09-01 13:53:03 +02:00
adlib.c ALSA: adlib: Use safer strscpy() instead of strcpy() 2025-07-11 09:53:14 +02:00
als100.c ALSA: als100: Use safer strscpy() instead of strcpy() 2025-07-11 09:53:14 +02:00
azt2320.c ALSA: azt2320: Replace deprecated strcpy() with strscpy() 2025-04-08 11:48:37 +02:00
cmi8328.c ALSA: cmi8328: Use safer strscpy() instead of strcpy() 2025-07-11 09:53:14 +02:00
cmi8330.c ALSA: cmi8330: Use guard() for spin locks 2025-09-01 13:53:01 +02:00
es18xx.c ALSA: es18xx: Use guard() for spin locks 2025-09-01 13:53:01 +02:00
Kconfig ALSA: add HAS_IOPORT dependencies 2023-05-22 16:43:47 +02:00
Makefile ALSA: isa: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:48 +02:00
opl3sa2.c ALSA: opl3sa2: Use guard() for spin locks 2025-09-01 13:53:02 +02:00
sc6000.c ALSA: sc6000: Use safer strscpy() instead of strcpy() 2025-07-11 09:53:15 +02:00
sscape.c ALSA: sscape: Use guard() for spin locks 2025-09-01 13:53:02 +02:00