Re: [PATCH] fbdev: smscufx: properly copy ioctl memory to kernelspace
From: Helge Deller
Date: Tue Dec 30 2025 - 03:38:39 EST
On 12/28/25 14:17, Greg Kroah-Hartman wrote:
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@xxxxxxxxxxx>
Cc: stable <stable@xxxxxxxxxx>
Cc: Steve Glendinning <steve.glendinning@xxxxxxxxxxx>
Cc: Helge Deller <deller@xxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
drivers/video/fbdev/smscufx.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
applied to fbdev git tree.
Thanks!
Helge