Home
last modified time | relevance | path

Searched hist:"66 fa52edd32cdbb675f0803b3c4da10ea19b6635" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/platform/qcom/venus/
H A Dvdec.cdiff 66fa52edd32cdbb675f0803b3c4da10ea19b6635 Thu May 09 00:14:29 CDT 2024 Dikshita Agarwal <quic_dikshita@quicinc.com> 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>