CVE-2026-139354

RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]

Published Nov 30, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]

wr_opcode_mask() indexes the global rxe_wr_opcode_info[] array with
a caller-supplied opcode and no bounds check. For a user QP the WQE
comes from an mmap'd SQ ring, so wqe->wr.opcode is an
attacker-controlled __u32 read back by the requester
(req_next_wqe() -> rxe_requester()); rxe_post_send() takes the
qp->is_user branch and never runs validate_send_wr(), whose only
opcode check is itself !wr_opcode_mask() (it indexes before it
checks). rxe_wr_opcode_info[] has entries only up to IB_WR_REG_MR,
so an out-of-range opcode reads out of bounds and the result is used
as a mask and dereferenced; observed as a KASAN global-out-of-bounds
"Read of size 4" and a wild-pointer oops.

Return a zero mask for an out-of-range opcode, matching how
validate_send_wr() already treats a zero mask (an invalid WR), so no
path indexes the array out of bounds.

Analysis

AI-generated

Technical impact

An unchecked array index in the RDMA/rxe subsystem reads a user-supplied opcode from a memory‑mapped send queue without bounds checking. The resulting out-of-range index causes the kernel to read beyond the rxe_wr_opcode_info[] array and dereference a wild pointer, which triggers a KASAN "Read of size 4" and a kernel out‑of‑bounds dereference. The observable result is a kernel oops that can bring the system down.

Affected Systems

The flaw exists in the Linux kernel RDMA/rxe implementation. All kernel releases prior to the patch that bounds the opcode index are vulnerable. The affected product is the core Linux kernel provided by the Linux vendor.

Risk and Exploitability

The CVSS base score is 7.1, indicating moderate severity. The EPSS score is not provided and the vulnerability is not listed in CISA KEV. Exploitation requires a local user with the ability to create an RDMA Queue Pair and supply a crafted opcode. At present the flaw can cause a kernel crash and does not provide confirmed code execution or privilege escalation. The main risk is a denial of service in environments where untrusted users can use RDMA.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel patch that bounds the opcode index in rxe_wr_opcode_info[] and validates input.
  • Restrict RDMA subsystem usage to trusted processes, ensuring only privileged users can create Queue Pairs.
  • If RDMA functionality is not required, disable or remove the rxe driver.
  • Monitor kernel logs for KASAN or oops messages indicating out‑of‑bounds memory accesses.

Generated by OpenCVE AI on December 1, 2026 at 11:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-188
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[] wr_opcode_mask() indexes the global rxe_wr_opcode_info[] array with a caller-supplied opcode and no bounds check. For a user QP the WQE comes from an mmap'd SQ ring, so wqe->wr.opcode is an attacker-controlled __u32 read back by the requester (req_next_wqe() -> rxe_requester()); rxe_post_send() takes the qp->is_user branch and never runs validate_send_wr(), whose only opcode check is itself !wr_opcode_mask() (it indexes before it checks). rxe_wr_opcode_info[] has entries only up to IB_WR_REG_MR, so an out-of-range opcode reads out of bounds and the result is used as a mask and dereferenced; observed as a KASAN global-out-of-bounds "Read of size 4" and a wild-pointer oops. Return a zero mask for an out-of-range opcode, matching how validate_send_wr() already treats a zero mask (an invalid WR), so no path indexes the array out of bounds.
Title RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]
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
Dec 1, 2026, 5:42 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Dec 1, 2026, 6:17 AM
Severity
Moderate
Public date
Nov 30, 2026, 1:33 PM