CVE-2021-47345

RDMA/cma: Fix rdma_resolve_route() memory leak

MEDIUM
5.5
CVSS Score
Published: May 21, 2024 at 02:35 PM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.4.2762.6.18 ≤ v < 4.14.2402.6.18 ≤ v < 4.19.1982.6.18 ≤ v < 4.4.2762.6.18 ≤ v < 4.9.2762.6.18 ≤ v < 5.10.512.6.18 ≤ v < 5.12.182.6.18 ≤ v < 5.13.32.6.18 ≤ v < 5.142.6.18 ≤ v < 5.4.1334.10 ≤ v < 4.14.2404.15 ≤ v < 4.19.1984.20 ≤ v < 5.4.1334.5 ≤ v < 4.9.2765.11 ≤ v < 5.12.185.13 ≤ v < 5.13.35.5 ≤ v < 5.10.512.6.18e51060f08a61965c4dd91516d82fe90617152590
Vendor states this is fixed in 032c68b4f5be128a2167f35b558b7cec88fe4972 (fixed)
Vendor states this is fixed in 07583ba2e2d8947c3d365d97608cb436510885ac (fixed)
Vendor states this is fixed in 3d08b5917984f737f32d5bee9737b9075c3895c6 (fixed)
Vendor states this is fixed in 40b613db3a95bc27998e4097d74c2f7e5d083a0b (fixed)
Vendor states this is fixed in 4893c938f2a140a74be91779e45e4a7fa111198f (fixed)
Vendor states this is fixed in 74f160ead74bfe5f2b38afb4fcf86189f9ff40c9 (fixed)
Vendor states this is fixed in e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a (fixed)
Vendor states this is fixed in e4e062da082a199357ba4911145f331d40139ad8 (fixed)
Vendor states this is fixed in f4f553d67236145fa5fd203ed7b35b9377e19939 (fixed)
Vendor states this is fixed in 2.6.18 (unaffected)
Vendor states this is fixed in 4.14.240 (unaffected)
Vendor states this is fixed in 4.19.198 (unaffected)
Vendor states this is fixed in 4.4.276 (unaffected)
Vendor states this is fixed in 4.9.276 (unaffected)
Vendor states this is fixed in 5.10.51 (unaffected)
Vendor states this is fixed in 5.12.18 (unaffected)
Vendor states this is fixed in 5.13.3 (unaffected)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.4.133 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/032c68b4f5be128a2167f35b558b7cec88fe4972
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/07583ba2e2d8947c3d365d97608cb436510885ac
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3d08b5917984f737f32d5bee9737b9075c3895c6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/40b613db3a95bc27998e4097d74c2f7e5d083a0b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4893c938f2a140a74be91779e45e4a7fa111198f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/74f160ead74bfe5f2b38afb4fcf86189f9ff40c9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e4e062da082a199357ba4911145f331d40139ad8

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card