CVEvulnerability
CVE-2021-47158
5.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2024-03-25
- Last modified
- 2026-08-04
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- 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 configurations
• linux linux kernel (>= 5.2 < 5.10.42)
• linux linux kernel (>= 5.11 < 5.12.9)
• linux linux kernel 5.13
Related
Weakness · CWE (1)
- CWE-401 Missing Release of Memory after Effective Lifetime weakness
References
- https://git.kernel.org/stable/c/987e4ab8b8a4fcbf783069e03e7524cd39ffd563 Patch
- https://git.kernel.org/stable/c/cec279a898a3b004411682f212215ccaea1cd0fb Patch
- https://git.kernel.org/stable/c/dd8609f203448ca6d58ae71461208b3f6b0329b0 Patch
- https://git.kernel.org/stable/c/987e4ab8b8a4fcbf783069e03e7524cd39ffd563 Patch
- https://git.kernel.org/stable/c/cec279a898a3b004411682f212215ccaea1cd0fb Patch
- https://git.kernel.org/stable/c/dd8609f203448ca6d58ae71461208b3f6b0329b0 Patch