7.8high
net: dsa: sja1105: add error handling in sja1105_setup()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.23% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 8aa9ebccae87621d997707e4f25e53fddd7e30e4 before dd8609f203448ca6d58ae71461208b3f6b0329b0, from 8aa9ebccae87621d997707e4f25e53fddd7e30e4 before 987e4ab8b8a4fcbf783069e03e7524cd39ffd563, from 8aa9ebccae87621d997707e4f25e53fddd7e30e4 before cec279a898a3b004411682f212215ccaea1cd0fb, 5.2 Not affected: before 5.2, from 5.10.42 up to 5.10.*, from 5.12.9 up to 5.12.*, from 5.13 up to * | CVE List |
| linux linux_kernel | from 5.2 before 5.10.42, from 5.11 before 5.12.9, 5.13 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: dsa: sja1105: agregue manejo de errores en sja1105_setup() Si alguno de sja1105_static_config_load(), sja1105_clocking_setup() o sja1105_devlink_setup() falla, no podemos simplemente regresar en el medio de sja1105_setup() o se perderĂ¡ memoria. Agregue una ruta de limpieza.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47158 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2021-47158 changed 2026-08-04 | Public domain |