android_kernel_samsung_sm8650/drivers/media/usb
Rajeshwar R Shinde a647f27a74 media: gspca: cpia1: shift-out-of-bounds in set_flicker
[ Upstream commit 099be1822d1f095433f4b08af9cc9d6308ec1953 ]

Syzkaller reported the following issue:
UBSAN: shift-out-of-bounds in drivers/media/usb/gspca/cpia1.c:1031:27
shift exponent 245 is too large for 32-bit type 'int'

When the value of the variable "sd->params.exposure.gain" exceeds the
number of bits in an integer, a shift-out-of-bounds error is reported. It
is triggered because the variable "currentexp" cannot be left-shifted by
more than the number of bits in an integer. In order to avoid invalid
range during left-shift, the conditional expression is added.

Reported-by: syzbot+e27f3dbdab04e43b9f73@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/20230818164522.12806-1-coolrrsh@gmail.com
Link: https://syzkaller.appspot.com/bug?extid=e27f3dbdab04e43b9f73
Signed-off-by: Rajeshwar R Shinde <coolrrsh@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-28 17:07:02 +00:00
..
airspy
as102
au0828
b2c2
cx231xx
dvb-usb media: af9005: Fix null-ptr-deref in af9005_i2c_xfer 2023-09-23 11:11:06 +02:00
dvb-usb-v2 media: dvb-usb-v2: af9035: fix missing unlock 2023-11-20 11:52:14 +01:00
em28xx media: v4l: Use correct dependency for camera sensor drivers 2023-10-06 14:56:31 +02:00
go7007 media: v4l: Use correct dependency for camera sensor drivers 2023-10-06 14:56:31 +02:00
gspca media: gspca: cpia1: shift-out-of-bounds in set_flicker 2023-11-28 17:07:02 +00:00
hackrf
hdpvr
msi2500
pvrusb2 media: pvrusb2: VIDEO_PVRUSB2 depends on DVB_CORE to use dvb_* symbols 2023-05-24 17:32:35 +01:00
pwc
s2255
siano drivers: usb: smsusb: fix error handling code in smsusb_init_device 2023-09-13 09:42:50 +02:00
stk1160
ttusb-budget
ttusb-dec media: ttusb-dec: fix memory leak in ttusb_dec_exit_dvb() 2023-06-09 10:34:12 +02:00
usbtv
uvc media: uvcvideo: Fix OOB read 2023-10-06 14:57:04 +02:00
Kconfig
Makefile