Commit 89512d5e authored by Dan Carpenter's avatar Dan Carpenter Committed by Todd Kjos
Browse files

BACKPORT: usb: gadget: rndis: prevent integer overflow in rndis_set_response()



commit 65f3324f upstream.

If "BufOffset" is very large the "BufOffset + 8" operation can have an
integer overflow.

Bug: 239842288
Cc: stable@kernel.org
Fixes: 38ea1eac ("usb: gadget: rndis: check size of RNDIS_MSG_SET command")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220301080424.GA17208@kili


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: I4dcecb9ada2680a4211e5ccc9b27de2df964e404
parent e6d32209
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment