CVE-2022-49377: blk-mq: don't touch ->tagset in blk_mq_get_sq_hctx

Published Feb 26, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

blk-mq: don't touch ->tagset in blkmqgetsqhctx

blkmqrunhwqueues() 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 blkcleanupqueue() 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.

Other sources

In the Linux kernel, the following vulnerability has been resolved:

blk-mq: don't touch ->tagset in blkmqgetsqhctx

blkmqrunhwqueues() 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 blkcleanupqueue() 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.

NVD

Affected Software

4 affected components
Linux Linux kernel>=5.12<5.15.47
Linux Linux kernel>=5.16<5.17.15
Linux Linux kernel>=5.18<5.18.4
Linux Kernel

Event History

Feb 26, 2025
CVE Published
via MITRE·02:11 AM
Data Sourced
via MITRE·02:11 AM
DescriptionSeverity
Data Sourced
via Red Hat·03:11 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49377?

CVE-2022-49377 is classified as a moderate severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2022-49377?

To fix CVE-2022-49377, update your Linux kernel to a version that is at least 5.18.4 or later.

3

Which versions of the Linux kernel are affected by CVE-2022-49377?

CVE-2022-49377 affects Linux kernel versions between 5.12 and 5.15.47, as well as between 5.16 and 5.17.15.

4

What type of vulnerability is CVE-2022-49377?

CVE-2022-49377 is a vulnerability related to the blk-mq component in the Linux kernel.

5

Can CVE-2022-49377 lead to system crashes?

Yes, CVE-2022-49377 could potentially lead to system instability or crashes due to improper handling of the blk-mq tagset.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203