CVE-2022-48788·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: nvme-rdma: fix possible use-after-free in transport error_recovery work While nvme_rdma_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 condition in the NVMe-RDMA transport layer's error recovery handler. This vulnerability can lead to kernel crashes or potential privilege escalation when the async event work queue races with the error recovery mechanism. Apply the kernel update immediately and schedule a system reboot to activate the patched version.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r — verify it is 5.16.11 or newer; if it is between 5.16.0 and 5.16.10 inclusive, the system is vulnerable
- Confirm NVMe-RDMA driver is loaded: lsmod | grep nvme_rdma — if present, the vulnerable code path is active on this system
- Search kernel logs for NVMe transport errors: dmesg | grep -i 'nvme.*error\|nvme.*reset\|use-after-free' — exploitation attempts may trigger memory access violations
- Verify patch application after update: uname -r should report 5.16.11+ and dmesg should not contain nvme_rdma use-after-free warnings
FAQ
What is CVE-2022-48788?
CVE-2022-48788 is a use-after-free vulnerability in the Linux kernel's NVMe-RDMA transport layer where the async event work queue can race with the error recovery handler, potentially causing kernel memory corruption or denial of service.
Is CVE-2022-48788 being actively exploited?
No, CVE-2022-48788 is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available, though local privilege escalation is theoretically possible if the race condition is triggered.
What versions of Kernel are affected by CVE-2022-48788?
Linux kernel versions 5.16.0 through 5.16.10 are vulnerable; the issue was resolved in 5.16.11 and later stable releases.
How do I check if my server is vulnerable to CVE-2022-48788?
Run 'uname -r' to display your kernel version; if it reports 5.16.0 through 5.16.10 and NVMe-RDMA is in use (check 'lsmod | grep nvme_rdma'), your system is vulnerable.
Does Defensia detect CVE-2022-48788?
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-48788 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/324f5bdc52ecb6a6dadb31a62823ef8c709d1439
- https://git.kernel.org/stable/c/5593f72d1922403c11749532e3a0aa4cf61414e9
- https://git.kernel.org/stable/c/646952b2210f19e584d2bf9eb5d092abdca2fcc1
- https://git.kernel.org/stable/c/b6bb1722f34bbdbabed27acdceaf585d300c5fd2
- https://git.kernel.org/stable/c/d411b2a5da68b8a130c23097014434ac140a2ace
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48788. Free for 1 server.
Get started free