{"id":"CVE-2024-42285","summary":"RDMA/iwcm: Fix a use-after-free related to destroying CM IDs","details":"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-\u003ecm_id.iw = cm_id;\n        cm_id-\u003econtext = conn_id;\n        cm_id-\u003ecm_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.","modified":"2026-04-16T04:37:17.844508245Z","published":"2024-08-17T09:08:51.302Z","related":["SUSE-SU-2024:3189-1","SUSE-SU-2024:3190-1","SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3209-1","SUSE-SU-2024:3251-1","SUSE-SU-2024:3252-1","SUSE-SU-2024:3383-1","SUSE-SU-2024:3483-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42285.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/557d035fe88d78dd51664f4dc0e1896c04c97cf6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7f25f296fc9bd0435be14e89bf657cd615a23574"},{"type":"WEB","url":"https://git.kernel.org/stable/c/94ee7ff99b87435ec63211f632918dc7f44dac79"},{"type":"WEB","url":"https://git.kernel.org/stable/c/aee2424246f9f1dadc33faa78990c1e2eb7826e4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d91d253c87fd1efece521ff2612078a35af673c6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dc8074b8901caabb97c2d353abd6b4e7fa5a59a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee39384ee787e86e9db4efb843818ef0ea9cb8ae"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ff5bbbdee08287d75d72e65b72a2b76d9637892a"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42285.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42285"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"59c68ac31e15ad09d2cb04734e3c8c544a95f8d4"},{"fixed":"d91d253c87fd1efece521ff2612078a35af673c6"},{"fixed":"7f25f296fc9bd0435be14e89bf657cd615a23574"},{"fixed":"94ee7ff99b87435ec63211f632918dc7f44dac79"},{"fixed":"557d035fe88d78dd51664f4dc0e1896c04c97cf6"},{"fixed":"dc8074b8901caabb97c2d353abd6b4e7fa5a59a5"},{"fixed":"ff5bbbdee08287d75d72e65b72a2b76d9637892a"},{"fixed":"ee39384ee787e86e9db4efb843818ef0ea9cb8ae"},{"fixed":"aee2424246f9f1dadc33faa78990c1e2eb7826e4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42285.json"}}],"schema_version":"1.7.5"}