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

CVE-2023-53238
HIGH 7.1

En bref

Source
NVD
EPSS
EPSS 0.16 % · centile 6 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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

Faiblesses (CWE)

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HCISA-ADP
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected ba8b0ee81fbbc249e60f84bf097bd56e8047c742 < 2843a2e703f5cb85c9eeca11b7ee90861635a010 ; affected ba8b0ee81fbbc249e60f84bf097bd56e8047c742 < 195e806b2afb0bad6470c9094f7e45e0cf109ee0 ; affected ba8b0ee81fbbc249e60f84bf097bd56e8047c742 < ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8 ; affected ba8b0ee81fbbc249e60f84bf097bd56e8047c742 < 6d8a71e4c3a2fa4960cc50996e76a42b62fab677 ; affected ba8b0ee81fbbc249e60f84bf097bd56e8047c742 < 01cb355bb92e8fcf8306e11a4774d610c5864e39 ; affected ba8b0ee81fbbc249e60f84bf097bd56e8047c742 < ce69eac840db0b559994dc4290fce3d7c0d7bccd
Linux · Linuxaffected 4.17 ; unaffected 0 < 4.17 ; unaffected 4.19.291 ≤ 4.19.* ; unaffected 5.4.253 ≤ 5.4.* ; unaffected 5.10.190 ≤ 5.10.* ; unaffected 5.15.124 ≤ 5.15.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD