CVE-2026-139358

RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()

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

RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()

IB_WR_REG_MR is documented as kernel-only ("can not be issued by
userspace"), but nothing enforces it.
rxe_wr_opcode_info[IB_WR_REG_MR] sets WR_LOCAL_OP_MASK for IB_QPT_RC,
a QP type userspace can create, so a user QP that writes
opcode = IB_WR_REG_MR into its mmap'd SQ ring reaches
rxe_do_local_ops() -> rxe_reg_fast_mr(). That function then trusts
the ring-supplied fields:

struct rxe_mr *mr = to_rmr(wqe->wr.wr.reg.mr);
...
if (unlikely(mr->state != RXE_MR_STATE_FREE)) /* deref */
...
mr->access = access; /* write */

For a user QP wqe->wr.wr.reg.mr is a fully attacker-chosen pointer,
so this is an arbitrary-kernel-address dereference (arbitrary read
confirmed, oops). No existing check distinguishes a user QP on this
path.

Reject IB_WR_REG_MR for user QPs before dereferencing the supplied
pointer.

Analysis

AI-generated

Technical impact

The RDMA/rxe driver in the Linux kernel incorrectly allows a user‑space source to issue the IB_WR_REG_MR opcode, which is documented as kernel‑only. A malicious user can construct a queue pair of type RC, inject the opcode into the send queue, and provide a completely arbitrary pointer. The driver then dereferences this pointer, first reading the MR state and subsequently writing to the MR->access field, producing an arbitrary kernel address dereference. This leads to uncontrolled kernel memory read and write, enabling arbitrary kernel code execution and privilege escalation for the user.

Affected Systems

All Linux kernel installations that include the RDMA/rxe driver, regardless of specific kernel release. The vulnerability exists in any configuration where user applications can create and send work queue entries to the rxe driver.

Risk and Exploitability

The flaw permits arbitrary kernel memory access when a user creates a queue pair and submits a specially crafted work queue entry. Although no public exploit is known, the absence of an EPSS score and lack of KEV listing suggest that the risk is primarily local, requiring privileged or local code execution. Once exploited, an attacker can gain full kernel privileges, effectively escalating from a normal user to root. The CVE does not specify a remote attack vector, but kernel drivers often process user input; thus a local attacker can leverage this to compromise the system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version containing the fix that rejects IB_WR_REG_MR for user‑space QPs.
  • If an upgrade is not immediately possible, disable or blacklist the rxe RDMA driver to prevent users from creating affected queue pairs.
  • Ensure that applications do not attempt to use IB_WR_REG_MR or create user‑space RC QPs; audit and adjust RDMA usage to avoid this opcode.

Generated by OpenCVE AI on November 30, 2026 at 22:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr() IB_WR_REG_MR is documented as kernel-only ("can not be issued by userspace"), but nothing enforces it. rxe_wr_opcode_info[IB_WR_REG_MR] sets WR_LOCAL_OP_MASK for IB_QPT_RC, a QP type userspace can create, so a user QP that writes opcode = IB_WR_REG_MR into its mmap'd SQ ring reaches rxe_do_local_ops() -> rxe_reg_fast_mr(). That function then trusts the ring-supplied fields: struct rxe_mr *mr = to_rmr(wqe->wr.wr.reg.mr); ... if (unlikely(mr->state != RXE_MR_STATE_FREE)) /* deref */ ... mr->access = access; /* write */ For a user QP wqe->wr.wr.reg.mr is a fully attacker-chosen pointer, so this is an arbitrary-kernel-address dereference (arbitrary read confirmed, oops). No existing check distinguishes a user QP on this path. Reject IB_WR_REG_MR for user QPs before dereferencing the supplied pointer.
Title RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

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