linux/drivers/input
Zhen Ni d3366a0477 Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak
Struct ff_effect_compat is embedded twice inside
uinput_ff_upload_compat, contains internal padding. In particular, there
is a hole after struct ff_replay to satisfy alignment requirements for
the following union member. Without clearing the structure,
copy_to_user() may leak stack data to userspace.

Initialize ff_up_compat to zero before filling valid fields.

Fixes: 2d56f3a32c ("Input: refactor evdev 32bit compat to be shareable with uinput")
Cc: stable@vger.kernel.org
Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
Link: https://lore.kernel.org/r/20250928063737.74590-1-zhen.ni@easystack.cn
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2025-09-28 21:29:03 -07:00
..
gameport Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
joystick Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
keyboard Input: twl4030_keypad - drop support for platform data 2025-09-17 15:00:02 -07:00
misc Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak 2025-09-28 21:29:03 -07:00
mouse Merge branch 'next' into for-linus 2025-08-06 10:08:54 -07:00
rmi4 Input: synaptics-rmi4 - add includes for types used in rmi_2d_sensor.h 2025-09-08 06:39:41 -07:00
serio Input: ps2-gpio - fix typo 2025-09-24 13:46:47 -07:00
tablet Input updates for v6.13-rc0 2024-11-25 10:31:39 -08:00
tests Input updates for v6.11-rc0 2024-07-19 16:51:39 -07:00
touchscreen Input: add driver for Hynitron CST816x series 2025-09-24 22:36:50 -07:00
apm-power.c
evdev.c Input: evdev - switch matching to EV_SYN 2025-07-01 21:02:57 -07:00
ff-core.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
ff-memless.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
input-compat.c Input: move input_bits_to_string() to input-compat.c 2025-08-21 12:00:58 -07:00
input-compat.h Input: move input_bits_to_string() to input-compat.c 2025-08-21 12:00:58 -07:00
input-core-private.h
input-leds.c Input: leds - change config symbol dependency for audio mute trigger 2024-03-03 14:46:06 -08:00
input-mt.c Input: mt - make use of __free() cleanup facility 2024-12-23 22:53:57 -08:00
input-poller.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
input-poller.h
input.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
joydev.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
Kconfig Input: remove evbug driver 2024-12-17 13:53:52 -08:00
Makefile Input: touch-overlay - add touchscreen overlay handling 2025-07-27 01:41:21 -07:00
matrix-keymap.c Input: matrix-keymap - switch to using __free() cleanup facility 2024-08-29 10:59:30 -07:00
mousedev.c
sparse-keymap.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
touch-overlay.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
touchscreen.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
vivaldi-fmap.c Input: add missing MODULE_DESCRIPTION() macros 2024-06-09 14:38:48 -07:00