CVE-2022-48789·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: nvme-tcp: fix possible use-after-free in transport error_recovery work While nvme_tcp_submit_async_event_work is checking the ctrl and queue state before preparing the AER command and scheduling io_work, in order to fully prevent a race where this check is not reliable the error recovery work must flush async_event_work before continuing to destroy the admin queue after setting the ctrl state to RESETTING such that there is no race .submit_async_event and the error recovery handler itself changing the ctrl state.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.16.11
- Published
- 2024-07-16
Affected versions
From: 5.16
Until: 5.16.11
Fixed in: 5.16.11
How to fix this CVE
Update your Linux kernel to version 5.16.11 or later to resolve a use-after-free vulnerability in the NVMe-TCP transport layer that could lead to memory corruption during error recovery. This flaw allows a race condition between asynchronous event work and error recovery handlers to cause kernel crashes or potential privilege escalation. Apply the kernel update immediately and reboot your system to activate the patched version.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed kernel version with 'uname -r' and compare against vulnerable range 5.16.0-5.16.10
- Step 2: Verify NVMe devices are present on the system using 'lsblk -o NAME,SUBSYSTEMS | grep nvme'
- Step 3: Search system logs for NVMe-TCP error messages using 'sudo journalctl --grep="nvme.*tcp" | grep -i error'
- Step 4: Verify the fix by confirming kernel version is 5.16.11 or later with 'uname -r' after reboot
FAQ
What is CVE-2022-48789?
CVE-2022-48789 is a use-after-free vulnerability in the Linux kernel's NVMe-TCP transport driver that occurs when error recovery and asynchronous event handling race to modify controller state, potentially causing memory corruption, kernel panics, or local privilege escalation.
Is CVE-2022-48789 being actively exploited?
No, this vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available, though it remains a high-severity local privilege escalation risk.
What versions of Kernel are affected by CVE-2022-48789?
Linux kernel versions 5.16.0 through 5.16.10 are vulnerable; the fix is included in kernel 5.16.11 and later versions.
How do I check if my server is vulnerable to CVE-2022-48789?
Run 'uname -r' to check your kernel version; if it shows 5.16.0 through 5.16.10 and your system uses NVMe-TCP storage, you are vulnerable and should update immediately.
Does Defensia detect CVE-2022-48789?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel package is installed on a monitored server within the vulnerable version range, CVE-2022-48789 will appear in your dashboard with remediation steps and update instructions.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/5e42fca37ccc76f39f73732661bd47254cad5982
- https://git.kernel.org/stable/c/61a26ffd5ad3ece456d74c4c79f7b5e3f440a141
- https://git.kernel.org/stable/c/bb0d8fb35c4ff00a503c2c4dca4cce8d102a21c4
- https://git.kernel.org/stable/c/e192184cf8bce8dd55d619f5611a2eaba996fa05
- https://git.kernel.org/stable/c/ff9fc7ebf5c06de1ef72a69f9b1ab40af8b07f9e
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48789. Free for 1 server.
Get started free