CVE-2021-47190
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a memory leak vulnerability (CVE-2021-47190) was discovered in the perf_env__insert_btf() function. The issue occurs when perf_env__insert_btf() doesn't insert if a duplicate BTF id is encountered, causing a memory leak. This vulnerability affects Linux kernel versions from 5.1 up to (excluding) 5.4.162, from 5.5 up to (excluding) 5.10.82, and from 5.11 up to (excluding) 5.15.5 (NVD).

Technical details

The vulnerability exists in the perf BPF subsystem where perf_env__insert_btf() function fails to properly handle memory when encountering duplicate BTF IDs. When a duplicate BTF ID is encountered, the function doesn't insert the new entry but also fails to free the allocated memory, resulting in a memory leak. The issue has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can lead to memory leaks in the Linux kernel, potentially causing system resource exhaustion over time. This could affect system stability and potentially lead to denial of service conditions (NVD).

Exploitability

The vulnerability requires local access with low privileges to exploit. The attack complexity is low, and no user interaction is required. However, the impact is limited to availability through resource exhaustion (NVD).

Mitigation and workarounds

The vulnerability has been fixed by modifying the perf_env__insert_btf() function to return a success/error value and properly free the memory if insertion doesn't happen. The fix includes adding a return -1 when the insertion error occurs in perf_env__fetch_btf. Users should upgrade to Linux kernel versions 5.4.162, 5.10.82, 5.15.5 or later to address this vulnerability (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68427MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-tegra
NoYesAug 10, 2026
CVE-2026-68426MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-tegra-igx
NoYesAug 10, 2026
CVE-2026-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 12, 2026
CVE-2026-68430NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-partner
NoYesAug 12, 2026
CVE-2026-68428NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-ibm-6.8
NoYesAug 10, 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