net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()
If an error occurs in dsa_devlink_region_create(), then 'priv->regions' array will be accessed by negative index '-1'.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
An error in dsa_devlink_region_create() can cause the sja1105 driver to access the priv->regions array at index -1, resulting in a buffer overflow. An attacker who can trigger that error could cause an out-of-bounds access; the input does not specify whether this requires local or network access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their kernel includes the affected sja1105 code; affected versions are not specified.