usb: typec: ucsi: glink: fix use-after-free of ucsi on remove
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ee8577de01c6b6c7dd1d76b52242c54d37a989f4, Kernel 41934f92e7a54d4080ac0b17aacc83224946785c, Kernel 432b58cd959e594909a581b4974396cdbc9d4ca1 and 4 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=62b5412b1f4afab27d8df90ddcabb8e1e11a00ad <ee8577de01c6b6c7dd1d76b52242c54d37a989f4, >=62b5412b1f4afab27d8df90ddcabb8e1e11a00ad <41934f92e7a54d4080ac0b17aacc83224946785c, >=62b5412b1f4afab27d8df90ddcabb8e1e11a00ad <432b58cd959e594909a581b4974396cdbc9d4ca1, >=62b5412b1f4afab27d8df90ddcabb8e1e11a00ad <63b269ec537dc0fd26d0bd64872c26860d108c9d, =6.4 | ee8577de01c6b6c7dd1d76b52242c54d37a989f4, 41934f92e7a54d4080ac0b17aacc83224946785c, 432b58cd959e594909a581b4974396cdbc9d4ca1, 63b269ec537dc0fd26d0bd64872c26860d108c9d |
| linux-kernel: Kernel | >=6.19.0 <7.2.10, >=6.4.0 <6.12.113, >=6.13.0 <6.18.56 | 7.2.10, 6.12.113, 6.18.56 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket