HomeDefectsLIN1025-2052
Fixed

LIN1025-2052 : Security Advisory - linux - CVE-2025-38010

Created: Jun 18, 2025    Updated: Sep 1, 2025
Resolved Date: Jun 19, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]phy: tegra: xusb: Use a bitmask for UTMI pad power state tracking[EOL][EOL]The current implementation uses bias_pad_enable as a reference count to[EOL]manage the shared bias pad for all UTMI PHYs. However, during system[EOL]suspension with connected USB devices, multiple power-down requests for[EOL]the UTMI pad result in a mismatch in the reference count, which in turn[EOL]produces warnings such as:[EOL][EOL][  237.762967] WARNING: CPU: 10 PID: 1618 at tegra186_utmi_pad_power_down+0x160/0x170[EOL][  237.763103] Call trace:[EOL][  237.763104]  tegra186_utmi_pad_power_down+0x160/0x170[EOL][  237.763107]  tegra186_utmi_phy_power_off+0x10/0x30[EOL][  237.763110]  phy_power_off+0x48/0x100[EOL][  237.763113]  tegra_xusb_enter_elpg+0x204/0x500[EOL][  237.763119]  tegra_xusb_suspend+0x48/0x140[EOL][  237.763122]  platform_pm_suspend+0x2c/0xb0[EOL][  237.763125]  dpm_run_callback.isra.0+0x20/0xa0[EOL][  237.763127]  __device_suspend+0x118/0x330[EOL][  237.763129]  dpm_suspend+0x10c/0x1f0[EOL][  237.763130]  dpm_suspend_start+0x88/0xb0[EOL][  237.763132]  suspend_devices_and_enter+0x120/0x500[EOL][  237.763135]  pm_suspend+0x1ec/0x270[EOL][EOL]The root cause was traced back to the dynamic power-down changes[EOL]introduced in commit a30951d31b25 ("xhci: tegra: USB2 pad power controls"),[EOL]where the UTMI pad was being powered down without verifying its current[EOL]state. This unbalanced behavior led to discrepancies in the reference[EOL]count.[EOL][EOL]To rectify this issue, this patch replaces the single reference counter[EOL]with a bitmask, renamed to utmi_pad_enabled. Each bit in the mask[EOL]corresponds to one of the four USB2 PHYs, allowing us to track each pad's[EOL]enablement status individually.[EOL][EOL]With this change:[EOL]  - The bias pad is powered on only when the mask is clear.[EOL]  - Each UTMI pad is powered on or down based on its corresponding bit[EOL]    in the mask, preventing redundant operations.[EOL]  - The overall power state of the shared bias pad is maintained[EOL]    correctly during suspend/resume cycles.[EOL][EOL]The mutex used to prevent race conditions during UTMI pad enable/disable[EOL]operations has been moved from the tegra186_utmi_bias_pad_power_on/off[EOL]functions to the parent functions tegra186_utmi_pad_power_on/down. This[EOL]change ensures that there are no race conditions when updating the bitmask.

CREATE(Triage):(User=lchen-cn) [CVE-2025-38010 (https://nvd.nist.gov/vuln/detail/CVE-2025-38010)