CVE-2024-42285: RDMA/iwcm: Fix a use-after-free related to destroying CM IDs
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.
Security readout for executives and security teams
Plain-English summary
A Linux kernel timing flaw can let RDMA connection-management work access memory after it has been freed. The supplied CVSS rating is 9.8, indicating potentially severe confidentiality, integrity, and availability impact. Actual risk depends on whether affected kernel code and RDMA IWCM functionality are present and reachable.
Executive priority
Treat remediation as urgent for affected systems using RDMA, especially those exposed to untrusted networks. Prioritize inventory and vendor package confirmation because the severity is critical, while recognizing that the supplied evidence does not establish active exploitation or universal exposure across Linux hosts.
Technical view
The flaw occurs when rdma_destroy_id() frees an iw_cm_id and its associated rdma_id_private while cm_work_handler() can still process pending work referencing that memory. The stable fix defers freeing rdma_id_private until pending work completes, preventing the use-after-free condition.
Likely exposure
Exposure is limited to Linux systems running affected kernel builds where the RDMA IWCM path is available or used. The supplied version data includes multiple upstream and stable versions, but downstream distribution backports may differ. Exact exposure requires package-level verification with the relevant Linux distributor.
Exploitation context
The bundle reports no CISA KEV listing and provides no cited evidence of active exploitation or a public exploit. The supplied CVSS vector describes a network-reachable, low-complexity attack requiring neither privileges nor user interaction, but demonstrated exploitability and environmental prerequisites are not documented here.
Researcher notes
This is a lifetime-synchronization defect involving conn_id, cm_id, rdma_destroy_id(), and asynchronous cm_work_handler() processing. Review the stable-branch commits for exact backport context. The bundle supplies no CWE, proof of concept, crash signature, exploitation telemetry, or detailed trigger prerequisites, limiting exploitability assessment.
Mitigation direction
Apply the Linux or distribution kernel update containing the applicable stable fix.
Follow distributor guidance to identify the corrected downstream kernel package.
Reboot affected systems into the updated kernel after installation.
If patching is delayed, seek vendor-supported guidance for limiting RDMA IWCM exposure.
Validation and detection
Inventory running kernel versions and distribution package builds across Linux systems.
Identify systems with RDMA IWCM functionality available or actively used.
Confirm each running kernel contains the relevant upstream fix or distributor backport.
Verify systems booted into the updated kernel rather than merely installing it.
Monitor vendor advisories for corrected package versions and revised exposure information.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-42285 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.