CVE-2021-47190

perf bpf: Avoid memory leak from perf_env__insert_btf()

published April 10, 2024

CVSS
—
EPSS
0%
Percentile
13.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00232 · 13.3th percentile
Published
2024-04-10T18:56Z
EPSS history
Timeline
  • 10 APR 18:56Z
    perf bpf: Avoid memory leak from perf_env__insert_btf()
    cvelistv5