CVE-2021-47158

MEDIUM

Linux Kernel 5.2-5.10.42, 5.12.9-5.12.*, 5.13 - Use-After-Free in sja1105_setup() Error Handling

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0022
EPSS Percentile 12.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-401
Status published
Products (10)
Linux/Linux < 5.2
Linux/Linux 5.10.42 - 5.10.*
Linux/Linux 5.12.9 - 5.12.*
Linux/Linux 5.13
Linux/Linux 5.2
Linux/Linux 8aa9ebccae87621d997707e4f25e53fddd7e30e4 - 987e4ab8b8a4fcbf783069e03e7524cd39ffd563
Linux/Linux 8aa9ebccae87621d997707e4f25e53fddd7e30e4 - cec279a898a3b004411682f212215ccaea1cd0fb
Linux/Linux 8aa9ebccae87621d997707e4f25e53fddd7e30e4 - dd8609f203448ca6d58ae71461208b3f6b0329b0
linux/linux_kernel 5.13 rc1 (3 CPE variants)
linux/linux_kernel 5.2 - 5.10.42
Published Mar 25, 2024
Tracked Since Feb 18, 2026