{"id":"CVE-2021-47190","published":"2024-04-10T18:56:28Z","modified":"2026-05-11T13:49:43Z","title":"perf bpf: Avoid memory leak from perf_env__insert_btf()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf bpf: Avoid memory leak from perf_env__insert_btf()\n\nperf_env__insert_btf() doesn't insert if a duplicate BTF id is\nencountered and this causes a memory leak. Modify the function to return\na success/error value and then free the memory if insertion didn't\nhappen.\n\nv2. Adds a return -1 when the insertion error occurs in\n    perf_env__fetch_btf. This doesn't affect anything as the result is\n    never checked.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00305,"percentile":0.15711,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/642fc22210a5e59d40b1e4d56d21ec3effd401f2","tags":[]},{"url":"https://git.kernel.org/stable/c/11589d3144bc4e272e0aae46ce8156162e99babc","tags":[]},{"url":"https://git.kernel.org/stable/c/ab7c3d8d81c511ddfb27823fb07081c96422b56e","tags":[]},{"url":"https://git.kernel.org/stable/c/4924b1f7c46711762fd0e65c135ccfbcfd6ded1f","tags":[]}],"priority":{"score":3.1,"factors":[{"name":"EPSS percentile","points":3.14}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 3792cb2ff43b1b193136a03ce1336462a827d792, < 642fc22210a5e59d40b1e4d56d21ec3effd401f2",">= 3792cb2ff43b1b193136a03ce1336462a827d792, < 11589d3144bc4e272e0aae46ce8156162e99babc",">= 3792cb2ff43b1b193136a03ce1336462a827d792, < ab7c3d8d81c511ddfb27823fb07081c96422b56e",">= 3792cb2ff43b1b193136a03ce1336462a827d792, < 4924b1f7c46711762fd0e65c135ccfbcfd6ded1f"]},{"vendor":"Linux","product":"Linux","versions":["5.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:50:08.099272Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33838","exploited":false,"provenance":"source"}}