CVE-2021-47378
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
1.18% (higher than 68% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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

Product or packageVersionsReported by
Linux Linuxfrom 7110230719602852481c2793d054f866b2bf4a2b before ecf0dc5a904830c926a64feffd8e01141f89822f, from 7110230719602852481c2793d054f866b2bf4a2b before d268a182c56e8361e19fb781137411643312b994, from 7110230719602852481c2793d054f866b2bf4a2b before 9817d763dbe15327b9b3ff4404fa6f27f927e744, 4.8
Not affected: before 4.8, from 5.10.70 up to 5.10.*, from 5.14.9 up to 5.14.*, from 5.15 up to *
CVE List
linux linux_kernel1da177e4c3f4, before 5.10.70, from 5.11 before 5.14.9, 5.15
Not affected: 5.10.70, 5.14.9, 5.15
CVE List, NVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nvme-rdma: destruye cm id antes de destruir qp para evitar su use after free. Siempre debemos destruir cm_id antes de destruir qp para evitar que se produzca un evento cma después de que se destruya qp, lo que puede llevar a use after free. En el flujo de error de establecimiento de conexión RDMA, no destruya qp en el controlador de eventos cm. Simplemente informe cm_error al nivel superior, qp se destruirá en nvme_rdma_alloc_queue() después de destruir cm id.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47378 changed 2026-08-05CVE Terms of Use
NVDCVE-2021-47378 changed 2026-06-17Public domain