CVE-2022-49671Published Feb 26, 2025 · Feb 26Updated Oct 28
RDMA/cm: Fix memory leak in ib_cm_insert_listen
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/cm: Fix memory leak in ib_cm_insert_listen
cm_alloc_id_priv() allocates resource for the cm_id_priv. When cm_init_listen() fails it doesn't free it, leading to memory leak.
Add the missing error unwind.
From the CVE record · Linux
The Linux kernel's RDMA/cm component leaks memory allocated for cm_id_priv when cm_init_listen() fails. Repeated failures could consume memory; the input does not specify how an attacker could trigger them or whether access or user interaction is required.
Engineers running Linux kernels with the RDMA/cm component should check their versions; affected versions are not specified.