kernel_samsung_a53x/drivers/media/platform
Dikshita Agarwal 18a39796e6 media: venus: fix use after free in vdec_close
commit a0157b5aa34eb43ec4c5510f9c260bbb03be937e upstream.

There appears to be a possible use after free with vdec_close().
The firmware will add buffer release work to the work queue through
HFI callbacks as a normal part of decoding. Randomly closing the
decoder device from userspace during normal decoding can incur
a read after free for inst.

Fix it by cancelling the work in vdec_close.

Cc: stable@vger.kernel.org
Fixes: af2c3834c8ca ("[media] media: venus: adding core part and helper functions")
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Acked-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>
2024-11-23 23:20:12 +01:00
..
am437x
atmel
cadence
coda
davinci
exynos
exynos-gsc
exynos4-is
marvell-ccic
mtk-jpeg media: mtk-jpeg: Fix use after free bug due to error path handling in mtk_jpeg_dec_device_run 2024-11-18 12:13:06 +01:00
mtk-mdp media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-11-19 08:44:55 +01:00
mtk-vcodec media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-11-19 08:44:55 +01:00
mtk-vpu media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-11-19 08:44:55 +01:00
omap
omap3isp
qcom media: venus: fix use after free in vdec_close 2024-11-23 23:20:12 +01:00
rcar-vin
rockchip/rga media: rockchip: rga: fix swizzling for RGB formats 2024-11-18 12:13:18 +01:00
s3c-camif
s5p-g2d
s5p-jpeg
s5p-mfc
sti
stm32
sunxi media: sun8i-di: Fix chroma difference threshold 2024-11-19 08:44:54 +01:00
ti-vpe
vsp1 media: renesas: vsp1: Store RPF partition configuration per RPF instance 2024-11-23 23:20:09 +01:00
xilinx
aspeed-video.c
fsl-viu.c
imx-pxp.c
imx-pxp.h
Kconfig
m2m-deinterlace.c
Makefile
mx2_emmaprp.c
pxa_camera.c
rcar-fcp.c
rcar_drif.c
rcar_fdp1.c
rcar_jpu.c
renesas-ceu.c
sh_vou.c
via-camera.c
via-camera.h
video-mux.c