{"id":"CVE-2024-42285","aliases":["CVE-2024-42285"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/iwcm: Fix a use-after-free related to destroying CM IDs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: RDMA/iwcm: corrige un use-after-free relacionado con la destrucción de ID de CM iw_conn_req_handler() asocia una nueva estructura rdma_id_private (conn_id) con una estructura iw_cm_id (cm_id) existente de la siguiente manera: conn_id-&gt;cm_id.iw = cm_id; cm_id-&gt;context = conn_id; cm_id-&gt;cm_handler = cma_iw_handler; rdma_destroy_id() libera tanto cm_id como struct rdma_id_private. Asegúrese de que cm_work_handler() no active un use-after-free liberando solo la estructura rdma_id_private después de que todo el trabajo pendiente haya finalizado.","source":"nvd"}],"published":"2024-08-17T09:08:51.302Z","modified":"2026-08-05T11:36:21.283Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"59c68ac31e15ad09d2cb04734e3c8c544a95f8d4","fixed":"d91d253c87fd1efece521ff2612078a35af673c6","status":"affected"},{"type":"git","introduced":"59c68ac31e15ad09d2cb04734e3c8c544a95f8d4","fixed":"7f25f296fc9bd0435be14e89bf657cd615a23574","status":"affected"},{"type":"git","introduced":"59c68ac31e15ad09d2cb04734e3c8c544a95f8d4","fixed":"94ee7ff99b87435ec63211f632918dc7f44dac79","status":"affected"},{"type":"git","introduced":"59c68ac31e15ad09d2cb04734e3c8c544a95f8d4","fixed":"557d035fe88d78dd51664f4dc0e1896c04c97cf6","status":"affected"},{"type":"git","introduced":"59c68ac31e15ad09d2cb04734e3c8c544a95f8d4","fixed":"dc8074b8901caabb97c2d353abd6b4e7fa5a59a5","status":"affected"},{"type":"git","introduced":"59c68ac31e15ad09d2cb04734e3c8c544a95f8d4","fixed":"ff5bbbdee08287d75d72e65b72a2b76d9637892a","status":"affected"},{"type":"git","introduced":"59c68ac31e15ad09d2cb04734e3c8c544a95f8d4","fixed":"ee39384ee787e86e9db4efb843818ef0ea9cb8ae","status":"affected"},{"type":"git","introduced":"59c68ac31e15ad09d2cb04734e3c8c544a95f8d4","fixed":"aee2424246f9f1dadc33faa78990c1e2eb7826e4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"4.19.320","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.282","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.224","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.165","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.103","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.44","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.3","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.8","fixed":"4.19.320"},{"status":"affected","introduced":"4.20","fixed":"5.4.282"},{"status":"affected","introduced":"5.5","fixed":"5.10.224"},{"status":"affected","introduced":"5.11","fixed":"5.15.165"},{"status":"affected","introduced":"5.16","fixed":"6.1.103"},{"status":"affected","introduced":"6.2","fixed":"6.6.44"},{"status":"affected","introduced":"6.7","fixed":"6.10.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d91d253c87fd1efece521ff2612078a35af673c6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7f25f296fc9bd0435be14e89bf657cd615a23574","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94ee7ff99b87435ec63211f632918dc7f44dac79","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/557d035fe88d78dd51664f4dc0e1896c04c97cf6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc8074b8901caabb97c2d353abd6b4e7fa5a59a5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff5bbbdee08287d75d72e65b72a2b76d9637892a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee39384ee787e86e9db4efb843818ef0ea9cb8ae","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aee2424246f9f1dadc33faa78990c1e2eb7826e4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:11:23.465Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42285","url":"https://www.cve.org/CVERecord?id=CVE-2024-42285","licence":"CVE Terms of Use","modified":"2026-08-05T11:36:21.283Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42285","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42285","licence":"Public domain","modified":"2026-08-04T11:19:46.570Z"}],"updatedAt":"2026-11-25T22:58:44.464Z","epss":{"score":0.01081,"percentile":0.64745,"date":"2026-11-30T12:00:22.000Z"}}