diff options
author | Johan Hovold <johan@kernel.org> | 2020-12-09 13:42:21 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-12-09 16:54:46 +0300 |
commit | a251963f76fa0226d0fdf0c4f989496f18d9ae7f (patch) | |
tree | e720773da250941bb3a0b86716c4b480d8da25a0 /drivers/usb/serial/ftdi_sio.c | |
parent | daa919196be49815e342eb79fab81852102703c2 (diff) | |
download | linux-a251963f76fa0226d0fdf0c4f989496f18d9ae7f.tar.xz |
USB: serial: option: add interface-number sanity check to flag handling
Add an interface-number sanity check before testing the device flags to
avoid relying on undefined behaviour when left shifting in case a device
uses an interface number greater than or equal to BITS_PER_LONG (i.e. 64
or 32).
Reported-by: syzbot+8881b478dad0a7971f79@syzkaller.appspotmail.com
Fixes: c3a65808f04a ("USB: serial: option: reimplement interface masking")
Cc: stable@vger.kernel.org
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
0 files changed, 0 insertions, 0 deletions