{"id":"CVE-2024-42285","published":"2024-08-17T09:08:51Z","modified":"2026-08-05T11:36:21Z","title":"RDMA/iwcm: Fix a use-after-free related to destroying CM IDs","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/iwcm: Fix a use-after-free related to destroying CM IDs\n\niw_conn_req_handler() associates a new struct rdma_id_private (conn_id) with\nan existing struct iw_cm_id (cm_id) as follows:\n\n        conn_id->cm_id.iw = cm_id;\n        cm_id->context = conn_id;\n        cm_id->cm_handler = cma_iw_handler;\n\nrdma_destroy_id() frees both the cm_id and the struct rdma_id_private. Make\nsure that cm_work_handler() does not trigger a use-after-free by only\nfreeing of the struct rdma_id_private after all pending work has finished.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0087,"percentile":0.59676,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d91d253c87fd1efece521ff2612078a35af673c6","tags":[]},{"url":"https://git.kernel.org/stable/c/7f25f296fc9bd0435be14e89bf657cd615a23574","tags":[]},{"url":"https://git.kernel.org/stable/c/94ee7ff99b87435ec63211f632918dc7f44dac79","tags":[]},{"url":"https://git.kernel.org/stable/c/557d035fe88d78dd51664f4dc0e1896c04c97cf6","tags":[]},{"url":"https://git.kernel.org/stable/c/dc8074b8901caabb97c2d353abd6b4e7fa5a59a5","tags":[]},{"url":"https://git.kernel.org/stable/c/ff5bbbdee08287d75d72e65b72a2b76d9637892a","tags":[]},{"url":"https://git.kernel.org/stable/c/ee39384ee787e86e9db4efb843818ef0ea9cb8ae","tags":[]},{"url":"https://git.kernel.org/stable/c/aee2424246f9f1dadc33faa78990c1e2eb7826e4","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","tags":[]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":11.94},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, < d91d253c87fd1efece521ff2612078a35af673c6",">= 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, < 7f25f296fc9bd0435be14e89bf657cd615a23574",">= 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, < 94ee7ff99b87435ec63211f632918dc7f44dac79",">= 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, < 557d035fe88d78dd51664f4dc0e1896c04c97cf6",">= 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, < dc8074b8901caabb97c2d353abd6b4e7fa5a59a5",">= 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, < ff5bbbdee08287d75d72e65b72a2b76d9637892a",">= 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, < ee39384ee787e86e9db4efb843818ef0ea9cb8ae",">= 59c68ac31e15ad09d2cb04734e3c8c544a95f8d4, < aee2424246f9f1dadc33faa78990c1e2eb7826e4"]},{"vendor":"Linux","product":"Linux","versions":["4.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:11:23.465400Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39508","exploited":false,"provenance":"source"}}