{"id":"CVE-2026-98367","aliases":["CVE-2026-98367"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/siw: Clear association under lock if siw_qp_modify fails in siw_accept","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/siw: Clear association under lock if siw_qp_modify fails in siw_accept\n\nWe need to clear cep before release state_lock as siw_qp_llp_close and\nsiw_qp_modify->siw_qp_llp_close did.\n\nOtherwise if siw_qp_modify() fails in siw_accept(), the QP's state_lock\nis released before the error path cleanup. A concurrent ibv_modify_qp()\ntransitioning the QP to ERROR can race in this window:\n\n  siw_accept()                       ibv_modify_qp(ERROR)\n  ----------------------             ----------------------\n  siw_qp_modify() fails\n  up_write(&qp->state_lock)\n                                     down_write(&qp->state_lock)\n                                     nextstate_from_idle():\n\t\t\t\t     if (qp->cep)\n                                       siw_cep_put(qp->cep) <- frees cep\n                                       qp->cep = NULL\n  goto error\n    cep->qp = NULL                   <- UAF\n\nClear qp->cep and drop the association reference taken by siw_cep_get(),\nall under the write lock held from the initial down_write(&qp->state_lock).\nThread B therefore sees qp->cep == NULL, skips its own put, and cannot free\nthe cep before siw_accept() is done with it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/siw: Clear association under lock if siw_qp_modify fails in siw_accept\n\nWe need to clear cep before release state_lock as siw_qp_llp_close and\nsiw_qp_modify->siw_qp_llp_close did.\n\nOtherwise if siw_qp_modify() fails in siw_accept(), the QP's state_lock\nis released before the error path cleanup. A concurrent ibv_modify_qp()\ntransitioning the QP to ERROR can race in this window:\n\n  siw_accept()                       ibv_modify_qp(ERROR)\n  ----------------------             ----------------------\n  siw_qp_modify() fails\n  up_write(&qp->state_lock)\n                                     down_write(&qp->state_lock)\n                                     nextstate_from_idle():\n\t\t\t\t     if (qp->cep)\n                                       siw_cep_put(qp->cep) <- frees cep\n                                       qp->cep = NULL\n  goto error\n    cep->qp = NULL                   <- UAF\n\nClear qp->cep and drop the association reference taken by siw_cep_get(),\nall under the write lock held from the initial down_write(&qp->state_lock).\nThread B therefore sees qp->cep == NULL, skips its own put, and cannot free\nthe cep before siw_accept() is done with it.","source":"cvelist"}],"published":"2026-10-06T08:46:52.452Z","modified":"2026-10-19T10:18:39.687Z","severity":{"scorer":"Linux","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"},"severities":[{"scorer":"Linux","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":[],"affected":[{"ranges":[{"type":"git","introduced":"6c52fdc244b5ccc468006fd65a504d4ee33743c7","fixed":"f11e09fe2fc3a11ccdf8f932b68181b0bb1d2078","status":"affected"},{"type":"git","introduced":"6c52fdc244b5ccc468006fd65a504d4ee33743c7","fixed":"e3f039082856adab7e195dea1af45d93dd6a3f1c","status":"affected"},{"type":"git","introduced":"6c52fdc244b5ccc468006fd65a504d4ee33743c7","fixed":"ad50d19f3d1ce052b3a146143581e930a1efb33e","status":"affected"},{"type":"git","introduced":"6c52fdc244b5ccc468006fd65a504d4ee33743c7","fixed":"030306bbb9273af80f14d7af20129661964cd9a7","status":"affected"},{"type":"git","introduced":"6c52fdc244b5ccc468006fd65a504d4ee33743c7","fixed":"df2584750314336edcbcc21fb388e04b260f35b7","status":"affected"},{"type":"git","introduced":"6c52fdc244b5ccc468006fd65a504d4ee33743c7","fixed":"9dcc0f4e488b70cff81e0e5717a498c929cf5de3","status":"affected"},{"type":"git","introduced":"6c52fdc244b5ccc468006fd65a504d4ee33743c7","fixed":"bfdc744bf20ae4c3ef2e470298de5237c5c9a13c","status":"affected"},{"type":"git","introduced":"6c52fdc244b5ccc468006fd65a504d4ee33743c7","fixed":"32cd87f54dd1070020e664ccb0312a9f0fea79b4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f11e09fe2fc3a11ccdf8f932b68181b0bb1d2078","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3f039082856adab7e195dea1af45d93dd6a3f1c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ad50d19f3d1ce052b3a146143581e930a1efb33e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/030306bbb9273af80f14d7af20129661964cd9a7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df2584750314336edcbcc21fb388e04b260f35b7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9dcc0f4e488b70cff81e0e5717a498c929cf5de3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bfdc744bf20ae4c3ef2e470298de5237c5c9a13c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/32cd87f54dd1070020e664ccb0312a9f0fea79b4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98367","url":"https://www.cve.org/CVERecord?id=CVE-2026-98367","licence":"CVE Terms of Use","modified":"2026-10-19T09:18:19.262Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98367","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98367","licence":"Public domain","modified":"2026-10-19T10:18:39.687Z"}],"updatedAt":"2026-11-25T22:59:42.344Z","epss":{"score":0.00121,"percentile":0.0208,"date":"2026-12-01T12:00:22.000Z"}}