linux/drivers/media
Vikash Garodia 074aed64f3 media: venus: hfi: add checks to perform sanity on queue pointers
commit 5e538fce33 upstream.

Read and write pointers are used to track the packet index in the memory
shared between video driver and firmware. There is a possibility of OOB
access if the read or write pointer goes beyond the queue memory size.
Add checks for the read and write pointer to avoid OOB access.

Cc: stable@vger.kernel.org
Fixes: d96d3f30c0 ("[media] media: venus: hfi: add Venus HFI files")
Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2023-11-28 17:19:54 +00:00
..
cec media: cec: meson: always include meson sub-directory in Makefile 2023-11-20 11:59:33 +01:00
common media: vb2: frame_vector.c: replace WARN_ONCE with a comment 2023-09-14 23:31:55 +02:00
dvb-core lib/math: Move dvb_math.c into lib/math/int_log.c 2023-07-09 22:47:48 +01:00
dvb-frontends media: dvb: symbol fixup for dvb_attach() 2023-09-09 08:15:11 +01:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: ccs: Fix driver quirk struct documentation 2023-11-28 17:19:47 +00:00
mc media: mc: Make media_get_pad_index() use pad type flag 2023-05-25 16:21:22 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: cobalt: Use FIELD_GET() to extract Link Width 2023-11-28 17:19:47 +00:00
platform media: venus: hfi: add checks to perform sanity on queue pointers 2023-11-28 17:19:54 +00:00
radio media: wl128x: Fix spelling mistake "Transfered" -> "Transferred" 2023-07-19 12:57:48 +02:00
rc media: imon: fix access to invalid resource for the second interface 2023-11-28 17:19:47 +00:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: vivid: avoid integer overflow 2023-11-28 17:19:46 +00:00
tuners media: dvb: symbol fixup for dvb_attach() 2023-09-09 08:15:11 +01:00
usb media: gspca: cpia1: shift-out-of-bounds in set_flicker 2023-11-28 17:19:46 +00:00
v4l2-core media: subdev: Don't report V4L2_SUBDEV_CAP_STREAMS when the streams API is disabled 2023-10-11 14:52:57 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00