Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47075
HistoryMar 01, 2024 - 9:15 p.m.

CVE-2021-47075 nvmet: fix memory leak in nvmet_alloc_ctrl()

2024-03-0121:15:12
Linux
www.cve.org
3
linux kernel
vulnerability
memory leak
fix
nvmet_alloc_ctrl

AI Score

6.6

Confidence

Low

EPSS

0

Percentile

15.5%

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

nvmet: fix memory leak in nvmet_alloc_ctrl()

When creating ctrl in nvmet_alloc_ctrl(), if the cntlid_min is larger
than cntlid_max of the subsystem, and jumps to the
“out_free_changed_ns_list” label, but the ctrl->sqs lack of be freed.
Fix this by jumping to the “out_free_sqs” label.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/nvme/target/core.c"
    ],
    "versions": [
      {
        "version": "94a39d61f80f",
        "lessThan": "4720f29acb3f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "94a39d61f80f",
        "lessThan": "afb680ed7ecb",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "94a39d61f80f",
        "lessThan": "fec356a61aa3",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/nvme/target/core.c"
    ],
    "versions": [
      {
        "version": "5.7",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.7",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.40",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.12.7",
        "lessThanOrEqual": "5.12.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.13",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.6

Confidence

Low

EPSS

0

Percentile

15.5%