CVE-2021-47158 net: dsa: sja1105: add error handling in sja1105_setup()

High 7.8 Published Updated

A memory leak in the sja1105 DSA driver setup function can lead to resource exhaustion and denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-47158?

CVE-2021-47158 is a high-severity vulnerability in Linux kernel, published on 25 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-401

Which versions are affected by CVE-2021-47158?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47158?

Apply the vendor's patch.

Is CVE-2021-47158 being exploited?

There is no known exploitation of CVE-2021-47158 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47158, GHSA-9r7q-crgf-5r23, UBUNTU-CVE-2021-47158.

Is CVE-2021-47158 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free