CVE-2022-50552
blk-mq: use quiesced elevator switch when reinitializing queues
Check your servers for CVE-2022-50552
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50552 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d48ece209f82c9ce07be942441b53d3fa3664936, before 0f90015383cd3f1128bebfbe7a97122d97808046 affected from d48ece209f82c9ce07be942441b53d3fa3664936, before 9646443f28f33ec545ae303e613c3f476fad4dc1 affected from d48ece209f82c9ce07be942441b53d3fa3664936, before 63a681bcc32a43528ce0f690569f7f48e59c3963 affected from d48ece209f82c9ce07be942441b53d3fa3664936, before c478b3b2900f1834cf9eda5bfef0d5696099505d affected from d48ece209f82c9ce07be942441b53d3fa3664936, before 8237c01f1696bc53c470493bf1fe092a107648a6
Other versions: unaffected
|
| Linux |
affected 4.19 unaffected before 4.19 unaffected from 5.10.258 up to and including 5.10.* unaffected from 5.15.209 up to and including 5.15.* unaffected from 5.19.17 up to and including 5.19.* unaffected from 6.0.3 up to and including 6.0.* unaffected 6.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50552 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50552
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50552
trivy image --scanners vuln IMAGE | grep CVE-2022-50552
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/0f90015383cd3f1128bebfbe7a97122d97808046 git.kernel.org
- https://git.kernel.org/stable/c/9646443f28f33ec545ae303e613c3f476fad4dc1 git.kernel.org
- https://git.kernel.org/stable/c/63a681bcc32a43528ce0f690569f7f48e59c3963 git.kernel.org
- https://git.kernel.org/stable/c/c478b3b2900f1834cf9eda5bfef0d5696099505d git.kernel.org
- https://git.kernel.org/stable/c/8237c01f1696bc53c470493bf1fe092a107648a6 git.kernel.org
Source: the record CVE-2022-50552 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse