CVE-2023-53238

phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()

State
Published
Severity
7.1 High
Published
Sep 15, 2025
Updated
May 11, 2026
Reserved
Sep 15, 2025

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • ba8b0ee81fbbc249e60f84bf097bd56e8047c742 to before 2843a2e703f5cb85c9eeca11b7ee90861635a010Affected
  • ba8b0ee81fbbc249e60f84bf097bd56e8047c742 to before 195e806b2afb0bad6470c9094f7e45e0cf109ee0Affected
  • ba8b0ee81fbbc249e60f84bf097bd56e8047c742 to before ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8Affected
  • ba8b0ee81fbbc249e60f84bf097bd56e8047c742 to before 6d8a71e4c3a2fa4960cc50996e76a42b62fab677Affected
  • ba8b0ee81fbbc249e60f84bf097bd56e8047c742 to before 01cb355bb92e8fcf8306e11a4774d610c5864e39Affected
  • ba8b0ee81fbbc249e60f84bf097bd56e8047c742 to before ce69eac840db0b559994dc4290fce3d7c0d7bccdAffected
  • ba8b0ee81fbbc249e60f84bf097bd56e8047c742 to before 13c088cf3657d70893d75cf116be937f1509cc0fAffected
LinuxLinux
  • 4.17Affected
  • before 4.17Not affected
  • 4.19.291 through 4.19.*Not affected
  • 5.4.253 through 5.4.*Not affected
  • 5.10.190 through 5.10.*Not affected
  • 5.15.124 through 5.15.*Not affected
  • 6.1.43 through 6.1.*Not affected
  • 6.4.8 through 6.4.*Not affected
  • 6.5 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.