]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/exynos: vidi: fix to avoid directly dereferencing user pointer
authorJeongjun Park <aha310510@gmail.com>
Mon, 19 Jan 2026 08:25:52 +0000 (17:25 +0900)
committerInki Dae <inki.dae@samsung.com>
Sun, 1 Feb 2026 14:28:01 +0000 (23:28 +0900)
commitd4c98c077c7fb2dfdece7d605e694b5ea2665085
treefca80cc6dd9e605b000c56a9f83dc7bcf964b350
parentd3968a0d85b211e197f2f4f06268a7031079e0d0
drm/exynos: vidi: fix to avoid directly dereferencing user pointer

In vidi_connection_ioctl(), vidi->edid(user pointer) is directly
dereferenced in the kernel.

This allows arbitrary kernel memory access from the user space, so instead
of directly accessing the user pointer in the kernel, we should modify it
to copy edid to kernel memory using copy_from_user() and use it.

Cc: <stable@vger.kernel.org>
Signed-off-by: Jeongjun Park <aha310510@gmail.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_vidi.c