usb: typec: tcpci_rt1711h: unregister TCPCI port with devres
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 302c570bf36e997d55ad0d60628a2feec76954a4 · < e8da46d99d3710106e7c44db14566bf9b57386b5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: tcpci_rt1711h: unregister TCPCI port with devres
rt1711h_probe() registers the TCPCI port before requesting the interrupt and enabling alert interrupts. If either of those later steps fails, the probe function returns without unregistering the TCPCI port. The explicit unregister currently only happens from the remove callback.
Register a devres action immediately after tcpci_register_port() succeeds, so tcpci_unregister_port() runs on later probe failures and on driver detach. Drop the remove callback to avoid unregistering the same port twice.
This issue was identified during our ongoing static-analysis research while reviewing kernel code.
From the CVE record · Linux
The Linux kernel's tcpci_rt1711h driver can leave a registered TCPCI port behind if interrupt setup or alert enabling fails during probe. The input does not describe how an attacker could trigger this failure or specify access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check whether their kernel includes the affected tcpci_rt1711h driver; affected versions are not specified.