HID: hid-steam: Fix use-after-free when detaching device
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
≥ 6.12.16 · < 6.12.19≥ 6.13.4 · < 6.13.7| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
HID: hid-steam: Fix use-after-free when detaching device
When a hid-steam device is removed it must clean up the client_hdev used for intercepting hidraw access. This can lead to scheduling deferred work to reattach the input device. Though the cleanup cancels the deferred work, this was done before the client_hdev itself is cleaned up, so it gets rescheduled. This patch fixes the ordering to make sure the deferred work is properly canceled.
From the CVE record · Linux
The Linux kernel’s hid-steam driver has a use-after-free during device removal. Cleaning up a device can reschedule deferred work after that work has been canceled. The input does not specify an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with the hid-steam driver should check their installations; affected versions are not specified.