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

Published May 21, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

The Linux kernel CVE team has assigned CVE-2021-47378 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052142-CVE-2021-47378-8e72@gregkh/T

Other sources

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 cmid 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 cmerror to upper level, qp will be destroy in nvmerdmaallocqueue() after destroy cm id.

NVD

Affected Software

6 affected componentsFixes available
redhat/kernel<5.10.70
5.10.70
redhat/kernel<5.14.9
5.14.9
redhat/kernel<5.15
5.15
Linux Linux kernel<5.10.70
Linux Linux kernel>=5.11<5.14.9
Linux Linux kernel=5.15-rc1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.10.70
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.14.9
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.15
  4. Upgrade

    Upgrade linux kernel to a version that resolves this vulnerability.

    Patch CVE-2021-47378
  5. Configuration

    In RDMA connection establishment error flow, ensure nvme-rdma destroys cm_id before destroying qp ("destroy cm id before destroy qp") to avoid use-after-free during event handling.

    nvme-rdma Connection establishment error flow cleanup order = destroy cm_id before destroy qp

Event History

May 21, 2024
CVE Published
via MITRE·03:03 PM
Data Sourced
via MITRE·03:03 PM
DescriptionSeverity
May 22, 2024
Data Sourced
via Red Hat·09:28 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-47378?

CVE-2021-47378 is classified as a medium-severity vulnerability in the Linux kernel.

2

How do I fix CVE-2021-47378?

To fix CVE-2021-47378, update your kernel to version 5.10.70, 5.14.9, or 5.15 as specified by the vendor.

3

What systems are affected by CVE-2021-47378?

CVE-2021-47378 affects systems running specific versions of the Linux kernel before the specified remedied versions.

4

What does CVE-2021-47378 exploit?

CVE-2021-47378 exploits a use-after-free vulnerability in nvme-rdma functionality within the Linux kernel.

5

Is CVE-2021-47378 being actively exploited?

As of the latest reports, there is no indication that CVE-2021-47378 is being actively exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203