# CVE-2022-49671: RDMA/cm: Fix memory leak in ib_cm_insert_listen

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.28%, higher than 22% of CVEs (2026-12-02)
- Published: 2025-02-26T02:24:04.608Z
- Modified: 2026-06-17T05:18:48.730Z
- 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/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.

(As written by CVE List.)

## Affected

- Linux Linux: from 98f67156a80f37db70ec64787020b1f9bc8aea8c before b0cab8b517aeaf2592c3479294f934209c41a26f; from 98f67156a80f37db70ec64787020b1f9bc8aea8c before 889000874c1204e47c7f2a4945db262a47e7efc9; from 98f67156a80f37db70ec64787020b1f9bc8aea8c before 2febf09a8a8ae4accf908f043f1bab1421056568; from 98f67156a80f37db70ec64787020b1f9bc8aea8c before 2990f223ffa7bb25422956b9f79f9176a5b38346; 5.7 (not affected: before 5.7; from 5.10.129 up to 5.10.*; from 5.15.53 up to 5.15.*; from 5.18.10 up to 5.18.*; from 5.19 up to *)
- linux 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

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b0cab8b517aeaf2592c3479294f934209c41a26f> (patch)
- <https://git.kernel.org/stable/c/889000874c1204e47c7f2a4945db262a47e7efc9> (patch)
- <https://git.kernel.org/stable/c/2febf09a8a8ae4accf908f043f1bab1421056568> (patch)
- <https://git.kernel.org/stable/c/2990f223ffa7bb25422956b9f79f9176a5b38346> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-49671 · Whole record: https://cve.day/CVE-2022-49671.json · Rebuilt by cve.day 2026-11-25T22:58:20.796Z
