CVE-2026-139545: phy: rockchip: usbdp: Avoid xHCI SErrors
In the Linux kernel, the following vulnerability has been resolved:
phy: rockchip: usbdp: Avoid xHCI SErrors
The USBDP PHY provides the PIPE clock to the USB3 controller, which means the PHY must be fully running when anything tries to access the xHCI registers.
When switching between USB3-only, USB3 + DP and DP-only mode, the PHY must be re-initialized resulting in a short period of the PHY being disabled. If the DWC3 driver decides to access the xHCI at this point the system will fail with an SError.
This patch avoids the problems by disabling the USB3 port before re-initializing it. This does a couple of things:
- forces phystatus to 0 from GRF (not from PHY) - switches PIPE clock source from PHY to UTMI (safe fallback clock) - numu3port=0
The last part will be ignored, as DWC3 already probed, but the clock re-routing will avoid the SError. There is a small delay afterwards to make sure the mux happened. The datasheet gives no hints how long it takes, so delay time is a guess.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Configuration
Set num_u3_port to 0 to disable the USB3 port before re-initializing the PHY.
DWC3 num_u3_port = 0 - Configuration
Switch the PIPE clock source from the PHY to UTMI during clock re-routing.
Rockchip USBDP PHY PIPE clock source = UTMI - Configuration
Force phystatus to 0 using GRF rather than sourcing it from the PHY.
Rockchip USBDP PHY phystatus = 0 from GRF
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue applies to Linux systems using the Rockchip USBDP PHY with a USB3 controller whose PIPE clock is supplied by that PHY, including configurations using the DWC3/xHCI stack. The failure condition occurs when the PHY is re-initialized during USB3-only, USB3 plus DisplayPort, or DisplayPort-only mode changes.
What event triggers the system failure?
An SError can occur if the DWC3 driver accesses xHCI registers during the short interval in which the USBDP PHY is disabled for re-initialization. The provided information does not identify a trigger outside of these mode-switching transitions.
What does the fix change to prevent the SError?
The fix disables the USB3 port before re-initializing the PHY, forces PHY status through GRF, and switches the PIPE clock from the PHY to the UTMI fallback clock. It also adds a delay to allow the clock mux change to complete before continuing.