CVE-2021-47158Published Mar 25, 2024 · Mar 25Updated Aug 5
net: dsa: sja1105: add error handling in sja1105_setup()
Linux
High7.8Fix available
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 |
|
|
5.10.425.12.95.13In the Linux kernel, the following vulnerability has been resolved:
net: dsa: sja1105: add error handling in sja1105_setup()
If any of sja1105_static_config_load(), sja1105_clocking_setup() or sja1105_devlink_setup() fails, we can't just return in the middle of sja1105_setup() or memory will leak. Add a cleanup path.
From the CVE record · Linux
The Linux kernel's sja1105 setup path can leak memory if static configuration loading, clock setup, or devlink setup fails. The input does not specify how an attacker could trigger these failures or whether access or user interaction is required.
Engineers running the Linux kernel with the sja1105 driver should check their kernel versions; affected versions are not specified.