Skip to content
CVE PROGRAM SOURCE RECORD5.3 Medium

CVE-2021-47075

nvmet: fix memory leak in nvmet_alloc_ctrl()

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 94a39d61f80fcd679debda11e1ca02b88d90e67e to < 4720f29acb3fe67aa8aa71e6b675b079d193aaebaffected
  • 94a39d61f80fcd679debda11e1ca02b88d90e67e to < afb680ed7ecbb7fd66ddb43650e9b533fd8b4b9aaffected
  • 94a39d61f80fcd679debda11e1ca02b88d90e67e to < fec356a61aa3d3a66416b4321f1279e09e0f256faffected

Linux Linux

Default version status: affected

  • 5.7affected
  • 0 to < 5.7unaffected
  • 5.10.40 to ≤ 5.10.*unaffected
  • 5.12.7 to ≤ 5.12.*unaffected
  • 5.13 to ≤ *unaffected

References