[PATCH v3] phy: exynos5-usbdrd: Use dynamic phy_cfg size to prevent OOB access

Vinod Koul vkoul at kernel.org
Thu Nov 12 03:26:55 PST 2026


On Tue, 20 Oct 2026 12:05:59 +0530, Selvarasu Ganesan wrote:
> The probe loop currently iterates using EXYNOS5_DRDPHYS_NUM (2),
> creating both UTMI and PIPE3 PHY instances regardless of the SoC
> capability. Several SoCs (Exynos2200, Exynos7870, Exynos850, Exynos990,
> and ExynosAutoV920) provide phy_cfg arrays containing only a single
> element.
> 
> On these SoCs, when the loop reaches index 1, the driver reads past the
> end of the rodata array, populating the second PHY instance with garbage
> data. Since the configuration structure contains critical function
> pointers (phy_isol, phy_init, set_refclk), any subsequent access to this
> PHY instance via exynos5_usbdrd_phy_xlate could result in a kernel oops.
> 
> [...]

Applied, thanks!

[1/1] phy: exynos5-usbdrd: Use dynamic phy_cfg size to prevent OOB access
      commit: ba6618a1e7c02f384069f7817133ff8cb5c793b8

Best regards,
-- 
~Vinod





More information about the linux-phy mailing list