# CVE-2024-42285: RDMA/iwcm: Fix a use-after-free related to destroying CM IDs

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-08-17 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2024-42285, DEBIAN-CVE-2024-42285
- Record: https://cvemate.com/vulnerability/CVE-2024-42285 · JSON: https://cvemate.com/vulnerability/CVE-2024-42285/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

RDMA/iwcm: Fix a use-after-free related to destroying CM IDs

iw_conn_req_handler() associates a new struct rdma_id_private (conn_id) with
an existing struct iw_cm_id (cm_id) as follows:

        conn_id->cm_id.iw = cm_id;
        cm_id->context = conn_id;
        cm_id->cm_handler = cma_iw_handler;

rdma_destroy_id() frees both the cm_id and the struct rdma_id_private. Make
sure that cm_work_handler() does not trigger a use-after-free by only
freeing of the struct rdma_id_private after all pending work has finished.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.87%, percentile 60.042%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 132)

- debian linux (Debian): \< 6.1.106-1 \| \< 6.10.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-200.220 \| \< 5.15.0-125.135 \| \< 6.8.0-50.51
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1135.145 \| \< 5.15.0-1072.78 \| \< 6.8.0-1020.22
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1072.78~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1135.145~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1020.22~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1135.145+fips1 \| \< 5.15.0-1072.78+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1140.147 \| \< 5.15.0-1075.84 \| \< 6.8.0-1020.23
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 31)

- <https://git.kernel.org/stable/c/d91d253c87fd1efece521ff2612078a35af673c6>
- <https://git.kernel.org/stable/c/7f25f296fc9bd0435be14e89bf657cd615a23574>
- <https://git.kernel.org/stable/c/94ee7ff99b87435ec63211f632918dc7f44dac79>
- <https://git.kernel.org/stable/c/557d035fe88d78dd51664f4dc0e1896c04c97cf6>
- <https://git.kernel.org/stable/c/dc8074b8901caabb97c2d353abd6b4e7fa5a59a5>
- <https://git.kernel.org/stable/c/ff5bbbdee08287d75d72e65b72a2b76d9637892a>
- <https://git.kernel.org/stable/c/ee39384ee787e86e9db4efb843818ef0ea9cb8ae>
- <https://git.kernel.org/stable/c/aee2424246f9f1dadc33faa78990c1e2eb7826e4>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- <https://ubuntu.com/security/CVE-2024-42285>
- <https://www.cve.org/CVERecord?id=CVE-2024-42285>
- <https://git.kernel.org/linus/aee2424246f9f1dadc33faa78990c1e2eb7826e4>
- <https://ubuntu.com/security/notices/USN-7088-1>
- <https://ubuntu.com/security/notices/USN-7088-2>
- <https://ubuntu.com/security/notices/USN-7088-3>
- <https://ubuntu.com/security/notices/USN-7088-4>
- <https://ubuntu.com/security/notices/USN-7100-1>
- <https://ubuntu.com/security/notices/USN-7100-2>
- <https://ubuntu.com/security/notices/USN-7088-5>

---

Data as of 2026-12-05T04:11:31.904Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
