{"id":"CVE-2026-139449","state":"PUBLISHED","title":"RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq","description":"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.","publishedAt":"2026-11-30T13:34:51.514Z","updatedAt":"2026-11-30T13:34:51.514Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6a98d71daea186247005099758af549e6afdd244","status":"affected","lessThan":"e28debf4e95b49a1a8f965c5cadcc394d5ded464","versionType":"git"},{"version":"6a98d71daea186247005099758af549e6afdd244","status":"affected","lessThan":"0f42d81c94332b4973f1f77ec3902eb08b9712f3","versionType":"git"},{"version":"6a98d71daea186247005099758af549e6afdd244","status":"affected","lessThan":"d74fa007d9aa8d0aeb8063230d370364f3bd5f5e","versionType":"git"},{"version":"6a98d71daea186247005099758af549e6afdd244","status":"affected","lessThan":"3255d6b83491574b115806ec958d8f6ca090fa9c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/ulp/rtrs/rtrs-clt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/ulp/rtrs/rtrs-clt.c"]}],"references":["https://git.kernel.org/stable/c/e28debf4e95b49a1a8f965c5cadcc394d5ded464","https://git.kernel.org/stable/c/0f42d81c94332b4973f1f77ec3902eb08b9712f3","https://git.kernel.org/stable/c/d74fa007d9aa8d0aeb8063230d370364f3bd5f5e","https://git.kernel.org/stable/c/3255d6b83491574b115806ec958d8f6ca090fa9c"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139449.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139449","state":"PUBLISHED","datePublished":"2026-11-30T13:34:51.514Z","dateUpdated":"2026-11-30T13:34:51.514Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.934Z"},"containers":{"cna":{"title":"RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6a98d71daea186247005099758af549e6afdd244","status":"affected","lessThan":"e28debf4e95b49a1a8f965c5cadcc394d5ded464","versionType":"git"},{"version":"6a98d71daea186247005099758af549e6afdd244","status":"affected","lessThan":"0f42d81c94332b4973f1f77ec3902eb08b9712f3","versionType":"git"},{"version":"6a98d71daea186247005099758af549e6afdd244","status":"affected","lessThan":"d74fa007d9aa8d0aeb8063230d370364f3bd5f5e","versionType":"git"},{"version":"6a98d71daea186247005099758af549e6afdd244","status":"affected","lessThan":"3255d6b83491574b115806ec958d8f6ca090fa9c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/ulp/rtrs/rtrs-clt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/ulp/rtrs/rtrs-clt.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e28debf4e95b49a1a8f965c5cadcc394d5ded464"},{"url":"https://git.kernel.org/stable/c/0f42d81c94332b4973f1f77ec3902eb08b9712f3"},{"url":"https://git.kernel.org/stable/c/d74fa007d9aa8d0aeb8063230d370364f3bd5f5e"},{"url":"https://git.kernel.org/stable/c/3255d6b83491574b115806ec958d8f6ca090fa9c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:51.514Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}