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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-21 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2021-47345, DEBIAN-CVE-2021-47345
- Record: https://cvemate.com/vulnerability/CVE-2021-47345 · JSON: https://cvemate.com/vulnerability/CVE-2021-47345/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.259%, percentile 18.665%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 90)

- debian linux (Debian): \< 5.14.6-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 4.4.0-272.306 \| \< 4.15.0-156.163 \| \< 5.4.0-84.94
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1147.153 \| \< 4.4.0-1185.200 \| \< 4.15.0-1111.118 \| \< 5.4.0-1056.59
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1056.59~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2053.55 \| All versions (No fix recorded) \| \< 5.4.0-1069.73+fips2
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1111.118~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1123.136~14.04.1 \| \< 4.15.0-1123.136~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1058.60
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1123.136
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/40b613db3a95bc27998e4097d74c2f7e5d083a0b>
- <https://git.kernel.org/stable/c/e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a>
- <https://git.kernel.org/stable/c/e4e062da082a199357ba4911145f331d40139ad8>
- <https://git.kernel.org/stable/c/4893c938f2a140a74be91779e45e4a7fa111198f>
- <https://git.kernel.org/stable/c/032c68b4f5be128a2167f35b558b7cec88fe4972>
- <https://git.kernel.org/stable/c/3d08b5917984f737f32d5bee9737b9075c3895c6>
- <https://git.kernel.org/stable/c/f4f553d67236145fa5fd203ed7b35b9377e19939>
- <https://git.kernel.org/stable/c/07583ba2e2d8947c3d365d97608cb436510885ac>
- <https://git.kernel.org/stable/c/74f160ead74bfe5f2b38afb4fcf86189f9ff40c9>
- <https://ubuntu.com/security/CVE-2021-47345>
- <https://www.cve.org/CVERecord?id=CVE-2021-47345>
- <https://git.kernel.org/linus/74f160ead74bfe5f2b38afb4fcf86189f9ff40c9>
- <https://ubuntu.com/security/notices/USN-7727-1>
- <https://ubuntu.com/security/notices/USN-7727-2>
- <https://ubuntu.com/security/notices/USN-7727-3>
- <https://security-tracker.debian.org/tracker/CVE-2021-47345>

---

Data as of 2026-12-05T05:06:20.263Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
