Vulnerabilities · 2021 · Linux
CVE-2021-47190
Linux Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: perf bpf: Avoid memory leak from perf_env__insert_btf() perf_env__insert_btf() doesn't insert if a duplicate BTF id is encountered and this causes a memory leak. Modify the function to return a success/error value and then free the memory if insertion didn't happen. v2. Adds a return -1 when the insertion error occurs in perf_env__fetch_btf. This doesn't affect anything as the result is never checked.
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/11589d3144bc4e272e0aae46ce8156162e99babc · Patch
- git.kernel.org/stable/c/4924b1f7c46711762fd0e65c135ccfbcfd6ded1f · Patch
- git.kernel.org/stable/c/642fc22210a5e59d40b1e4d56d21ec3effd401f2 · Patch
- git.kernel.org/stable/c/ab7c3d8d81c511ddfb27823fb07081c96422b56e · Patch
- nvd.nist.gov/vuln/detail/CVE-2021-47190
- cve.org/CVERecord?id=CVE-2021-47190
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.