Lucene search

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

CVE-2021-47074 nvme-loop: fix memory leak in nvme_loop_create_ctrl()

2024-03-0121:15:12
Linux
www.cve.org
linux kernel
nvme-loop
memory leak fix
vulnerability
nvme_loop_create_ctrl
nvme_init_ctrl

7.5 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%

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

nvme-loop: fix memory leak in nvme_loop_create_ctrl()

When creating loop ctrl in nvme_loop_create_ctrl(), if nvme_init_ctrl()
fails, the loop ctrl should be freed before jumping to the “out” 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/loop.c"
    ],
    "versions": [
      {
        "version": "3a85a5de29ea",
        "lessThan": "9c980795ccd7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3a85a5de29ea",
        "lessThan": "551ba08d4b7e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3a85a5de29ea",
        "lessThan": "03504e3b54cc",
        "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/loop.c"
    ],
    "versions": [
      {
        "version": "4.8",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.8",
        "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"
      }
    ]
  }
]

7.5 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%