HIGH Introduced in 6.3
hid Teardown UAF
CVE-2026-98945
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.4MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: HID: steam: Rearrange teardown sequence This fixes a narrow window during the teardown sequence where callbacks could still be scheduled during cleanup that would then have a dangling pointer to the now-freed steam struct. This also puts work canceling for rumble and mode switch in steam_unregister, as that shouldn't persist while the client hdev is open.
02KernelScan AI Analysis
Risk summary
A use-after-free in the Steam Controller HID driver's device removal path allows a physically proximate attacker to execute arbitrary code in the kernel by plugging in a malicious Steam-compatible USB device and triggering its removal. The vulnerability affects all Linux kernels from 2.6.12 through the fixed versions.
Vulnerability analysis
During device removal, the Steam HID driver originally destroyed the client HID device and canceled work items in an order that left a narrow race window: hardware callbacks could still fire after the steam_device structure was freed, leading to a use-after-free. The fix reorders the teardown sequence so the hardware is closed first, the client device is destroyed, a 'client opened' flag is cleared under a spinlock, and all work items (rumble, mode switch, coalesce rumble, connect) are canceled only after the device can no longer generate callbacks. The steam_unregister() function now handles the work cancellation, ensuring no dangling pointers remain when the structure is finally freed.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.3 | 6.12.113 | 81a8209c09f9 |
| 6.18 | 6.3 | 6.18.57 | 86724f4bcf60 |
| 6.6 | 6.3 | 6.6.160 | d2587923d50c |
| 7.2 | 6.3 | 7.2.11 | b5ea938ff776 |
| mainline | 6.3 | 7.3 | ddce9641ce92 |
| cip/6.12 | 6.3 | 6.12.114-cip34 | 81a8209c09f9 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |