CVE-2026-142902: HID: asus: document and harden the worker teardown
In the Linux kernel, the following vulnerability has been resolved:
HID: asus: document and harden the worker teardown
asuswork() executes actions against the device: they send feature reports with hidhwrawrequest() and, for the Fn+F5 fan key fallback, re-inject the raw report into the HID core with hidreportrawevent().
For this reason the worker must be quiesced before hidhwstop(): after the low level driver has stopped, the transport is gone (usbhidstop() frees the URBs and the I/O buffers) and re-injected reports would race against the input devices being unregistered by hiddisconnect().
Make so that the teardown cannot race to a use-after-free: every site queueing an action holds worker->lock across the .removed check, the list insertion and schedulework(), and asusworkerstop() sets .removed and drains the queue under that same lock before calling cancelworksync(). An action that passed the check is caught by the latter while any later attempt is discarded by asusworkerschedule().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the ASUS HID driver teardown, quiesce the worker before hid_hw_stop(); under worker->lock, set .removed and drain the queue before calling cancel_work_sync(). Keep the .removed check, queue insertion, and schedule_work() synchronized under the same lock.
Event History
Frequently Asked Questions
When can the use-after-free race occur?
It can occur during device teardown if queued ASUS HID worker actions are still able to run after the HID device has been stopped. The affected worker may send feature reports or re-inject raw HID reports while the underlying transport and input devices are being removed.
What systems are exposed to this condition?
Systems using the Linux kernel ASUS HID driver are relevant when the associated device is disconnected or otherwise torn down while worker actions are queued. The description specifically identifies actions associated with device control and the Fn+F5 fan-key fallback.
How does the fix prevent the race?
The fix serializes scheduling and shutdown with the worker lock. Teardown marks the worker removed and drains queued actions before synchronously cancelling the worker, while attempts to queue actions after removal are discarded.