CVE-2021-47345

RDMA/cma: Fix rdma_resolve_route() memory leak

No CVSS score yet EPSS 0.26%

Published 21 May 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-47345

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47345 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

RDMA/cma: Fix rdma_resolve_route() memory leak

Fix a memory leak when "mda_resolve_route() is called more than once on the same "rdma_cm_id".

This is possible if cma_query_handler() triggers the RDMA_CM_EVENT_ROUTE_ERROR flow which puts the state machine back and allows rdma_resolve_route() to be called again.

Exploitation

EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e51060f08a61965c4dd91516d82fe90617152590, before 40b613db3a95bc27998e4097d74c2f7e5d083a0b
affected from e51060f08a61965c4dd91516d82fe90617152590, before e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a
affected from e51060f08a61965c4dd91516d82fe90617152590, before e4e062da082a199357ba4911145f331d40139ad8
affected from e51060f08a61965c4dd91516d82fe90617152590, before 4893c938f2a140a74be91779e45e4a7fa111198f
affected from e51060f08a61965c4dd91516d82fe90617152590, before 032c68b4f5be128a2167f35b558b7cec88fe4972
affected from e51060f08a61965c4dd91516d82fe90617152590, before 3d08b5917984f737f32d5bee9737b9075c3895c6
affected from e51060f08a61965c4dd91516d82fe90617152590, before f4f553d67236145fa5fd203ed7b35b9377e19939
affected from e51060f08a61965c4dd91516d82fe90617152590, before 07583ba2e2d8947c3d365d97608cb436510885ac
affected from e51060f08a61965c4dd91516d82fe90617152590, before 74f160ead74bfe5f2b38afb4fcf86189f9ff40c9
Other versions: unaffected
Linux
affected 2.6.18
unaffected before 2.6.18
unaffected from 4.4.276 up to and including 4.4.*
unaffected from 4.9.276 up to and including 4.9.*
unaffected from 4.14.240 up to and including 4.14.*
unaffected from 4.19.198 up to and including 4.19.*
unaffected from 5.4.133 up to and including 5.4.*
unaffected from 5.10.51 up to and including 5.10.*
unaffected from 5.12.18 up to and including 5.12.*
unaffected from 5.13.3 up to and including 5.13.*
unaffected 5.14 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47345 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47345

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47345
trivy image --scanners vuln IMAGE | grep CVE-2021-47345

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47345 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.