[PATCH v2 0/3] xpad packet size checks

From: Griffin Kroah-Hartman

Date: Wed Aug 05 2026 - 05:59:45 EST


Small patchset to add size checks to the process_packet() functions in
xpad, ensuring that OOB data is not accessed.

Signed-off-by: Griffin Kroah-Hartman <griffin@xxxxxxxxx>
---
Changes in v2:
- Now a patchset, covering all process_packet functions
- Link to v1: https://patch.msgid.link/20260727-xpadone_length_checks-v1-1-19aa9331e82d@xxxxxxxxx

To: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
Cc: linux-input@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx

---
Griffin Kroah-Hartman (3):
Input: xpad - add out-of-bounds checks for xpadone
Input: xpad - add packet length check for xpad_process_packet()
Input: xpad - add size checks to xpad360 packet processing

drivers/input/joystick/xpad.c | 49 +++++++++++++++++++++++++++++++++----------
1 file changed, 38 insertions(+), 11 deletions(-)
---
base-commit: f5098b6bae761e346ebcd9da7f95622c04733cff
change-id: 20260727-xpadone_length_checks-08120b97764f

Best regards,
--
Griffin Kroah-Hartman <griffin@xxxxxxxxx>