HIGH Introduced in 6.4
ucsi Glink UAF
CVE-2026-98758
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: usb: typec: ucsi: glink: fix use-after-free of ucsi on remove The pmic_glink client is released by the devres cleanup, which runs after pmic_glink_ucsi_remove() has returned, so its notification callbacks can queue work until then. Work that runs after ucsi_unregister() has been called touches freed state: it dereferences the connector array that ucsi_unregister() freed, or registers and unregisters the instance a second time. Disable both work items with disable_work_sync() before unregistering, and unregister only if the instance is still registered. This issue was found by an in-house static analysis tool.
02KernelScan AI Analysis
Risk summary
A use-after-free in the PMIC Glink UCSI driver's remove path allows a local privileged attacker to corrupt kernel memory by triggering device removal. The freed UCSI instance can be accessed by pending work items that run after the driver's cleanup completes, leading to privilege escalation or kernel panic.
Vulnerability analysis
When the PMIC Glink UCSI driver is removed, it unregisters the UCSI instance and frees its connector array, but the underlying pmic_glink client is not released until the devres cleanup runs afterward. During this window, notification callbacks from the client can still queue work items that dereference the already-freed UCSI state or attempt to re-register the instance. The fix disables both work items synchronously before unregistering, ensuring no pending or future work can access the freed memory, and adds a guard flag to prevent double-unregistration.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.4 | 6.12.113 | 432b58cd959e |
| 6.18 | 6.4 | 6.18.56 | 41934f92e7a5 |
| 7.2 | 6.4 | 7.2.10 | ee8577de01c6 |
| mainline | 6.4 | 7.3 | 63b269ec537d |
| cip/6.12 | 6.4 | 6.12.114-cip34 | 432b58cd959e |
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 |