mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/7] HID: roccat: validate raw report lengths
@ 2026-09-24 14:29 Jiale Yao
  2026-09-24 14:29 ` [PATCH 1/7] HID: roccat: isku: reject short button reports Jiale Yao
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Jiale Yao @ 2026-09-24 14:29 UTC (permalink / raw)
  To: Stefan Achatz, Jiri Kosina, Benjamin Tissoires, linux-input,
	linux-kernel
  Cc: Jiale Yao

Roccat raw event callbacks receive the report before HID core validates
and pads its length.  Seven callbacks inspect fixed-format reports without
first ensuring that the complete report was received.

Add per-driver length checks before parsing or forwarding these reports.
The first five patches protect helpers which read fixed fields, while the
konepure and ryos patches additionally prevent a fixed-size copy of a
truncated report into the Roccat character-device event stream.

Each patch is independent and fixes the driver named in its subject.

Jiale Yao (7):
  HID: roccat: isku: reject short button reports
  HID: roccat: koneplus: reject short button reports
  HID: roccat: konepure: reject short button reports
  HID: roccat: kovaplus: reject short button reports
  HID: roccat: pyra: reject short button reports
  HID: roccat: ryos: reject short special reports
  HID: roccat: savu: reject short special reports

 drivers/hid/hid-roccat-isku.c     | 3 +++
 drivers/hid/hid-roccat-koneplus.c | 3 +++
 drivers/hid/hid-roccat-konepure.c | 3 +++
 drivers/hid/hid-roccat-kovaplus.c | 3 +++
 drivers/hid/hid-roccat-pyra.c     | 3 +++
 drivers/hid/hid-roccat-ryos.c     | 3 +++
 drivers/hid/hid-roccat-savu.c     | 3 +++
 7 files changed, 21 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-10-15 16:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-24 14:29 [PATCH 0/7] HID: roccat: validate raw report lengths Jiale Yao
2026-09-24 14:29 ` [PATCH 1/7] HID: roccat: isku: reject short button reports Jiale Yao
2026-09-24 14:29 ` [PATCH 2/7] HID: roccat: koneplus: " Jiale Yao
2026-09-24 14:29 ` [PATCH 3/7] HID: roccat: konepure: " Jiale Yao
2026-09-24 14:29 ` [PATCH 4/7] HID: roccat: kovaplus: " Jiale Yao
2026-09-24 14:29 ` [PATCH 5/7] HID: roccat: pyra: " Jiale Yao
2026-09-24 14:29 ` [PATCH 6/7] HID: roccat: ryos: reject short special reports Jiale Yao
2026-09-24 14:29 ` [PATCH 7/7] HID: roccat: savu: " Jiale Yao
2026-10-15 16:43 ` [PATCH 0/7] HID: roccat: validate raw report lengths Benjamin Tissoires

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®