]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: wlan-ng: properly check endpoint types
authorRustam Kovhaev <rkovhaev@gmail.com>
Wed, 22 Jul 2020 16:10:52 +0000 (09:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2020 14:43:14 +0000 (16:43 +0200)
commitb3a6d51d79afb46f43bdcf49722d955ec03fb967
tree5a58c71e49d89751a4d243c67243bedacffe3f26
parent39c6ea8661bd21979fee2a7d4078d9277e42ffa9
staging: wlan-ng: properly check endpoint types

commit faaff9765664009c1c7c65551d32e9ed3b1dda8f upstream.

As syzkaller detected, wlan-ng driver does not do sanity check of
endpoints in prism2sta_probe_usb(), add check for xfer direction and type

Reported-and-tested-by: syzbot+c2a1fa67c02faa0de723@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?extid=c2a1fa67c02faa0de723
Signed-off-by: Rustam Kovhaev <rkovhaev@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200722161052.999754-1-rkovhaev@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2usb.c