CVE Vulnerabilities

CVE-2021-47190

Published: Apr 10, 2024 | Modified: Apr 10, 2024
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

In the Linux kernel, the following vulnerability has been resolved:

perf bpf: Avoid memory leak from perf_env__insert_btf()

perf_env__insert_btf() doesnt 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 didnt happen.

v2. Adds a return -1 when the insertion error occurs in perf_env__fetch_btf. This doesnt affect anything as the result is never checked.

References