KernelScan.io

HIGH Introduced in 6.3

hid Teardown UAF

CVE-2026-98945

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.4MEDIUM

01

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.

02

Engine v0.9.0

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.

Affecteddrivers/hid/hid-steam.c (HID Steam driver)

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.

03

BranchIntroducedFixed inPatch commit
6.126.36.12.11381a8209c09f9
6.186.36.18.5786724f4bcf60
6.66.36.6.160d2587923d50c
7.26.37.2.11b5ea938ff776
mainline6.37.3ddce9641ce92
cip/6.126.36.12.114-cip3481a8209c09f9

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34