[PATCH v4 0/5] HID: asus: security fixes and more hardware support

From: Denis Benato

Date: Mon Jun 15 2026 - 12:59:28 EST


Hi all,

I have added support for controlling the (way too bright) XG mobile
LEDs in hid-asus and added the i2c version of already supported
hardware that was probed only when it's a USB: these are two separate
features changes and are the only two that are not fixes for
pre-existing issue (see below).

Auto-review bot has spotted a bunch of pre-existing problems alongside
problems in my own code therefore at this point I am going to fix the
more problems I can and including those fixes and improvements in this
patchset.

For v4 I decided to follow Antheas' suggestion of reusing the existing
workqueue and by making it more generic I solved a good bunch of issues.

Link: https://lore.kernel.org/all/20260612124830.984592-1-denis.benato@xxxxxxxxx/
Link: https://lore.kernel.org/all/30258f28-4036-4e99-9494-031212544dc2@xxxxxxxxx/

Best regards,
Denis Benato

Link v2: https://lore.kernel.org/all/20260612142326.1704858-1-denis.benato@xxxxxxxxx/
Link v3: https://lore.kernel.org/all/20260613153029.2559774-1-denis.benato@xxxxxxxxx/

Changelog:
- v1
- Initial submission (as separate patches)
- v2
- HID: asus: add i2c entry for FA808UM and other TUFs
- Joined to the patchset
- HID: asus: add support for xgm led
- Use the correct callback set_brightness_blocking
- Stop hardcoding the cled name
- HID: asus: prevent wrong pointer cast
- Added
- HID: asus: mitigate possible use-after-free
- Added
- v3
- HID: asus: add support for xgm led
- check devm_kasprintf result
- HID: asus: prevent a late KEY_FN_ESC to trigger a use-after-free
- Added
- HID: asus: avoid sleeping calls in atomic context
- Added
- HID: asus: cleanup keyboard listener on failure: avoid use-after-free
- Added
- v4
- HID: asus: refactor the two workqueues and init sequence
- Added to replace previous patches in a clearer way
- HID: asus: add support for xgm led
- Simplify cled interface allocation and registration

Denis Benato (5):
HID: asus: refactor the two workqueues and init sequence
HID: asus: remove unnecessary OOM message
HID: asus: fix a off-by-one issue making a check stricter that it
needs to be
HID: asus: add support for xgm led
HID: asus: add i2c entry for FA808UM and other TUFs

drivers/hid/hid-asus.c | 483 +++++++++++++++++++++++++++++++----------
1 file changed, 373 insertions(+), 110 deletions(-)

--
2.47.3