]> git.itanic.dy.fi Git - linux-stable/commit
ALSA: line6: fix stack overflow in line6_midi_transmit
authorArtem Egorkine <arteme@gmail.com>
Sun, 25 Dec 2022 10:57:28 +0000 (12:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:26:30 +0000 (11:26 +0100)
commit61e4be4a60cc6de723f8c574ddbcb3025eb44cac
tree6ea479bfaa4e9544fc637523565a871a9371390a
parent399af2f0f0f37e9a631dc26ffc16356306313d98
ALSA: line6: fix stack overflow in line6_midi_transmit

commit b8800d324abb50160560c636bfafe2c81001b66c upstream.

Correctly calculate available space including the size of the chunk
buffer. This fixes a buffer overflow when multiple MIDI sysex
messages are sent to a PODxt device.

Signed-off-by: Artem Egorkine <arteme@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20221225105728.1153989-2-arteme@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/line6/midi.c