Skip to content
Fencer Vulns
critical 9.8

CVE-2021-47378 in the critical feed json

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

published 2024-05-21 2 y ago modified 2026-08-05 3 mo ago also EUVD-2021-34383

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.2%
EPSS 1.2% chance of exploitation in 30 days, percentile 67%
public exploits
0
none known

Summary

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.

Patch / fix

  • Linux Linux 5.10.70, 5.14.9, 5.15
  • linux Debian 14, Debian 13, Debian 12 5.14.9-1

debian advisories DEBIAN-CVE-2021-47378

  • linux Ubuntu Pro 18.04 LTS 4.15.0-254.266
  • linux Ubuntu Pro 20.04 LTS 5.4.0-234.254
  • linux-aws Ubuntu Pro 18.04 LTS 4.15.0-1195.208
  • linux-aws Ubuntu Pro 20.04 LTS 5.4.0-1162.173
  • linux-gcp Ubuntu Pro 16.04 LTS 4.15.0-1188.205~16.04.1
  • linux-gcp Ubuntu Pro 20.04 LTS 5.4.0-1165.174
  • linux-hwe Ubuntu Pro 16.04 LTS 4.15.0-254.266~16.04.1
  • linux-ibm Ubuntu Pro 20.04 LTS 5.4.0-1108.113

ubuntu advisories UBUNTU-CVE-2021-47378

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel RHEL 9 5.14.0-162.6.1.el9_1
  • perf RHEL 9 5.14.0-162.6.1.el9_1
  • bpftool RHEL 9 5.14.0-162.6.1.el9_1
  • kernel-core RHEL 9 5.14.0-162.6.1.el9_1
  • kernel-tools RHEL 9 5.14.0-162.6.1.el9_1
  • python3-perf RHEL 9 5.14.0-162.6.1.el9_1
  • kernel-modules RHEL 9 5.14.0-162.6.1.el9_1
  • kernel-zfcpdump RHEL 9 5.14.0-162.6.1.el9_1

red hat advisories RHSA-2022:8267RHSA-2024:6297RHSA-2022:7683

  • kernel-livepatch-SLE15-SP3_Update_42 SLE Live Patching 15 SP3 12-150300.7.6.1
  • kernel-livepatch-SLE15-SP3_Update_43 SLE Live Patching 15 SP3 11-150300.7.6.1
  • kernel-livepatch-SLE15-SP3_Update_44 SLE Live Patching 15 SP3 10-150300.7.6.1
  • kernel-livepatch-SLE15-SP3_Update_44 SLE Live Patching 15 SP3 9-150300.7.6.1
  • kernel-livepatch-SLE15-SP3_Update_43 SLE Live Patching 15 SP3 10-150300.7.6.1
  • kgraft-patch-SLE12-SP5_Update_54 SLE Live Patching 12 SP5 11-8.10.1
  • kernel-livepatch-SLE15-SP3_Update_42 SLE Live Patching 15 SP3 11-150300.7.6.1
  • kgraft-patch-SLE12-SP5_Update_56 SLE Live Patching 12 SP5 9-8.6.1

suse advisories SUSE-SU-2025:0244-1SUSE-SU-2025:0240-1SUSE-SU-2025:0238-1SUSE-SU-2025:0137-1SUSE-SU-2025:0106-1SUSE-SU-2025:0103-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-47378 updated cvss 6.0

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

  • Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 more
    affected: workaround, no fix planned “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.”
  • Red Hat CodeReady Linux Builder (v. 8) kernel-debuginfo-common-x86_64 4.18.0-425.3.1.el8, kernel-debuginfo-common-aarch64 4.18.0-425.3.1.el8, kernel-debuginfo-common-ppc64le 4.18.0-425.3.1.el8
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:7683
  • Red Hat CodeReady Linux Builder (v. 9) kernel-debuginfo-common-s390x 5.14.0-162.6.1.el9_1, kernel-debuginfo-common-x86_64 5.14.0-162.6.1.el9_1, kernel-debuginfo-common-aarch64 5.14.0-162.6.1.el9_1, kernel-debuginfo-common-ppc64le 5.14.0-162.6.1.el9_1 Red Hat Enterprise Linux AppStream (v. 9) perf 5.14.0-162.6.1.el9_1, kernel-devel-matched 5.14.0-162.6.1.el9_1, kernel-debug-devel-matched 5.14.0-162.6.1.el9_1, kernel-debuginfo-common-s390x 5.14.0-162.6.1.el9_1, kernel-zfcpdump-devel-matched 5.14.0-162.6.1.el9_1, kernel-debuginfo-common-x86_64 5.14.0-162.6.1.el9_1, +2 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:8267
  • Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-425.3.1.el8, kernel 4.18.0-425.3.1.el8, bpftool 4.18.0-425.3.1.el8, kernel-core 4.18.0-425.3.1.el8, kernel-tools 4.18.0-425.3.1.el8, python3-perf 4.18.0-425.3.1.el8, +15 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:7683
  • Red Hat Enterprise Linux BaseOS (v. 9) kernel 5.14.0-162.6.1.el9_1, bpftool 5.14.0-162.6.1.el9_1, kernel-core 5.14.0-162.6.1.el9_1, kernel-tools 5.14.0-162.6.1.el9_1, python3-perf 5.14.0-162.6.1.el9_1, kernel-modules 5.14.0-162.6.1.el9_1, +14 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2022:8267
  • Red Hat Enterprise Linux BaseOS AUS (v.8.6) perf 4.18.0-372.121.1.el8_6, kernel 4.18.0-372.121.1.el8_6, bpftool 4.18.0-372.121.1.el8_6, kernel-core 4.18.0-372.121.1.el8_6, kernel-tools 4.18.0-372.121.1.el8_6, python3-perf 4.18.0-372.121.1.el8_6, +8 more Red Hat Enterprise Linux BaseOS E4S (v.8.6) perf 4.18.0-372.121.1.el8_6, kernel 4.18.0-372.121.1.el8_6, bpftool 4.18.0-372.121.1.el8_6, kernel-core 4.18.0-372.121.1.el8_6, kernel-tools 4.18.0-372.121.1.el8_6, python3-perf 4.18.0-372.121.1.el8_6, +15 more Red Hat Enterprise Linux BaseOS TUS (v.8.6) perf 4.18.0-372.121.1.el8_6, kernel 4.18.0-372.121.1.el8_6, bpftool 4.18.0-372.121.1.el8_6, kernel-core 4.18.0-372.121.1.el8_6, kernel-tools 4.18.0-372.121.1.el8_6, python3-perf 4.18.0-372.121.1.el8_6, +8 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:6297
  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 8 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +6 more Red Hat Enterprise Linux BaseOS AUS (v.8.6) kernel-doc 4.18.0-372.121.1.el8_6 Red Hat Enterprise Linux BaseOS E4S (v.8.6) kernel-doc 4.18.0-372.121.1.el8_6 Red Hat Enterprise Linux BaseOS TUS (v.8.6) kernel-doc 4.18.0-372.121.1.el8_6
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
21 mo ago

Exploit prediction

1.18% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADP 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

  • Linux Linux
  • linux linux_kernel

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.