CVE-2022-49377 Details
Description
In the Linux kernel, the following vulnerability has been resolved: blk-mq: don't touch ->tagset in blk_mq_get_sq_hctx blk_mq_run_hw_queues() could be run when there isn't queued request and after queue is cleaned up, at that time tagset is freed, because tagset lifetime is covered by driver, and often freed after blk_cleanup_queue() returns. So don't touch ->tagset for figuring out current default hctx by the mapping built in request queue, so use-after-free on tagset can be avoided. Meantime this way should be fast than retrieving mapping from tagset.
A use-after-free vulnerability has been identified in the Linux kernel's block layer, specifically within the block multi-queue (blk-mq) subsystem. The issue arises because the blk_mq_get_sq_hctx function can access a tagset after it has been freed, leading to potential memory corruption. This occurs when there are no queued requests and the request queue has been cleaned up, causing the tagset to be released. The vulnerability can be exploited by manipulating the request queue lifecycle, particularly by freeing the tagset before it is no longer needed, creating a window for use-after-free conditions.
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 Feb 27, 2025References 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.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff | kernel.org | Patch |
| https://git.kernel.org/stable/c/5d05426e2d5fd7df8afc866b78c36b37b00188b7 | kernel.org | Patch |
| https://git.kernel.org/stable/c/70fdd922c7bf8949f8df109cf2635dff64c90392 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b140bac470b4f707cda59c7266214246238661df | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.12, < 5.15.47 >= 5.16, < 5.17.15 >= 5.18, < 5.18.4 |
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 |
| Mar 25, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | CVE Modified | CISA-ADP |
| Feb 26, 2025 | New CVE Received | kernel.org |