Bug 1220856 (CVE-2021-47075) - VUL-0: CVE-2021-47075: kernel: nvmet: fix memory leak in nvmet_alloc_ctrl()
Summary: VUL-0: CVE-2021-47075: kernel: nvmet: fix memory leak in nvmet_alloc_ctrl()
Status: RESOLVED FIXED
Alias: CVE-2021-47075
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/396013/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-47075:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-04 11:12 UTC by SMASH SMASH
Modified: 2024-04-16 15:32 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-03-04 11:12:41 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47075
https://www.cve.org/CVERecord?id=CVE-2021-47075
https://bugzilla.redhat.com/show_bug.cgi?id=2267523
https://lore.kernel.org/linux-cve-announce/2024030142-CVE-2021-47075-8d12@gregkh/

Patch:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fec356a61aa3
Comment 1 Andrea Mattiazzo 2024-03-04 11:13:40 UTC
Tracking as affected:
- cve/linux-5.3

Already patched:
 - SLE15-SP6
 - cve/linux-5.14
 - stable
Comment 2 Petr Mladek 2024-03-05 10:25:03 UTC
Daniel, this seems to be in your area.
Comment 3 Daniel Wagner 2024-04-16 13:29:22 UTC
The 6d65aeab7bf6 ("nvmet: remove unused ctrl->cqs") introduces this leak
but this commit is missing in cve/linux-5.3.

This is bug report is invalid.