{"id":"CVE-2026-98352","aliases":["CVE-2026-98352"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/rtrs-clt: Fix CQ pool leak when connect is interrupted","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rtrs-clt: Fix CQ pool leak when connect is interrupted\n\nThe client borrows shared CQ credits in the ADDR_RESOLVED handler via\nib_cq_pool_get(), before the peer is connected. create_cm() can return\n-ERESTARTSYS from wait_event_interruptible_timeout() without destroying\nthe CM ID. The init_conns() and stop-and-destroy paths then call\ndestroy_con_cq_qp() while cq is still NULL (no PUT) and only afterwards\nrdma_destroy_id().\n\nCMA serializes the handler against rdma_destroy_id() with handler_mutex,\nbut that does not order the GET against destroy_con_cq_qp(). If\nADDR_RESOLVED has already passed the DESTROYING check, it can take\ncon_mutex, GET credits, and then lose the con to kfree. Device\nunregister later hits WARN_ON(cq->cqe_used) in ib_cq_pool_cleanup().\n\nSet a per-connection flag under con_mutex before CQ/QP teardown so a\nracing ADDR_RESOLVED cannot borrow credits after teardown has begun.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rtrs-clt: Fix CQ pool leak when connect is interrupted\n\nThe client borrows shared CQ credits in the ADDR_RESOLVED handler via\nib_cq_pool_get(), before the peer is connected. create_cm() can return\n-ERESTARTSYS from wait_event_interruptible_timeout() without destroying\nthe CM ID. The init_conns() and stop-and-destroy paths then call\ndestroy_con_cq_qp() while cq is still NULL (no PUT) and only afterwards\nrdma_destroy_id().\n\nCMA serializes the handler against rdma_destroy_id() with handler_mutex,\nbut that does not order the GET against destroy_con_cq_qp(). If\nADDR_RESOLVED has already passed the DESTROYING check, it can take\ncon_mutex, GET credits, and then lose the con to kfree. Device\nunregister later hits WARN_ON(cq->cqe_used) in ib_cq_pool_cleanup().\n\nSet a per-connection flag under con_mutex before CQ/QP teardown so a\nracing ADDR_RESOLVED cannot borrow credits after teardown has begun.","source":"cvelist"}],"published":"2026-10-06T08:46:40.151Z","modified":"2026-10-19T10:18:37.897Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3b89e92c2a95a39c38a3808f4528e502a39bd94d","fixed":"a82cca40139d9fcae8208901856bd5bb4051f097","status":"affected"},{"type":"git","introduced":"3b89e92c2a95a39c38a3808f4528e502a39bd94d","fixed":"74c4ed55e61f1b65ddbebc5b635d136461a1c3da","status":"affected"},{"type":"git","introduced":"3b89e92c2a95a39c38a3808f4528e502a39bd94d","fixed":"6f8020fe7465f49e234a576c04e415e9d08c7878","status":"affected"},{"type":"git","introduced":"3b89e92c2a95a39c38a3808f4528e502a39bd94d","fixed":"31024e158b45358370a0a14ed96589e6aa62d6cb","status":"affected"},{"type":"git","introduced":"3b89e92c2a95a39c38a3808f4528e502a39bd94d","fixed":"8f253d5893f991742464b9e7203c43fc08d0aa11","status":"affected"},{"type":"git","introduced":"3b89e92c2a95a39c38a3808f4528e502a39bd94d","fixed":"bf88ac4867050112a6c819c8d1a7209bf48ef427","status":"affected"},{"type":"git","introduced":"3b89e92c2a95a39c38a3808f4528e502a39bd94d","fixed":"2ae16aaa78b5edc6e6d0904c84fd9cdfb762bcda","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","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/a82cca40139d9fcae8208901856bd5bb4051f097","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/74c4ed55e61f1b65ddbebc5b635d136461a1c3da","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6f8020fe7465f49e234a576c04e415e9d08c7878","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/31024e158b45358370a0a14ed96589e6aa62d6cb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f253d5893f991742464b9e7203c43fc08d0aa11","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf88ac4867050112a6c819c8d1a7209bf48ef427","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2ae16aaa78b5edc6e6d0904c84fd9cdfb762bcda","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98352","url":"https://www.cve.org/CVERecord?id=CVE-2026-98352","licence":"CVE Terms of Use","modified":"2026-10-19T09:18:03.073Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98352","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98352","licence":"Public domain","modified":"2026-10-19T10:18:37.897Z"}],"updatedAt":"2026-11-25T22:59:42.338Z","epss":{"score":0.00161,"percentile":0.0548,"date":"2026-12-02T12:00:21.000Z"}}