KernelScan.io

HIGH Introduced in 4.20

hid-steam Registration UAF

CVE-2026-98944

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 AI7.5HIGH

01

In the Linux kernel, the following vulnerability has been resolved: HID: steam: Refactor registration This refactors and simplifies the registration/unregistration flow. Since we now only perform registration when the client isn't opened anymore, the logic for handling that can be removed, and the rest of the function streamlined. We also remove the previous assumption that we have a serial number to show we're registered, replacing it with a single purpose boolean. In a previous refactor the code for unregistering a battery if later registration steps failed was accidentally left out. As a result, a lingering power_supply object could get left over after the steam object was torn down. This is also fixed here.

02

Engine v0.9.0

Risk summary

A Steam Controller (USB or Bluetooth) that triggers a registration failure after battery registration but before full device registration leaves a power_supply object registered while the backing steam_device is freed. An attacker with physical or Bluetooth proximity can exploit this use-after-free to read or write kernel memory, potentially achieving privilege escalation or kernel crash.

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

Vulnerability analysis

The Steam Controller HID driver's registration function would register the battery power_supply early, but if later steps (input or sensor registration) failed, the error path omitted the battery unregistration. When the device was subsequently disconnected, the steam_device was torn down while the power_supply remained registered in the kernel. Any subsequent access to that power_supply (e.g., reading battery status via sysfs) would invoke callbacks operating on the already-freed steam_device, creating a use-after-free condition. The fix introduces a dedicated 'registered' flag to track state, ensures battery unregistration and work cancellation on all failure paths, and simplifies the unregistration logic to match.

03

BranchIntroducedFixed inPatch commit
4.194.19.64.206e44418d3a06
5.104.205.10.273bdfad7759fef
5.154.205.15.22439568571aee4
6.14.206.1.1913c2f97343d4d
6.124.206.12.113cf71a6ee1d4e
6.184.206.18.57c06cf54fe99b
6.64.206.6.1602b15e10aff95
7.24.207.2.116f9b740c31ba
mainline4.207.3—
cip/6.124.206.12.114-cip342b15e10aff95

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
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)