Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2021-47190
HistoryApr 10, 2024 - 7:15 p.m.

CVE-2021-47190

2024-04-1019:15:47
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
31
linux kernel
memory leak
perf bpf
vulnerability
nvd

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.3%

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.

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.15.4.162
OR
linuxlinux_kernelRange5.5.05.10.82
OR
linuxlinux_kernelRange5.11.05.15.5
OR
linuxlinux_kernelRange5.16.0
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "tools/perf/util/bpf-event.c",
      "tools/perf/util/env.c",
      "tools/perf/util/env.h"
    ],
    "versions": [
      {
        "version": "3792cb2ff43b",
        "lessThan": "642fc22210a5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3792cb2ff43b",
        "lessThan": "11589d3144bc",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3792cb2ff43b",
        "lessThan": "ab7c3d8d81c5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3792cb2ff43b",
        "lessThan": "4924b1f7c467",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "tools/perf/util/bpf-event.c",
      "tools/perf/util/env.c",
      "tools/perf/util/env.h"
    ],
    "versions": [
      {
        "version": "5.1",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.1",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.162",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.82",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.5",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.3%