CVE-2021-47378

published 21 May 2024 · updated 5 Aug 2026

nvme-rdma: destroy cm id before destroy qp to avoid use after free

9.8CriticalCVSS 9.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 9817d763dbe15327b9b3ff4404fa6f27f927e744, Kernel d268a182c56e8361e19fb781137411643312b994 and Kernel ecf0dc5a904830c926a64feffd8e01141f89822f.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.8, >=7110230719602852481c2793d054f866b2bf4a2b <9817d763dbe15327b9b3ff4404fa6f27f927e744, >=7110230719602852481c2793d054f866b2bf4a2b <d268a182c56e8361e19fb781137411643312b994, >=7110230719602852481c2793d054f866b2bf4a2b <ecf0dc5a904830c926a64feffd8e01141f89822f9817d763dbe15327b9b3ff4404fa6f27f927e744, d268a182c56e8361e19fb781137411643312b994, ecf0dc5a904830c926a64feffd8e01141f89822f

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47378 severity on Zeptric[![CVE-2021-47378](https://zeptric.io/badge/cve/CVE-2021-47378.svg)](https://zeptric.io/cve/CVE-2021-47378)