CVE-2021-47190perf bpf: Avoid memory leak from perf_env__insert_btf()
- 5.5MediumCVSS base score
- 0.23%Exploitation in 30 daysEPSS · top 86% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By Linux
- 16 days later
· 16 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.23% · top 86% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected 3792cb2ff43b1b193136a03ce1336462a827d792 – < 642fc22210a5e59d40b1e4d56d21ec3effd401f2
- affected 3792cb2ff43b1b193136a03ce1336462a827d792 – < 11589d3144bc4e272e0aae46ce8156162e99babc
- affected 3792cb2ff43b1b193136a03ce1336462a827d792 – < ab7c3d8d81c511ddfb27823fb07081c96422b56e
- affected 3792cb2ff43b1b193136a03ce1336462a827d792 – < 4924b1f7c46711762fd0e65c135ccfbcfd6ded1f
- affected 5.1
- unaffected < 5.1
- unaffected 5.4.162 – ≤ 5.4.*
- unaffected 5.10.82 – ≤ 5.10.*
- unaffected 5.15.5 – ≤ 5.15.*
- unaffected 5.16 – ≤ *
References
References4
- https://git.kernel.org/stable/c/642fc22210a5e59d40b1e4d56d21ec3effd401f2 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/11589d3144bc4e272e0aae46ce8156162e99babc (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/ab7c3d8d81c511ddfb27823fb07081c96422b56e (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/4924b1f7c46711762fd0e65c135ccfbcfd6ded1f (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-33838 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-47190)Record last updated .