# CVE-2023-53238: phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()

- Severity: High 7.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:22:12.160Z
- Modified: 2026-06-17T06:44:35.840Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from ba8b0ee81fbbc249e60f84bf097bd56e8047c742 before 2843a2e703f5cb85c9eeca11b7ee90861635a010; from ba8b0ee81fbbc249e60f84bf097bd56e8047c742 before 195e806b2afb0bad6470c9094f7e45e0cf109ee0; from ba8b0ee81fbbc249e60f84bf097bd56e8047c742 before ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8; from ba8b0ee81fbbc249e60f84bf097bd56e8047c742 before 6d8a71e4c3a2fa4960cc50996e76a42b62fab677; from ba8b0ee81fbbc249e60f84bf097bd56e8047c742 before 01cb355bb92e8fcf8306e11a4774d610c5864e39; from ba8b0ee81fbbc249e60f84bf097bd56e8047c742 before ce69eac840db0b559994dc4290fce3d7c0d7bccd; from ba8b0ee81fbbc249e60f84bf097bd56e8047c742 before 13c088cf3657d70893d75cf116be937f1509cc0f; 4.17 (not affected: before 4.17; from 4.19.291 up to 4.19.*; from 5.4.253 up to 5.4.*; from 5.10.190 up to 5.10.*; from 5.15.124 up to 5.15.*; from 6.1.43 up to 6.1.*; from 6.4.8 up to 6.4.*; from 6.5 up to *)
- linux 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; 6.5

## Every score

- CISA-ADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2843a2e703f5cb85c9eeca11b7ee90861635a010> (patch)
- <https://git.kernel.org/stable/c/195e806b2afb0bad6470c9094f7e45e0cf109ee0> (patch)
- <https://git.kernel.org/stable/c/ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8> (patch)
- <https://git.kernel.org/stable/c/6d8a71e4c3a2fa4960cc50996e76a42b62fab677> (patch)
- <https://git.kernel.org/stable/c/01cb355bb92e8fcf8306e11a4774d610c5864e39> (patch)
- <https://git.kernel.org/stable/c/ce69eac840db0b559994dc4290fce3d7c0d7bccd> (patch)
- <https://git.kernel.org/stable/c/13c088cf3657d70893d75cf116be937f1509cc0f> (patch)

## Sources

- CVE List: [CVE-2023-53238](https://www.cve.org/CVERecord?id=CVE-2023-53238), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53238](https://nvd.nist.gov/vuln/detail/CVE-2023-53238), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53238 · Whole record: https://cve.day/CVE-2023-53238.json · Rebuilt by cve.day 2026-11-25T22:58:34.790Z
