CVE-2022-50530: blk-mq: fix null pointer dereference in blk_mq_clear_rq_mapping()

Published Oct 7, 2025
·
Updated

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

blk-mq: fix null pointer dereference in blkmqclearrqmapping()

Our syzkaller report a null pointer dereference, root cause is following:

blkmqallocmapandrqs set->tags[hctxidx] = blkmqallocmapandrqs blkmqallocmapandrqs blkmqallocrqs // failed due to oom allocpagesnode // set->tags[hctxidx] is still NULL blkmqfreerqs drvtags = set->tags[hctxidx]; // null pointer dereference is triggered blkmqclearrqmapping(drvtags, ...)

This is because commit 63064be150e4 ("blk-mq: Add blkmqallocmapandrqs()") merged the two steps:

1) set->tags[hctxidx] = blkmqallocrqmap() 2) blkmqallocrqs(..., set->tags[hctxidx])

into one step:

set->tags[hctxidx] = blkmqallocmapandrqs()

Since tags is not initialized yet in this case, fix the problem by checking if tags is NULL pointer in blkmqclearrqmapping().

Affected Software

3 affected components
Linux Linux kernel
Linux Linux kernel>=5.16<6.0.6
Linux Linux kernel=6.1-rc1

Event History

Oct 7, 2025
CVE Published
via MITRE·03:19 PM
Data Sourced
via MITRE·03:19 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Under what conditions can this be triggered?

Systems are exposed when the Linux kernel blk-mq request-queue setup encounters an out-of-memory failure while allocating requests. The failure can leave a tags entry unset, after which cleanup may dereference the null entry and cause a denial of service.

2

What level of access does an attacker need, and what is the impact?

The CVSS vector indicates local access and low privileges are required, with no user interaction. The documented impact is availability only; confidentiality and integrity are not affected.

3

What does the available fix change?

Apply an available kernel patch. The fix adds a null-pointer check in blk_mq_clear_rq_mapping() so cleanup safely handles an uninitialized tags entry after allocation failure.

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