What’s Vulnerable › Vulnerabilities

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

How to fix

Upgrade to a fixed version: Linux kernel 5.10.40, 5.12.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-47075 or the next vulnerability affects your stack