CVE-2024-42285CWE-416

CVE-2024-42285

Critical · published August 17, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
58.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00870 · 58.4th percentile
Weakness
CWE-416 · Use After Free
Published
2024-08-17T13:15Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel≥ 4.8, < 4.19.3204.19.320
linux/linux_kernel≥ 4.20, < 5.4.2825.4.282
linux/linux_kernel≥ 5.5, < 5.10.2245.10.224
linux/linux_kernel≥ 5.11, < 5.15.1655.15.165
linux/linux_kernel≥ 5.16, < 6.1.1036.1.103
linux/linux_kernel≥ 6.2, < 6.6.446.6.44
linux/linux_kernel≥ 6.7, < 6.10.36.10.3
References (10)
EPSS history
Timeline
  • 17 AUG 09:08Z
    RDMA/iwcm: Fix a use-after-free related to destroying CM IDs
    cvelistv5