CVE-2021-47378·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: nvme-rdma: destroy cm id before destroy qp to avoid use after free We should always destroy cm_id before destroy qp to avoid to get cma event after qp was destroyed, which may lead to use after free. In RDMA connection establishment error flow, don't destroy qp in cm event handler.Just report cm_error to upper level, qp will be destroy in nvme_rdma_alloc_queue() after destroy cm id.
- Severity
- critical
- Software
- Kernel
- Fixed in
- 5.14.9
- Published
- 2024-05-21
Affected versions
From: 5.11
Until: 5.14.9
Fixed in: 5.14.9
How to fix this CVE
Update your Linux kernel to version 5.14.9 or later to patch the NVMe RDMA memory safety issue. This vulnerability affects systems running kernel versions 5.11 through 5.14.8 where improper resource cleanup in the NVMe RDMA driver can lead to kernel crashes or memory corruption. Apply the latest kernel updates immediately and reboot your system to activate the patched version.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Run 'uname -r' to display your currently running kernel version and verify it is 5.14.9 or later
- Step 2: Check if NVMe RDMA is in use by running 'lsmod | grep nvme' and 'lsmod | grep rdma' to confirm the vulnerable drivers are loaded
- Step 3: Search kernel logs for RDMA-related errors using 'sudo journalctl -b | grep -i rdma' or 'sudo dmesg | grep -i rdma' to identify potential exploitation attempts
- Step 4: After applying updates, reboot the system with 'sudo reboot' and confirm the new kernel version is active with 'uname -r'
FAQ
What is CVE-2021-47378?
CVE-2021-47378 is a critical use-after-free vulnerability in the Linux kernel's NVMe RDMA driver where improper ordering of resource cleanup operations can allow the driver to access freed memory, potentially causing kernel crashes or memory corruption on systems using NVMe RDMA storage.
Is CVE-2021-47378 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, its critical severity rating warrants immediate patching.
What versions of Kernel are affected by CVE-2021-47378?
Linux kernel versions 5.11 through 5.14.8 are vulnerable. The fix is available in kernel 5.14.9 and all later versions.
How do I check if my server is vulnerable to CVE-2021-47378?
Run 'uname -r' to check your kernel version. If it shows a version between 5.11 and 5.14.8, your system is vulnerable. Systems running 5.14.9 or later, or 5.10 and earlier, are not affected.
Does Defensia detect CVE-2021-47378?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-47378 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/9817d763dbe15327b9b3ff4404fa6f27f927e744
- https://git.kernel.org/stable/c/d268a182c56e8361e19fb781137411643312b994
- https://git.kernel.org/stable/c/ecf0dc5a904830c926a64feffd8e01141f89822f
- https://git.kernel.org/stable/c/9817d763dbe15327b9b3ff4404fa6f27f927e744
- https://git.kernel.org/stable/c/d268a182c56e8361e19fb781137411643312b994
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47378. Free for 1 server.
Get started free