media: venus: hfi: add a check to handle OOB in sfr region
sfr->buf_size is in shared memory and can be modified by malicious user. OOB write is possible when the size is made higher than actual sfr data buffer. Cap the size to allocated size for such cases. Cc: stable@vger.kernel.org Fixes: d96d3f30 ("[media] media: venus: hfi: add Venus HFI files") Reviewed-by:Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by:
Vikash Garodia <quic_vgarodia@quicinc.com> Signed-off-by:
Hans Verkuil <hverkuil@xs4all.nl>
Loading
-
mentioned in commit f68d78b7
-
mentioned in commit b1d30f45
-
mentioned in commit 4c9a3017
-
mentioned in commit c3c8ab47
-
mentioned in commit 0f2dc992
-
mentioned in commit 93355c88
-
mentioned in commit a8e40098
-
mentioned in commit 5d5dea1d
-
mentioned in commit 97c498e5
-
mentioned in commit 6be33fb8
-
mentioned in commit 9675ac51
-
mentioned in commit 10b273e4
-
mentioned in commit 27c9a782
-
mentioned in commit 016be6d9
-
mentioned in commit c3937986
-
mentioned in commit 9341d372
-
mentioned in commit d6712dce
-
mentioned in commit f691f9ad
Please sign in to comment