CVE-2026-139356

RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]

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

RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]

For a user QP, rxe_post_send() takes the qp->is_user branch and
never runs init_send_wqe(), so
dma.length/resid/num_sge/cur_sge/sge_offset all come straight from
the mmap'd SQ ring. In the inline send path finish_packet() uses
sge_offset directly as an index:

u8 *tmp = &wqe->dma.inline_data[wqe->dma.sge_offset];
memcpy(payload_addr(pkt), tmp, payload);

inline_data is a flex array whose capacity is qp->sq.max_inline, but
sge_offset is a u32 from user space, so the source pointer is
displaced arbitrarily past the WQE and the memcpy reads out of
bounds.
commit 126c757e4cd4 ("RDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]")
added num_sge/cur_sge checks on the send path but not sge_offset, the
third attacker-controlled index in the same struct.

Read sge_offset once with READ_ONCE() and bound it (and the payload
that follows it) by qp->sq.max_inline before indexing, so the value
that is validated is the value that is used.

Analysis

AI-generated

Technical impact

The vulnerability resides in the RDMA/rxe component of the Linux kernel. The finish_packet() function uses a user‑supplied value, sge_offset, as an index into the flex array inline_data without validating that the offset is less than or equal to the maximum inline size. Because sge_offset comes directly from user space, the kernel can read data from positions outside the intended Work Queue Element. This out‑of‑bounds read can expose arbitrary kernel memory contents and is a classic example of insufficient bounds checking on a user controlled value (CWE‑20) leading to an out‑of‑bounds read (CWE‑125).

Affected Systems

All Linux kernel versions that ship the RDMA/rxe driver and are older than the commit that bounds sge_offset in finish_packet(). The issue affects every Linux distribution that includes an unpatched RDMA/rxe back‑end, regardless of the distribution. Any RDMA peer that sends a crafted send request to a host running the vulnerable kernel can trigger the failure; thus the vulnerability is relevant to servers, storage appliances, or any system that exposes an RDMA interface.

Risk and Exploitability

The CVSS score of 7.1 indicates a serious impact. The EPSS score is not available and the flaw is not listed in CISA's KEV catalog, suggesting that no wide‑scale public exploitation has been observed. Nevertheless, the ability to read arbitrary kernel memory can compromise confidentiality and enable privilege escalation or further compromise. The likely attack vector is via RDMA send requests: an adversary who can send RDMA traffic to the target can supply a malicious sge_offset. This does not require local user privileges, and any network‑reachable RDMA endpoint can be a potential attack surface.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the RDMA/rxe fix that bounds the sge_offset value.
  • If a kernel upgrade is not feasible, unload or disable the rxe driver to block RDMA traffic from reaching the vulnerable code path.
  • Restrict RDMA access to trusted hosts or network segments by configuring firewall rules or using application‑level access control to reduce the attack surface.

Generated by OpenCVE AI on December 1, 2026 at 08:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-125
CWE-20
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: validate inline sge_offset in finish_packet() before indexing inline_data[] For a user QP, rxe_post_send() takes the qp->is_user branch and never runs init_send_wqe(), so dma.length/resid/num_sge/cur_sge/sge_offset all come straight from the mmap'd SQ ring. In the inline send path finish_packet() uses sge_offset directly as an index: u8 *tmp = &wqe->dma.inline_data[wqe->dma.sge_offset]; memcpy(payload_addr(pkt), tmp, payload); inline_data is a flex array whose capacity is qp->sq.max_inline, but sge_offset is a u32 from user space, so the source pointer is displaced arbitrarily past the WQE and the memcpy reads out of bounds. commit 126c757e4cd4 ("RDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]") added num_sge/cur_sge checks on the send path but not sge_offset, the third attacker-controlled index in the same struct. Read sge_offset once with READ_ONCE() and bound it (and the payload that follows it) by qp->sq.max_inline before indexing, so the value that is validated is the value that is used.
Title RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]
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:34 PM