CVE-2022-48846 Details
Description
In the Linux kernel, the following vulnerability has been resolved: block: release rq qos structures for queue without disk blkcg_init_queue() may add rq qos structures to request queue, previously blk_cleanup_queue() calls rq_qos_exit() to release them, but commit 8e141f9eb803 ("block: drain file system I/O on del_gendisk") moves rq_qos_exit() into del_gendisk(), so memory leak is caused because queues may not have disk, such as un-present scsi luns, nvme admin queue, ... Fixes the issue by adding rq_qos_exit() to blk_cleanup_queue() back. BTW, v5.18 won't need this patch any more since we move blkcg_init_queue()/blkcg_exit_queue() into disk allocation/release handler, and patches have been in for-5.18/block.
A memory leak vulnerability has been identified in the Linux kernel's block layer. This issue arises because the function 'blkcg_init_queue()' can add request queue Quality of Service (QOS) structures to queues that do not have an associated disk. Previously, the 'blk_cleanup_queue()' function would call 'rq_qos_exit()' to release these structures. However, a recent commit moved 'rq_qos_exit()' to 'del_gendisk()', creating a scenario where certain queues, such as unpresent SCSI logical units or NVMe admin queues, could lead to a memory leak. The vulnerability affects several versions of the Linux kernel, prior to 5.18.
Users can apply the patch included in the Linux kernel commit '60c2c8e2ef3a3ec79de8cbc80a06ca0c21df8c29' to address this vulnerability. Instructions for applying the patch can be found in the Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 10, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.15, < 5.15.31 >= 5.16, < 5.16.17 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| Jul 24, 2024 | Initial Analysis | [email protected] |
| Jul 16, 2024 | New CVE Received | kernel.org |