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

CVE record · `CVE-2024-42285`

- **Identifiers:** `CVE-2024-42285`
- **State:** Confirmed
- **Severity:** CVSS 9.8 Critical
- **Critical:** Yes: CVSS 9+
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 17 Aug 2024
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 17 Aug 2024, 09:08 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Critical

Critical, because:

- CVSS score 9.8: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `59c68ac31e15ad09d2cb04734e3c8c544a95f8d4 to before d91d253c87fd1efece521ff2612078a35af673c6` (git)
  - affected: `59c68ac31e15ad09d2cb04734e3c8c544a95f8d4 to before 7f25f296fc9bd0435be14e89bf657cd615a23574` (git)
  - affected: `59c68ac31e15ad09d2cb04734e3c8c544a95f8d4 to before 94ee7ff99b87435ec63211f632918dc7f44dac79` (git)
  - affected: `59c68ac31e15ad09d2cb04734e3c8c544a95f8d4 to before 557d035fe88d78dd51664f4dc0e1896c04c97cf6` (git)
  - affected: `59c68ac31e15ad09d2cb04734e3c8c544a95f8d4 to before dc8074b8901caabb97c2d353abd6b4e7fa5a59a5` (git)
  - affected: `59c68ac31e15ad09d2cb04734e3c8c544a95f8d4 to before ff5bbbdee08287d75d72e65b72a2b76d9637892a` (git)
  - affected: `59c68ac31e15ad09d2cb04734e3c8c544a95f8d4 to before ee39384ee787e86e9db4efb843818ef0ea9cb8ae` (git)
  - affected: `59c68ac31e15ad09d2cb04734e3c8c544a95f8d4 to before aee2424246f9f1dadc33faa78990c1e2eb7826e4` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.8`
  - unaffected: `before 4.8` (semver)
  - unaffected: `4.19.320 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.282 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.224 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.165 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.103 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.44 to 6.6.*, inclusive` (semver)
  - unaffected: `6.10.3 to 6.10.*, inclusive` (semver)
  - unaffected: `6.11 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 9.8 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0087, the 59th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 17 Aug 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2024-42285](https://www.cve.org/CVERecord?id=CVE-2024-42285)
- [NVD: CVE-2024-42285](https://nvd.nist.gov/vuln/detail/CVE-2024-42285)

### References from the CNA

- <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>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-42285>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-42285/>. Everything for agents: <https://agentprime.io/llms.txt>.
