summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-09 10:59:22 +0100
committerTakashi Iwai <tiwai@suse.de>2020-03-09 11:00:45 +0100
commitd683469b3c93d7e2afd39e6e1970f24700eb7a68 (patch)
treeb103ebcbd4c8d22ffd5c6642b80b47fb0011aa88 /sound/pci
parentf2ecf903ef06eb1bbbfa969db9889643d487e73a (diff)
ALSA: line6: Fix endless MIDI read loop
The MIDI input event parser of the LINE6 driver may enter into an endless loop when the unexpected data sequence is given, as it tries to continue the secondary bytes without termination. Also, when the input data is too short, the parser returns a negative error, while the caller doesn't handle it properly. This would lead to the unexpected behavior as well. This patch addresses those issues by checking the return value correctly and handling the one-byte event in the parser properly. The bug was reported by syzkaller. Reported-by: syzbot+cce32521ee0a824c21f7@syzkaller.appspotmail.com Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/000000000000033087059f8f8fa3@google.com Link: https://lore.kernel.org/r/20200309095922.30269-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions