diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-12-28 14:17:03 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-02-19 16:29:55 +0100 |
| commit | 52917e265aa5f848212f60fc50fc504d8ef12866 (patch) | |
| tree | c68ccdb44d568a4577bd8239823aff359a12f8c6 /include/net/aligned_data.h | |
| parent | 9efa0dc46270a8723c158c64afbcf1dead72b28c (diff) | |
fbdev: smscufx: properly copy ioctl memory to kernelspace
commit 120adae7b42faa641179270c067864544a50ab69 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
