android_kernel_xiaomi_sm8450/drivers/media
Junlin Li badbd736e6 drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error
[ Upstream commit 46d7ebfe6a75a454a5fa28604f0ef1491f9d8d14 ]

Ensure index in rtl2830_pid_filter does not exceed 31 to prevent
out-of-bounds access.

dev->filters is a 32-bit value, so set_bit and clear_bit functions should
only operate on indices from 0 to 31. If index is 32, it will attempt to
access a non-existent 33rd bit, leading to out-of-bounds access.
Change the boundary check from index > 32 to index >= 32 to resolve this
issue.

Fixes: df70ddad81 ("[media] rtl2830: implement PID filter")
Signed-off-by: Junlin Li <make24@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:07:52 +02:00
..
cec media: cec: core: add adap_nb_transmit_canceled() callback 2024-06-16 13:32:30 +02:00
common media: v4l2-tpg: fix some memleaks in tpg_alloc 2024-03-26 18:21:55 -04:00
dvb-core media: dvbdev: Initialize sbuf 2024-07-05 09:12:50 +02:00
dvb-frontends drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error 2024-10-17 15:07:52 +02:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-11-06 14:10:09 +01:00
i2c media: tc358743: register v4l2 async device only after successful setup 2024-03-26 18:21:55 -04:00
mc media: mc: mark the media devnode as registered from the, start 2024-06-16 13:32:33 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: solo6x10: replace max(a, min(b, c)) by clamp(b, a, c) 2024-09-04 13:17:39 +02:00
platform media: qcom: camss: Add check for v4l2_fwnode_endpoint_parse 2024-09-12 11:06:46 +02:00
radio media: radio-isa: use dev_name to fill in bus_info 2024-09-04 13:17:33 +02:00
rc lirc: rc_dev_get_from_fd(): fix file leak 2024-08-19 05:41:05 +02:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-11-18 14:04:04 +01:00
test-drivers media: vivid: don't set HDMI TX controls if there are no HDMI outputs 2024-09-12 11:06:46 +02:00
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-04-13 12:58:03 +02:00
usb media: uvcvideo: Enforce alignment of frame and interval 2024-09-12 11:06:41 +02:00
v4l2-core media: v4l2-core: hold videodev_lock until dev reg, finishes 2024-06-16 13:32:33 +02:00
Kconfig media: correct MEDIA_TEST_SUPPORT help text 2022-01-27 10:54:29 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00