What’s Vulnerable › Vulnerabilities
CVE-2021-47158: net: dsa: sja1105: add error handling in sja1105_setup()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-25 · updated 2026-08-04
- Weakness: CWE-401
Description
In 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.
Affected products
- Linux kernel: from 5.2 before 5.10.42; from 5.11 before 5.12.9; 5.13-rc1, 5.13-rc2, 5.13-rc3 — fixed in 5.10.42, 5.12.9
How to fix
Upgrade to a fixed version: Linux kernel 5.10.42, 5.12.9. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/987e4ab8b8a4fcbf783069e03e7524cd39ffd563
- https://git.kernel.org/stable/c/cec279a898a3b004411682f212215ccaea1cd0fb
- https://git.kernel.org/stable/c/dd8609f203448ca6d58ae71461208b3f6b0329b0
- https://git.kernel.org/stable/c/987e4ab8b8a4fcbf783069e03e7524cd39ffd563
- https://git.kernel.org/stable/c/cec279a898a3b004411682f212215ccaea1cd0fb
- https://git.kernel.org/stable/c/dd8609f203448ca6d58ae71461208b3f6b0329b0
Get alerted when CVE-2021-47158 or the next vulnerability affects your stack