diff options
author | Lv Yunlong <lyl2019@mail.ustc.edu.cn> | 2021-05-09 10:12:31 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-06-02 13:17:24 +0200 |
commit | 01fe904c9afd26e79c1f73aa0ca2e3d785e5e319 (patch) | |
tree | 46c828addfc416fdad2ff0ca3f67f1ce2956c417 /scripts/selinux | |
parent | f9c2fd3bb85768f35e1d2bb6b357a214db3b7817 (diff) | |
download | linux-stable-01fe904c9afd26e79c1f73aa0ca2e3d785e5e319.tar.gz linux-stable-01fe904c9afd26e79c1f73aa0ca2e3d785e5e319.tar.bz2 linux-stable-01fe904c9afd26e79c1f73aa0ca2e3d785e5e319.zip |
media: exynos4-is: Fix a use after free in isp_video_release
In isp_video_release, file->private_data is freed via
_vb2_fop_release()->v4l2_fh_release(). But the freed
file->private_data is still used in v4l2_fh_is_singular_file()
->v4l2_fh_is_singular(file->private_data), which is a use
after free bug.
My patch uses a variable 'is_singular_file' to avoid the uaf.
v3: https://lore.kernel.org/patchwork/patch/1419058/
Fixes: 34947b8aebe3f ("[media] exynos4-is: Add the FIMC-IS ISP capture DMA driver")
Signed-off-by: Lv Yunlong <lyl2019@mail.ustc.edu.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'scripts/selinux')
0 files changed, 0 insertions, 0 deletions