phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ba8b0ee81fbbc249e60f84bf097bd56e8047c742 · < ce69eac840db0b559994dc4290fce3d7c0d7bccd| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The Linux kernel’s hisi_inno_phy_probe() uses an incorrect bounds check for its ports array, potentially causing an out-of-bounds write. The input does not specify how an attacker could trigger the issue or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check for the affected Hisilicon PHY code; affected versions are not specified.