]> git.ipfire.org Git - thirdparty/linux.git/commit
fbdev: smscufx: properly copy ioctl memory to kernelspace
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Dec 2025 13:17:03 +0000 (14:17 +0100)
committerHelge Deller <deller@gmx.de>
Sat, 14 Feb 2026 10:07:12 +0000 (11:07 +0100)
commit120adae7b42faa641179270c067864544a50ab69
treef31383c417cd97d9c05d04a330b48a3e2f1a32a8
parent0209e21e3c372fa2da04c39214bec0b64e4eb5f4
fbdev: smscufx: properly copy ioctl memory to kernelspace

The UFX_IOCTL_REPORT_DAMAGE ioctl does not properly copy data from
userspace to kernelspace, and instead directly references the memory,
which can cause problems if invalid data is passed from userspace.  Fix
this all up by correctly copying the memory before accessing it within
the kernel.

Reported-by: Tianchu Chen <flynnnchen@tencent.com>
Cc: stable <stable@kernel.org>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Cc: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/smscufx.c