Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2021-47158
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2021-47158 is a memory leak vulnerability in the Linux kernel's net/dsa/sja1105 driver. The issue was discovered in the sja1105_setup() function, where failure conditions in sja1105_static_config_load(), sja1105_clocking_setup(), or sja1105_devlink_setup() could lead to memory leaks due to improper cleanup. This vulnerability affects Linux kernel versions from 5.2 through 5.10.42, 5.11 through 5.12.9, and 5.13-rc1 through 5.13-rc3 (NVD).

Technical details

The vulnerability exists in the sja1105_setup() function within the Linux kernel's DSA (Distributed Switch Architecture) driver for the NXP SJA1105 switch. When certain initialization functions fail, the code would return immediately without properly cleaning up allocated resources, resulting in memory leaks. The issue was introduced by two commits: 'net: dsa: sja1105: move devlink param code to sja1105_devlink.c' and 'net: dsa: Introduce driver for NXP SJA1105 5-port L2 switch'. The vulnerability has a CVSS v3.1 base score of 5.5 MEDIUM (NVD, Kernel Patch).

Impact

The vulnerability can lead to memory leaks in the Linux kernel when the SJA1105 network switch driver initialization fails. This could potentially result in system resource exhaustion over time, affecting system availability (NVD).

Exploitability

The vulnerability requires local access with low privileges to exploit. The attack complexity is low, but user interaction is not required for exploitation. The scope is unchanged, meaning the impact is limited to the vulnerable component (NVD).

Mitigation and workarounds

The vulnerability has been fixed by adding proper cleanup paths in the sja1105_setup() function. The fix includes adding cleanup labels (out_devlink_teardown, out_ptp_clock_unregister, out_static_config_free) and ensuring proper resource cleanup when initialization fails. Users should update to Linux kernel versions that include the fix (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-93574MEDIUM6.5
  • Linux Debian logoLinux Debian
  • netty
NoNoSep 18, 2026
CVE-2026-93562MEDIUM6.5
  • Linux Debian logoLinux Debian
  • netty
NoNoSep 18, 2026
CVE-2026-93894LOW2.3
  • Linux Debian logoLinux Debian
  • varnish
NoNoSep 18, 2026
CVE-2026-82560NONEN/A
  • Linux Debian logoLinux Debian
  • perl
NoNoSep 19, 2026
CVE-2026-78030NONEN/A
  • Linux Debian logoLinux Debian
  • perl-DBI
NoYesSep 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management