CVE-2022-49377·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.18.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 11% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2022-49377 scores 7.8 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 5.18
Until: 5.18.4
Fixed in: 5.18.4
How to fix this CVE
Update your Linux kernel to version 5.18.4 or later to patch a use-after-free vulnerability in the block I/O subsystem. This flaw can occur when hardware queues are processed after the queue has been cleaned up, potentially allowing privilege escalation. Apply the update immediately if you are running kernel versions 5.18 through 5.18.3.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version by running: uname -r
- Verify if you are running a vulnerable version (5.18 through 5.18.3) by comparing the output against the affected range
- Search system logs for I/O errors or panic messages related to block device operations: sudo grep -i 'blk_mq\|use-after-free\|tagset' /var/log/kern.log
- After patching, reboot the system and verify the new kernel version with: uname -r (should show 5.18.4 or later)
FAQ
What is CVE-2022-49377?
CVE-2022-49377 is a use-after-free vulnerability in the Linux kernel's block I/O management subsystem. The flaw occurs when the kernel attempts to access a freed tagset data structure during hardware queue operations, potentially leading to memory corruption and privilege escalation.
Is CVE-2022-49377 being actively exploited?
No, CVE-2022-49377 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public exploits are currently available. However, it should still be patched promptly due to its high severity rating.
What versions of Kernel are affected by CVE-2022-49377?
Linux kernel versions 5.18 through 5.18.3 are affected. Kernel 5.18.4 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2022-49377?
Run 'uname -r' and check if the output shows a kernel version between 5.18 and 5.18.3. If it does, your system is vulnerable and requires an immediate kernel update.
Does Defensia detect CVE-2022-49377?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2022-49377 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49377. Free for 1 server.
Get started free