What’s Vulnerable › Vulnerabilities
CVE-2023-53238: phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-15 · updated 2026-06-17
- Weakness: CWE-125
Description
In the Linux kernel, the following vulnerability has been resolved: phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe() The size of array 'priv->ports[]' is INNO_PHY_PORT_NUM. In the for loop, 'i' is used as the index for array 'priv->ports[]' with a check (i > INNO_PHY_PORT_NUM) which indicates that INNO_PHY_PORT_NUM is allowed value for 'i' in the same loop. This > comparison needs to be changed to >=, otherwise it potentially leads to an out of bounds write on the next iteration through the loop
Affected products
- Linux kernel: from 4.17 before 4.19.291; from 4.20 before 5.4.253; from 5.5 before 5.10.190; from 5.11 before 5.15.124; from 5.16 before 6.1.43; from 6.2 before 6.4.8 — fixed in 4.19.291, 5.10.190, 5.15.124, 5.4.253, 6.1.43, 6.4.8
How to fix
Upgrade to a fixed version: Linux kernel 4.19.291, 5.10.190, 5.15.124, 5.4.253. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/01cb355bb92e8fcf8306e11a4774d610c5864e39
- https://git.kernel.org/stable/c/13c088cf3657d70893d75cf116be937f1509cc0f
- https://git.kernel.org/stable/c/195e806b2afb0bad6470c9094f7e45e0cf109ee0
- https://git.kernel.org/stable/c/2843a2e703f5cb85c9eeca11b7ee90861635a010
- https://git.kernel.org/stable/c/6d8a71e4c3a2fa4960cc50996e76a42b62fab677
- https://git.kernel.org/stable/c/ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8
- https://git.kernel.org/stable/c/ce69eac840db0b559994dc4290fce3d7c0d7bccd
Get alerted when CVE-2023-53238 or the next vulnerability affects your stack