{"id":"CVE-2026-139449","summary":"RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq","details":"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.","modified":"2026-11-30T15:02:28.520152077Z","published":"2026-11-30T13:34:51.514Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139449.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0f42d81c94332b4973f1f77ec3902eb08b9712f3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3255d6b83491574b115806ec958d8f6ca090fa9c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d74fa007d9aa8d0aeb8063230d370364f3bd5f5e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e28debf4e95b49a1a8f965c5cadcc394d5ded464"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139449.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139449"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6a98d71daea186247005099758af549e6afdd244"},{"fixed":"e28debf4e95b49a1a8f965c5cadcc394d5ded464"},{"fixed":"0f42d81c94332b4973f1f77ec3902eb08b9712f3"},{"fixed":"d74fa007d9aa8d0aeb8063230d370364f3bd5f5e"},{"fixed":"3255d6b83491574b115806ec958d8f6ca090fa9c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139449.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.8.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139449.json"}}],"schema_version":"1.9.2"}