CVE-2026-139449

RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq

Published Nov 30, 2026 CVSS 3.1 · 5.3 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq

On disconnect the client error recovery path calls ib_drain_qp(), which
requires one free RQ slot and that no recv WQEs are posted while the
queue is being drained.

When the server is loaded with always_invalidate=N, the path does not
advertise RTRS_MSG_NEW_RKEY_F. A client-requested invalidation is then
a standalone SEND_WITH_INV. The recv completion path did not repost
that WQE; it posted two empty recv WQEs later, when the RDMA-with-IMM
response carried RTRS_IO_RSP_W_INV_IMM. If the invalidate receive
never arrived, each such response increased RQ occupancy by one until
ib_post_recv() started returning -ENOMEM and __ib_drain_rq() failed
with:

failed to drain recv queue: -12

Repost one empty recv WQE for every receive completion, including
SEND_WITH_INV completions on the always_invalidate=N path, and only
while the path is still connected so CQ polling cannot race with
ib_drain_qp(). Size IO connection RQs to 2 * queue_depth + 1 to match
the posted recv count and leave the drain slot.

Tested with a synthetic RTRS client flooding unpaired
RTRS_IO_RSP_W_INV_IMM messages; error recovery no longer triggers
__ib_drain_rq() warnings.

Analysis

AI-generated

Technical impact

The Linux kernel’s RDMA/rtrs-clt subsystem fails to repost empty receive work‑queue elements during error recovery. Each unpaired RTRS_IO_RSP_W_INV_IMM message increases the receive‑queue occupancy, and when the queue fills, ib_post_recv() returns -ENOMEM and __ib_drain_rq() aborts with "failed to drain recv queue: -12", disrupting normal RDMA communication.

Affected Systems

All Linux kernel installations that include the RDMA /rtrs‑clt components, regardless of specific kernel release, are potentially affected if they have not applied the kernel patch that posts an empty receive for every completion and allocates sufficient queue depth. The vulnerability exists in kernel versions prior to the commit that introduced the fix (e28debf4).

Risk and Exploitability

No CVSS or EPSS score is available, and the vulnerability is not listed in CISA KEV. Based on the description, an attacker would need to be able to send privileged RDMA traffic that floods the receive queue, such as a malicious client or compromised host connected to the RDMA service. The lack of exploitation data suggests a moderate to low risk, but the service impact could be significant in environments with high RDMA traffic.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the RDMA /rtrs‑clt fix (apply the patch identified by commit e28debf4 or later).
  • If kernel upgrade is not immediately feasible, disable the always_invalidate=N setting on any RDMA servers or limit incoming RDMA traffic to reduce queue pressure.
  • Monitor system logs for __ib_drain_rq() warnings and consider temporarily suspending RDMA services until a patch is applied.

Generated by OpenCVE AI on December 1, 2026 at 06:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq On disconnect the client error recovery path calls ib_drain_qp(), which requires one free RQ slot and that no recv WQEs are posted while the queue is being drained. When the server is loaded with always_invalidate=N, the path does not advertise RTRS_MSG_NEW_RKEY_F. A client-requested invalidation is then a standalone SEND_WITH_INV. The recv completion path did not repost that WQE; it posted two empty recv WQEs later, when the RDMA-with-IMM response carried RTRS_IO_RSP_W_INV_IMM. If the invalidate receive never arrived, each such response increased RQ occupancy by one until ib_post_recv() started returning -ENOMEM and __ib_drain_rq() failed with: failed to drain recv queue: -12 Repost one empty recv WQE for every receive completion, including SEND_WITH_INV completions on the always_invalidate=N path, and only while the path is still connected so CQ polling cannot race with ib_drain_qp(). Size IO connection RQs to 2 * queue_depth + 1 to match the posted recv count and leave the drain slot. Tested with a synthetic RTRS client flooding unpaired RTRS_IO_RSP_W_INV_IMM messages; error recovery no longer triggers __ib_drain_rq() warnings.
Title RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:34 PM