Skip to content
Commit 1b43bad3 authored by James Reynolds's avatar James Reynolds Committed by Mauro Carvalho Chehab
Browse files

media: mceusb: Fix potential out-of-bounds shift



When processing a MCE_RSP_GETPORTSTATUS command, the bit index to set in
ir->txports_cabled comes from response data, and isn't validated.

As ir->txports_cabled is a u8, nothing should be done if the bit index
is greater than 7.

Cc: stable@vger.kernel.org
Reported-by: default avatar <syzbot+ec3b3128c576e109171d@syzkaller.appspotmail.com>
Signed-off-by: default avatarJames Reynolds <jr@memlen.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 4487e021
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