In the Linux kernel, the following vulnerability has been resolved:
phy: hisilicon: Fix an out of bounds check in hisiinnophy_probe()
The size of array 'priv->ports[]' is INNOPHYPORT_NUM.
In the for loop, 'i' is used as the index for array 'priv->ports[]' with a check (i > INNOPHYPORTNUM) which indicates that INNOPHYPORTNUM 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
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53238.json"
}