{"id":"CVE-2026-139449","aliases":["CVE-2026-139449"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq\n\nOn disconnect the client error recovery path calls ib_drain_qp(), which\nrequires one free RQ slot and that no recv WQEs are posted while the\nqueue is being drained.\n\nWhen the server is loaded with always_invalidate=N, the path does not\nadvertise RTRS_MSG_NEW_RKEY_F.  A client-requested invalidation is then\na standalone SEND_WITH_INV.  The recv completion path did not repost\nthat WQE; it posted two empty recv WQEs later, when the RDMA-with-IMM\nresponse carried RTRS_IO_RSP_W_INV_IMM.  If the invalidate receive\nnever arrived, each such response increased RQ occupancy by one until\nib_post_recv() started returning -ENOMEM and __ib_drain_rq() failed\nwith:\n\n  failed to drain recv queue: -12\n\nRepost one empty recv WQE for every receive completion, including\nSEND_WITH_INV completions on the always_invalidate=N path, and only\nwhile the path is still connected so CQ polling cannot race with\nib_drain_qp().  Size IO connection RQs to 2 * queue_depth + 1 to match\nthe posted recv count and leave the drain slot.\n\nTested with a synthetic RTRS client flooding unpaired\nRTRS_IO_RSP_W_INV_IMM messages; error recovery no longer triggers\n__ib_drain_rq() warnings.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq\n\nOn disconnect the client error recovery path calls ib_drain_qp(), which\nrequires one free RQ slot and that no recv WQEs are posted while the\nqueue is being drained.\n\nWhen the server is loaded with always_invalidate=N, the path does not\nadvertise RTRS_MSG_NEW_RKEY_F.  A client-requested invalidation is then\na standalone SEND_WITH_INV.  The recv completion path did not repost\nthat WQE; it posted two empty recv WQEs later, when the RDMA-with-IMM\nresponse carried RTRS_IO_RSP_W_INV_IMM.  If the invalidate receive\nnever arrived, each such response increased RQ occupancy by one until\nib_post_recv() started returning -ENOMEM and __ib_drain_rq() failed\nwith:\n\n  failed to drain recv queue: -12\n\nRepost one empty recv WQE for every receive completion, including\nSEND_WITH_INV completions on the always_invalidate=N path, and only\nwhile the path is still connected so CQ polling cannot race with\nib_drain_qp().  Size IO connection RQs to 2 * queue_depth + 1 to match\nthe posted recv count and leave the drain slot.\n\nTested with a synthetic RTRS client flooding unpaired\nRTRS_IO_RSP_W_INV_IMM messages; error recovery no longer triggers\n__ib_drain_rq() warnings.","source":"cvelist"}],"published":"2026-11-30T13:34:51.514Z","modified":"2026-11-30T14:19:15.830Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6a98d71daea186247005099758af549e6afdd244","fixed":"e28debf4e95b49a1a8f965c5cadcc394d5ded464","status":"affected"},{"type":"git","introduced":"6a98d71daea186247005099758af549e6afdd244","fixed":"0f42d81c94332b4973f1f77ec3902eb08b9712f3","status":"affected"},{"type":"git","introduced":"6a98d71daea186247005099758af549e6afdd244","fixed":"d74fa007d9aa8d0aeb8063230d370364f3bd5f5e","status":"affected"},{"type":"git","introduced":"6a98d71daea186247005099758af549e6afdd244","fixed":"3255d6b83491574b115806ec958d8f6ca090fa9c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"6.12.120","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.66","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","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/e28debf4e95b49a1a8f965c5cadcc394d5ded464","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f42d81c94332b4973f1f77ec3902eb08b9712f3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d74fa007d9aa8d0aeb8063230d370364f3bd5f5e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3255d6b83491574b115806ec958d8f6ca090fa9c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139449","url":"https://www.cve.org/CVERecord?id=CVE-2026-139449","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:51.514Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139449","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139449","licence":"Public domain","modified":"2026-11-30T14:19:15.830Z"}],"updatedAt":"2026-11-30T14:33:21.056Z","epss":{"score":0.00201,"percentile":0.10479,"date":"2026-12-01T12:00:22.000Z"}}