Vulnerabilities · 2021 · Linux
CVE-2021-47159
Linux Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: dsa: fix a crash if ->get_sset_count() fails If ds->ops->get_sset_count() fails then it "count" is a negative error code such as -EOPNOTSUPP. Because "i" is an unsigned int, the negative error code is type promoted to a very high value and the loop will corrupt memory until the system crashes. Fix this by checking for error codes and changing the type of "i" to just int.
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/0f2cb08c57edefb0e7b5045e0e3e9980a3d3aa37 · Patch
- git.kernel.org/stable/c/7b22466648a4f8e3e94f57ca428d1531866d1373 · Patch
- git.kernel.org/stable/c/a269333fa5c0c8e53c92b5a28a6076a28cde3e83 · Patch
- git.kernel.org/stable/c/caff86f85512b8e0d9830e8b8b0dfe13c68ce5b6 · Patch
- git.kernel.org/stable/c/ce5355f140a7987011388c7e30c4f8fbe180d3e8 · Patch
- nvd.nist.gov/vuln/detail/CVE-2021-47159
- cve.org/CVERecord?id=CVE-2021-47159
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.