phy: fsl-imx8mq-usb: fix typec switch leak on probe error path
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 |
|
|
6.18.507.2.47.3In the Linux kernel, the following vulnerability has been resolved:
phy: fsl-imx8mq-usb: fix typec switch leak on probe error path
If probe fails after imx95_usb_phy_get_tca() succeeds, the typec switch leaks because the only cleanup path was in .remove(), which never runs on probe failure.
Use devm_add_action_or_reset() so the switch is cleaned up on both probe failure and driver removal. The imx95_usb_phy_put_tca() is no longer needed, it will be removed in .remove() too.
From the CVE record · Linux
The Linux kernel’s fsl-imx8mq-usb PHY driver leaks a Type-C switch if probing fails after imx95_usb_phy_get_tca() succeeds. The input does not establish whether an attacker can trigger this failure or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the fsl-imx8mq-usb PHY driver should check their kernel version; affected versions are not specified.