linux/drivers/media
Vikash Garodia 7e450cc9ad 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>
2023-11-28 16:56:26 +00:00
..
cec media: cec: meson: always include meson sub-directory in Makefile 2023-11-28 16:56:21 +00:00
common media: vb2: frame_vector.c: replace WARN_ONCE with a comment 2023-10-06 13:18:18 +02:00
dvb-core media: dvb-core: Fix use-after-free due to race condition at dvb_ca_en50221 2023-06-09 10:32:24 +02:00
dvb-frontends media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-11-06 14:13:30 +01:00
i2c media: ccs: Fix driver quirk struct documentation 2023-11-28 16:56:20 +00:00
mc media: mc-device.c: use DEVICE_ATTR_RO() helper macro 2021-08-04 14:43:50 +02:00
mmc
pci media: cobalt: Use FIELD_GET() to extract Link Width 2023-11-28 16:56:20 +00:00
platform media: venus: hfi: add checks to perform sanity on queue pointers 2023-11-28 16:56:26 +00:00
radio media: radio-shark: Add endpoint checks 2023-05-30 13:55:31 +01:00
rc media: imon: fix access to invalid resource for the second interface 2023-11-28 16:56:20 +00:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-11-18 19:16:27 +01:00
test-drivers media: vivid: avoid integer overflow 2023-11-28 16:56:20 +00:00
tuners media: tuners: qt1010: replace BUG_ON with a regular error 2023-09-23 11:09:58 +02:00
usb media: gspca: cpia1: shift-out-of-bounds in set_flicker 2023-11-28 16:56:20 +00:00
v4l2-core media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link() 2023-09-19 12:22:43 +02:00
Kconfig media: correct MEDIA_TEST_SUPPORT help text 2022-01-27 11:05:20 +01:00
Makefile