Skip to content
Commit a251963f authored by Johan Hovold's avatar Johan Hovold
Browse files

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: default avatar <syzbot+8881b478dad0a7971f79@syzkaller.appspotmail.com>
Fixes: c3a65808

 ("USB: serial: option: reimplement interface masking")
Cc: stable@vger.kernel.org
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent daa91919
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment