Revert "usb: typec: ucsi: add a common function ucsi_unregister_connectors()"
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Revert "usb: typec: ucsi: add a common function ucsi_unregister_connectors()"
The recent commit 87d0e2f41b8c ("usb: typec: ucsi: add a common function ucsi_unregister_connectors()") introduced a regression that caused NULL dereference at reading the power supply sysfs. It's a stale sysfs entry that should have been removed but remains with NULL ops. The commit changed the error handling to skip the entries after a NULL con->wq, and this leaves the power device unreleased.
For addressing the regression, the straight revert is applied here. Further code improvements can be done from the scratch again.
From the CVE record · Linux
A regression in the Linux kernel’s USB Type-C UCSI connector cleanup leaves a stale power-supply sysfs entry with NULL operations. Reading that entry can trigger a NULL dereference. The described trigger is a local sysfs read; the input does not specify authentication requirements.
Engineers running Linux kernels that include the affected UCSI change should check their installations; affected versions are not specified.