What’s Vulnerable › Vulnerabilities
CVE-2022-49671: RDMA/cm: Fix memory leak in ib_cm_insert_listen
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
- Weakness: CWE-401
Description
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.
Affected products
- Linux kernel: from 5.7 before 5.10.129; from 5.11 before 5.15.53; from 5.16 before 5.18.10; 5.19-rc1, 5.19-rc2, 5.19-rc3, 5.19-rc4 — fixed in 5.10.129, 5.15.53, 5.18.10
How to fix
Upgrade to a fixed version: Linux kernel 5.10.129, 5.15.53, 5.18.10. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/2990f223ffa7bb25422956b9f79f9176a5b38346
- https://git.kernel.org/stable/c/2febf09a8a8ae4accf908f043f1bab1421056568
- https://git.kernel.org/stable/c/889000874c1204e47c7f2a4945db262a47e7efc9
- https://git.kernel.org/stable/c/b0cab8b517aeaf2592c3479294f934209c41a26f
Get alerted when CVE-2022-49671 or the next vulnerability affects your stack