android_kernel_motorola_sm6375/drivers/media
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junlin Li 883f794c6e 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-11-08 16:20:31 +01:00
..
cec media: cec: cec-api: add locking in cec_release() 2024-06-16 13:28:44 +02:00
common media: v4l2-tpg: fix some memleaks in tpg_alloc 2024-03-26 18:22:19 -04:00
dvb-core media: dvbdev: Initialize sbuf 2024-07-05 09:08:28 +02:00
dvb-frontends drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error 2024-11-08 16:20:31 +01:00
firewire
i2c media: tc358743: register v4l2 async device only after successful setup 2024-03-26 18:22:19 -04:00
mc media: mc: mark the media devnode as registered from the, start 2024-06-16 13:28:50 +02:00
mmc
pci media: solo6x10: replace max(a, min(b, c)) by clamp(b, a, c) 2024-09-04 13:14:58 +02:00
platform media: qcom: camss: Add check for v4l2_fwnode_endpoint_parse 2024-09-12 11:03:52 +02:00
radio media: radio-isa: use dev_name to fill in bus_info 2024-09-04 13:14:53 +02:00
rc media: imon: Fix race getting ictx->lock 2024-08-19 05:33:31 +02:00
spi
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-04-13 12:51:22 +02:00
usb media: uvcvideo: Enforce alignment of frame and interval 2024-09-12 11:03:50 +02:00
v4l2-core media: v4l2-core: hold videodev_lock until dev reg, finishes 2024-06-16 13:28:50 +02:00
Kconfig
Makefile