CVE-2021-47158

published 25 Mar 2024 · updated 5 Aug 2026

net: dsa: sja1105: add error handling in sja1105_setup()

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 987e4ab8b8a4fcbf783069e03e7524cd39ffd563, Kernel cec279a898a3b004411682f212215ccaea1cd0fb and Kernel dd8609f203448ca6d58ae71461208b3f6b0329b0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.2, >=8aa9ebccae87621d997707e4f25e53fddd7e30e4 <987e4ab8b8a4fcbf783069e03e7524cd39ffd563, >=8aa9ebccae87621d997707e4f25e53fddd7e30e4 <cec279a898a3b004411682f212215ccaea1cd0fb, >=8aa9ebccae87621d997707e4f25e53fddd7e30e4 <dd8609f203448ca6d58ae71461208b3f6b0329b0987e4ab8b8a4fcbf783069e03e7524cd39ffd563, cec279a898a3b004411682f212215ccaea1cd0fb, dd8609f203448ca6d58ae71461208b3f6b0329b0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47158 severity on Zeptric[![CVE-2021-47158](https://zeptric.io/badge/cve/CVE-2021-47158.svg)](https://zeptric.io/cve/CVE-2021-47158)