# CVE-2022-50552: blk-mq: use quiesced elevator switch when reinitializing queues

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-10-07T15:21:14.060Z
- **Modified:** 2026-11-05T21:17:05.310Z

## Who should check

- Anyone running Linux \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 0f90015383cd3f1128bebfbe7a97122d97808046; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 9646443f28f33ec545ae303e613c3f476fad4dc1; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 63a681bcc32a43528ce0f690569f7f48e59c3963; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< c478b3b2900f1834cf9eda5bfef0d5696099505d; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 8237c01f1696bc53c470493bf1fe092a107648a6
- Anyone running Linux 4.19

## Description

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

blk-mq: use quiesced elevator switch when reinitializing queues

The hctx's run\_work may be racing with the elevator switch when
reinitializing hardware queues. The queue is merely frozen in this
context, but that only prevents requests from allocating and doesn't
stop the hctx work from running. The work may get an elevator pointer
that's being torn down, and can result in use-after-free errors and
kernel panics (example below). Use the quiesced elevator switch instead,
and make the previous one static since it is now only used locally.

  nvme nvme0: resetting controller
  nvme nvme0: 32/0/0 default/read/poll queues
  BUG: kernel NULL pointer dereference, address: 0000000000000008
  \#PF: supervisor read access in kernel mode
  \#PF: error\_code(0x0000) - not-present page
  PGD 80000020c8861067 P4D 80000020c8861067 PUD 250f8c8067 PMD 0
  Oops: 0000 \[\#1\] SMP PTI
  Workqueue: kblockd blk\_mq\_run\_work\_fn
  RIP: 0010:kyber\_has\_work+0x29/0x70

...

  Call Trace:
   \_\_blk\_mq\_do\_dispatch\_sched+0x83/0x2b0
   \_\_blk\_mq\_sched\_dispatch\_requests+0x12e/0x170
   blk\_mq\_sched\_dispatch\_requests+0x30/0x60
   \_\_blk\_mq\_run\_hw\_queue+0x2b/0x50
   process\_one\_work+0x1ef/0x380
   worker\_thread+0x2d/0x3e0

## Affected and fixed versions

- Linux: \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 0f90015383cd3f1128bebfbe7a97122d97808046; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 9646443f28f33ec545ae303e613c3f476fad4dc1; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 63a681bcc32a43528ce0f690569f7f48e59c3963; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< c478b3b2900f1834cf9eda5bfef0d5696099505d; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 8237c01f1696bc53c470493bf1fe092a107648a6 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- Upgrade Linux to 8237c01f1696bc53c470493bf1fe092a107648a6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50552. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50552.md
Affected: Linux >= d48ece209f82c9ce07be942441b53d3fa3664936, < 0f90015383cd3f1128bebfbe7a97122d97808046; >= d48ece209f82c9ce07be942441b53d3fa3664936, < 9646443f28f33ec545ae303e613c3f476fad4dc1; >= d48ece209f82c9ce07be942441b53d3fa3664936, < 63a681bcc32a43528ce0f690569f7f48e59c3963; >= d48ece209f82c9ce07be942…
Fixed in: Linux 0f90015383cd3f1128bebfbe7a97122d97808046, Linux 9646443f28f33ec545ae303e613c3f476fad4dc1, Linux 63a681bcc32a43528ce0f690569f7f48e59c3963, Linux 8237c01f1696bc53c470493bf1fe092a107648a6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50552 being exploited?

There is no confirmed exploitation: CVE-2022-50552 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50552?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50552?

Linux \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 0f90015383cd3f1128bebfbe7a97122d97808046; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 9646443f28f33ec545ae303e613c3f476fad4dc1; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 63a681bcc32a43528ce0f690569f7f48e59c3963; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< c478b3b2900f1834cf9eda5bfef0d5696099505d; \>= d48ece209f82c9ce07be942441b53d3fa3664936, \< 8237c01f1696bc53c470493bf1fe092a107648a6; Linux 4.19.

### Is there a fix for CVE-2022-50552?

Yes. Fixed in Linux 0f90015383cd3f1128bebfbe7a97122d97808046, Linux 9646443f28f33ec545ae303e613c3f476fad4dc1, Linux 63a681bcc32a43528ce0f690569f7f48e59c3963, Linux 8237c01f1696bc53c470493bf1fe092a107648a6. Upgrade Linux to 8237c01f1696bc53c470493bf1fe092a107648a6 or later.

### How do I check if I'm affected by CVE-2022-50552?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/63a681bcc32a43528ce0f690569f7f48e59c3963>
- patch: <https://git.kernel.org/stable/c/c478b3b2900f1834cf9eda5bfef0d5696099505d>
- patch: <https://git.kernel.org/stable/c/8237c01f1696bc53c470493bf1fe092a107648a6>
- other: <https://git.kernel.org/stable/c/0f90015383cd3f1128bebfbe7a97122d97808046>
- other: <https://git.kernel.org/stable/c/9646443f28f33ec545ae303e613c3f476fad4dc1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50552>

HTML: <https://flawdb.com/CVE-2022-50552> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50552>
