01fe904c9a
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:
|
||
---|---|---|
.. | ||
common.c | ||
common.h | ||
fimc-capture.c | ||
fimc-core.c | ||
fimc-core.h | ||
fimc-is-command.h | ||
fimc-is-errno.c | ||
fimc-is-errno.h | ||
fimc-is-i2c.c | ||
fimc-is-i2c.h | ||
fimc-is-param.c | ||
fimc-is-param.h | ||
fimc-is-regs.c | ||
fimc-is-regs.h | ||
fimc-is-sensor.c | ||
fimc-is-sensor.h | ||
fimc-is.c | ||
fimc-is.h | ||
fimc-isp-video.c | ||
fimc-isp-video.h | ||
fimc-isp.c | ||
fimc-isp.h | ||
fimc-lite-reg.c | ||
fimc-lite-reg.h | ||
fimc-lite.c | ||
fimc-lite.h | ||
fimc-m2m.c | ||
fimc-reg.c | ||
fimc-reg.h | ||
Kconfig | ||
Makefile | ||
media-dev.c | ||
media-dev.h | ||
mipi-csis.c | ||
mipi-csis.h |