Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.291, 5.10.190, 5.15.124, 5.4.253, 6.1.43, 6.4.8
CVEs
CVE-2023-53238
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 05:31 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 15 Sept 2025, 14:22 UTC

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

osv:CVE-2023-53238

Kernel

Fixed versions: 4.19.291, 5.4.253, 5.10.190, 5.15.124, 6.1.43, 6.4.8

Complete source record
{
  "id": "5e56727eaa8c541545e49b6d6581566e463a129f60fb53d7cdb686963d55f29f",
  "url": "https://osv.dev/vulnerability/CVE-2023-53238",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()",
    "summary": "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",
    "evidence": "osv:CVE-2023-53238",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.291",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.253",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.190",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.124",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.43",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.4.8",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-53238",
      "aliases": [
        "CVE-2023-53238"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ba8b0ee81fbbc249e60f84bf097bd56e8047c742"
                },
                {
                  "fixed": "2843a2e703f5cb85c9eeca11b7ee90861635a010"
                },
                {
                  "fixed": "195e806b2afb0bad6470c9094f7e45e0cf109ee0"
                },
                {
                  "fixed": "ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8"
                },
                {
                  "fixed": "6d8a71e4c3a2fa4960cc50996e76a42b62fab677"
                },
                {
                  "fixed": "01cb355bb92e8fcf8306e11a4774d610c5864e39"
                },
                {
                  "fixed": "ce69eac840db0b559994dc4290fce3d7c0d7bccd"
                },
                {
                  "fixed": "13c088cf3657d70893d75cf116be937f1509cc0f"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53238.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.17.0"
                },
                {
                  "fixed": "4.19.291"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.253"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.190"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.124"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.43"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.4.8"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53238.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.169407539Z",
      "provider": "osv",
      "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",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53238.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-53238",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53238.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-53238",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 510732,
  "published_at": "2025-09-15T14:22:12.16+00:00"
}