CVE-2023-53238 (GCVE-0-2023-53238)
Vulnerability from cvelistv5
Published
2025-09-15 14:22
Modified
2025-09-15 14:22
Severity ?
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
Impacted products
Vendor Product Version
Linux Linux Version: ba8b0ee81fbbc249e60f84bf097bd56e8047c742
Version: ba8b0ee81fbbc249e60f84bf097bd56e8047c742
Version: ba8b0ee81fbbc249e60f84bf097bd56e8047c742
Version: ba8b0ee81fbbc249e60f84bf097bd56e8047c742
Version: ba8b0ee81fbbc249e60f84bf097bd56e8047c742
Version: ba8b0ee81fbbc249e60f84bf097bd56e8047c742
Version: ba8b0ee81fbbc249e60f84bf097bd56e8047c742
Create a notification for this product.
   Linux Linux Version: 4.17
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/phy/hisilicon/phy-hisi-inno-usb2.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "2843a2e703f5cb85c9eeca11b7ee90861635a010",
              "status": "affected",
              "version": "ba8b0ee81fbbc249e60f84bf097bd56e8047c742",
              "versionType": "git"
            },
            {
              "lessThan": "195e806b2afb0bad6470c9094f7e45e0cf109ee0",
              "status": "affected",
              "version": "ba8b0ee81fbbc249e60f84bf097bd56e8047c742",
              "versionType": "git"
            },
            {
              "lessThan": "ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8",
              "status": "affected",
              "version": "ba8b0ee81fbbc249e60f84bf097bd56e8047c742",
              "versionType": "git"
            },
            {
              "lessThan": "6d8a71e4c3a2fa4960cc50996e76a42b62fab677",
              "status": "affected",
              "version": "ba8b0ee81fbbc249e60f84bf097bd56e8047c742",
              "versionType": "git"
            },
            {
              "lessThan": "01cb355bb92e8fcf8306e11a4774d610c5864e39",
              "status": "affected",
              "version": "ba8b0ee81fbbc249e60f84bf097bd56e8047c742",
              "versionType": "git"
            },
            {
              "lessThan": "ce69eac840db0b559994dc4290fce3d7c0d7bccd",
              "status": "affected",
              "version": "ba8b0ee81fbbc249e60f84bf097bd56e8047c742",
              "versionType": "git"
            },
            {
              "lessThan": "13c088cf3657d70893d75cf116be937f1509cc0f",
              "status": "affected",
              "version": "ba8b0ee81fbbc249e60f84bf097bd56e8047c742",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/phy/hisilicon/phy-hisi-inno-usb2.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.17"
            },
            {
              "lessThan": "4.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.291",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.253",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.190",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.124",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.43",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.4.*",
              "status": "unaffected",
              "version": "6.4.8",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.5",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.291",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.253",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.190",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.124",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.43",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4.8",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nphy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()\n\nThe size of array \u0027priv-\u003eports[]\u0027 is INNO_PHY_PORT_NUM.\n\nIn the for loop, \u0027i\u0027 is used as the index for array \u0027priv-\u003eports[]\u0027\nwith a check (i \u003e INNO_PHY_PORT_NUM) which indicates that\nINNO_PHY_PORT_NUM is allowed value for \u0027i\u0027 in the same loop.\n\nThis \u003e comparison needs to be changed to \u003e=, otherwise it potentially leads\nto an out of bounds write on the next iteration through the loop"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-15T14:22:12.160Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/2843a2e703f5cb85c9eeca11b7ee90861635a010"
        },
        {
          "url": "https://git.kernel.org/stable/c/195e806b2afb0bad6470c9094f7e45e0cf109ee0"
        },
        {
          "url": "https://git.kernel.org/stable/c/ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8"
        },
        {
          "url": "https://git.kernel.org/stable/c/6d8a71e4c3a2fa4960cc50996e76a42b62fab677"
        },
        {
          "url": "https://git.kernel.org/stable/c/01cb355bb92e8fcf8306e11a4774d610c5864e39"
        },
        {
          "url": "https://git.kernel.org/stable/c/ce69eac840db0b559994dc4290fce3d7c0d7bccd"
        },
        {
          "url": "https://git.kernel.org/stable/c/13c088cf3657d70893d75cf116be937f1509cc0f"
        }
      ],
      "title": "phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53238",
    "datePublished": "2025-09-15T14:22:12.160Z",
    "dateReserved": "2025-09-15T14:19:21.847Z",
    "dateUpdated": "2025-09-15T14:22:12.160Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53238\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T15:15:50.887\",\"lastModified\":\"2025-09-15T15:22:27.090\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nphy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()\\n\\nThe size of array \u0027priv-\u003eports[]\u0027 is INNO_PHY_PORT_NUM.\\n\\nIn the for loop, \u0027i\u0027 is used as the index for array \u0027priv-\u003eports[]\u0027\\nwith a check (i \u003e INNO_PHY_PORT_NUM) which indicates that\\nINNO_PHY_PORT_NUM is allowed value for \u0027i\u0027 in the same loop.\\n\\nThis \u003e comparison needs to be changed to \u003e=, otherwise it potentially leads\\nto an out of bounds write on the next iteration through the loop\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/01cb355bb92e8fcf8306e11a4774d610c5864e39\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/13c088cf3657d70893d75cf116be937f1509cc0f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/195e806b2afb0bad6470c9094f7e45e0cf109ee0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/2843a2e703f5cb85c9eeca11b7ee90861635a010\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6d8a71e4c3a2fa4960cc50996e76a42b62fab677\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ce69eac840db0b559994dc4290fce3d7c0d7bccd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…