nvmet: fix memory leak in nvmet_alloc_ctrl()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.10.405.12.75.13In 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.
From the CVE record · Linux
The Linux kernel's nvmet_alloc_ctrl() can leak memory when a controller is created and the subsystem's cntlid_min exceeds cntlid_max. The input does not specify how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running Linux kernel versions with the affected nvmet_alloc_ctrl() code should check; affected versions are not specified.