# CVE-2021-47345: RDMA/cma: Fix rdma\_resolve\_route() memory leak

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-05-21T14:35:51.621Z
- **Modified:** 2026-06-17T04:17:15.070Z

## Who should check

- Anyone running Linux \>= e51060f08a61965c4dd91516d82fe90617152590, \< 40b613db3a95bc27998e4097d74c2f7e5d083a0b; \>= e51060f08a61965c4dd91516d82fe90617152590, \< e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a; \>= e51060f08a61965c4dd91516d82fe90617152590, \< e4e062da082a199357ba4911145f331d40139ad8; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 4893c938f2a140a74be91779e45e4a7fa111198f; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 032c68b4f5be128a2167f35b558b7cec88fe4972; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 3d08b5917984f737f32d5bee9737b9075c3895c6; \>= e51060f08a61965c4dd91516d82fe90617152590, \< f4f553d67236145fa5fd203ed7b35b9377e19939; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 07583ba2e2d8947c3d365d97608cb436510885ac; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 74f160ead74bfe5f2b38afb4fcf86189f9ff40c9
- Anyone running Linux 2.6.18

## 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.

## Affected and fixed versions

- Linux: \>= e51060f08a61965c4dd91516d82fe90617152590, \< 40b613db3a95bc27998e4097d74c2f7e5d083a0b; \>= e51060f08a61965c4dd91516d82fe90617152590, \< e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a; \>= e51060f08a61965c4dd91516d82fe90617152590, \< e4e062da082a199357ba4911145f331d40139ad8; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 4893c938f2a140a74be91779e45e4a7fa111198f; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 032c68b4f5be128a2167f35b558b7cec88fe4972; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 3d08b5917984f737f32d5bee9737b9075c3895c6; \>= e51060f08a61965c4dd91516d82fe90617152590, \< f4f553d67236145fa5fd203ed7b35b9377e19939; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 07583ba2e2d8947c3d365d97608cb436510885ac; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 74f160ead74bfe5f2b38afb4fcf86189f9ff40c9 (cvelist)
- Linux: 2.6.18 (cvelist)

## Mitigation

- Upgrade Linux to 74f160ead74bfe5f2b38afb4fcf86189f9ff40c9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47345. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47345.md
Affected: Linux >= e51060f08a61965c4dd91516d82fe90617152590, < 40b613db3a95bc27998e4097d74c2f7e5d083a0b; >= e51060f08a61965c4dd91516d82fe90617152590, < e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a; >= e51060f08a61965c4dd91516d82fe90617152590, < e4e062da082a199357ba4911145f331d40139ad8; >= e51060f08a61965c4dd9151…
Fixed in: Linux 40b613db3a95bc27998e4097d74c2f7e5d083a0b, Linux 4893c938f2a140a74be91779e45e4a7fa111198f, Linux 032c68b4f5be128a2167f35b558b7cec88fe4972, Linux 3d08b5917984f737f32d5bee9737b9075c3895c6, Linux 07583ba2e2d8947c3d365d97608cb436510885ac, Linux 74f160ead74bfe5f2b38afb4fcf86189f9ff40c9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47345 being exploited?

There is no confirmed exploitation: CVE-2021-47345 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47345?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47345?

Linux \>= e51060f08a61965c4dd91516d82fe90617152590, \< 40b613db3a95bc27998e4097d74c2f7e5d083a0b; \>= e51060f08a61965c4dd91516d82fe90617152590, \< e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a; \>= e51060f08a61965c4dd91516d82fe90617152590, \< e4e062da082a199357ba4911145f331d40139ad8; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 4893c938f2a140a74be91779e45e4a7fa111198f; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 032c68b4f5be128a2167f35b558b7cec88fe4972; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 3d08b5917984f737f32d5bee9737b9075c3895c6; \>= e51060f08a61965c4dd91516d82fe90617152590, \< f4f553d67236145fa5fd203ed7b35b9377e19939; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 07583ba2e2d8947c3d365d97608cb436510885ac; \>= e51060f08a61965c4dd91516d82fe90617152590, \< 74f160ead74bfe5f2b38afb4fcf86189f9ff40c9; Linux 2.6.18.

### Is there a fix for CVE-2021-47345?

Yes. Fixed in Linux 40b613db3a95bc27998e4097d74c2f7e5d083a0b, Linux 4893c938f2a140a74be91779e45e4a7fa111198f, Linux 032c68b4f5be128a2167f35b558b7cec88fe4972, Linux 3d08b5917984f737f32d5bee9737b9075c3895c6, Linux 07583ba2e2d8947c3d365d97608cb436510885ac, Linux 74f160ead74bfe5f2b38afb4fcf86189f9ff40c9. Upgrade Linux to 74f160ead74bfe5f2b38afb4fcf86189f9ff40c9 or later.

### How do I check if I'm affected by CVE-2021-47345?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/40b613db3a95bc27998e4097d74c2f7e5d083a0b>
- patch: <https://git.kernel.org/stable/c/e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a>
- patch: <https://git.kernel.org/stable/c/e4e062da082a199357ba4911145f331d40139ad8>
- patch: <https://git.kernel.org/stable/c/4893c938f2a140a74be91779e45e4a7fa111198f>
- patch: <https://git.kernel.org/stable/c/032c68b4f5be128a2167f35b558b7cec88fe4972>
- patch: <https://git.kernel.org/stable/c/3d08b5917984f737f32d5bee9737b9075c3895c6>
- patch: <https://git.kernel.org/stable/c/f4f553d67236145fa5fd203ed7b35b9377e19939>
- patch: <https://git.kernel.org/stable/c/07583ba2e2d8947c3d365d97608cb436510885ac>
- patch: <https://git.kernel.org/stable/c/74f160ead74bfe5f2b38afb4fcf86189f9ff40c9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47345>

HTML: <https://flawdb.com/CVE-2021-47345> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47345>
