phy: tegra: xusb: Clear the driver reference in usb-phy dev
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
phy: tegra: xusb: Clear the driver reference in usb-phy dev
For the dual-role port, it will assign the phy dev to usb-phy dev and use the port dev driver as the dev driver of usb-phy.
When we try to destroy the port dev, it will destroy its dev driver as well. But we did not remove the reference from usb-phy dev. This might cause the use-after-free issue in KASAN.
From the CVE record · Linux
The Linux kernel’s Tegra XUSB PHY driver can retain a reference to a device driver after the dual-role port device is destroyed, potentially causing a use-after-free detected by KASAN. The input does not specify how an attacker could trigger this or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the Tegra XUSB PHY driver should check their versions; affected versions are not specified.