# CVE-2021-47345: RDMA/cma: Fix rdma_resolve_route() memory leak

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:51.621Z
- Modified: 2026-06-17T04:17:15.070Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from e51060f08a61965c4dd91516d82fe90617152590 before 40b613db3a95bc27998e4097d74c2f7e5d083a0b; from e51060f08a61965c4dd91516d82fe90617152590 before e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a; from e51060f08a61965c4dd91516d82fe90617152590 before e4e062da082a199357ba4911145f331d40139ad8; from e51060f08a61965c4dd91516d82fe90617152590 before 4893c938f2a140a74be91779e45e4a7fa111198f; from e51060f08a61965c4dd91516d82fe90617152590 before 032c68b4f5be128a2167f35b558b7cec88fe4972; from e51060f08a61965c4dd91516d82fe90617152590 before 3d08b5917984f737f32d5bee9737b9075c3895c6; from e51060f08a61965c4dd91516d82fe90617152590 before f4f553d67236145fa5fd203ed7b35b9377e19939; from e51060f08a61965c4dd91516d82fe90617152590 before 07583ba2e2d8947c3d365d97608cb436510885ac; from e51060f08a61965c4dd91516d82fe90617152590 before 74f160ead74bfe5f2b38afb4fcf86189f9ff40c9; 2.6.18 (not affected: before 2.6.18; from 4.4.276 up to 4.4.*; from 4.9.276 up to 4.9.*; from 4.14.240 up to 4.14.*; from 4.19.198 up to 4.19.*; from 5.4.133 up to 5.4.*; from 5.10.51 up to 5.10.*; from 5.12.18 up to 5.12.*; from 5.13.3 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: before 4.4.276; from 4.5 before 4.9.276; from 4.10 before 4.14.240; from 4.15 before 4.19.198; from 4.20 before 5.4.133; from 5.5 before 5.10.51; from 5.11 before 5.12.18; from 5.13 before 5.13.3

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2021-47345](https://www.cve.org/CVERecord?id=CVE-2021-47345), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47345](https://nvd.nist.gov/vuln/detail/CVE-2021-47345), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47345 · Whole record: https://cve.day/CVE-2021-47345.json · Rebuilt by cve.day 2026-11-25T22:58:08.808Z
