]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: technisat-usb2: break out of loop at end of buffer
authorSean Young <sean@mess.org>
Wed, 3 Jul 2019 14:52:39 +0000 (10:52 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:14:22 +0000 (07:14 +0200)
commit994c6dcb4307759d440b8031e140d343b8611481
tree7d318ecf1bcad05b9f3c58da268d439d412146e5
parente07fb66a09fe81ef3e0f4cb2dcbff46175618462
media: technisat-usb2: break out of loop at end of buffer

commit 0c4df39e504bf925ab666132ac3c98d6cbbe380b upstream.

Ensure we do not access the buffer beyond the end if no 0xff byte
is encountered.

Reported-by: syzbot+eaaaf38a95427be88f4b@syzkaller.appspotmail.com
Signed-off-by: Sean Young <sean@mess.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/dvb-usb/technisat-usb2.c