milos-linux/sound
Kyle Zeng 2b5ff4db5d ALSA: seq: dummy: fix UMP event stack overread
The dummy sequencer port forwards events by copying an incoming
struct snd_seq_event into a stack temporary, rewriting source and
destination, and dispatching the temporary to subscribers. That legacy
event storage is smaller than struct snd_seq_ump_event.

When a UMP event reaches the dummy client, the copy leaves the UMP flag
set but only provides legacy-sized stack storage. The subscriber
delivery path then uses snd_seq_event_packet_size() and copies a
UMP-sized packet from that stack object, reading past the end of the
temporary.

Use the existing union __snd_seq_event storage and copy the packet size
reported for the incoming event before rewriting the common routing
fields. This preserves the full UMP packet for UMP events while keeping
legacy event handling unchanged.

Fixes: 32cb23a0f9 ("ALSA: seq: dummy: Allow UMP conversion")
Signed-off-by: Kyle Zeng <kylebot@openai.com>
Link: https://patch.msgid.link/20260605080204.32045-1-kylebot@openai.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2026-06-05 10:08:57 +02:00
..
ac97
aoa ALSA: aoa: onyx: Update IEC958 sample-rate status for PCM playback 2026-04-06 10:41:00 +02:00
arm ASoC: pxa2xx-ac97: fix error handling for reset GPIO descriptor 2026-04-13 18:00:34 +01:00
atmel
core ALSA: seq: dummy: fix UMP event stack overread 2026-06-05 10:08:57 +02:00
drivers ALSA: pcmtest: Return -EFAULT on pattern read copy failure 2026-05-04 13:26:23 +02:00
firewire ALSA: firewire-motu: Protect register DSP event queue positions 2026-05-25 09:19:44 +02:00
hda ALSA: hda/cs420x: Add CS4208 fixup for iMac16,1 2026-05-27 07:24:15 +02:00
i2c ALSA: i2c: ak4xxx-adda: seed AK5365 cache with reset defaults 2026-04-09 12:01:01 +02:00
isa ALSA: sscape: Add suspend and resume support 2026-04-12 10:00:34 +02:00
mips
oss
parisc
pci ALSA: asihpi: Fix potential OOB array access at reading cache 2026-05-16 15:41:58 +02:00
pcmcia
ppc
sh
soc ASoC: amd: acp70: add standalone RT721 SoundWire machine 2026-06-04 11:35:06 +01:00
sparc ALSA: sparc/dbri: add missing fallthrough 2026-05-06 10:09:17 +02:00
spi
synth
usb ALSA: usb-audio: Add iface reset and delay quirk for AB13X USB Audio 2026-06-04 17:27:35 +02:00
virtio ALSA: virtio: drop an extaneous kernel-doc comment 2026-04-17 09:47:54 +02:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c