Commit 0cf83bf5 authored by Shuah Khan's avatar Shuah Khan Committed by Zheng Zengkai
Browse files

usbip: vhci_hcd fix shift out-of-bounds in vhci_hub_control()



stable inclusion
from stable-5.10.28
commit 4027d6e88fef5c4a096571dcf325dc5b9e5d41c9
bugzilla: 51779

--------------------------------

commit 1cc5ed25 upstream.

Fix shift out-of-bounds in vhci_hub_control() SetPortFeature handling.

UBSAN: shift-out-of-bounds in drivers/usb/usbip/vhci_hcd.c:605:42
shift exponent 768 is too large for 32-bit type 'int'

Reported-by: default avatar <syzbot+3dea30b047f41084de66@syzkaller.appspotmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20210324230654.34798-1-skhan@linuxfoundation.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent e2007c03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment