From: Jiale Yao <yaojiale02@163.com>
To: Stefan Achatz <erazor_de@users.sourceforge.net>,
Jiri Kosina <jikos@kernel.org>,
Benjamin Tissoires <bentiss@kernel.org>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Jiale Yao <yaojiale02@163.com>
Subject: [PATCH 0/7] HID: roccat: validate raw report lengths
Date: Thu, 24 Sep 2026 22:29:10 +0800 [thread overview]
Message-ID: <20260924142918.1177952-1-yaojiale02@163.com> (raw)
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
next reply other threads:[~2026-09-24 14:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 14:29 Jiale Yao [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260924142918.1177952-1-yaojiale02@163.com \
--to=yaojiale02@163.com \
--cc=bentiss@kernel.org \
--cc=erazor_de@users.sourceforge.net \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox