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

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: validate inline sgeoffset in finishpacket() before indexing inlinedata[]

For a user QP, rxepostsend() takes the qp->isuser branch and never runs initsendwqe(), so dma.length/resid/numsge/cursge/sgeoffset all come straight from the mmap'd SQ ring. In the inline send path finishpacket() uses sgeoffset directly as an index:

u8 tmp = &wqe->dma.inlinedata[wqe->dma.sgeoffset]; memcpy(payloadaddr(pkt), tmp, payload);

inlinedata is a flex array whose capacity is qp->sq.maxinline, but sgeoffset 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 numsge/cursge before indexing wqe->dma.sge[]") added numsge/cursge checks on the send path but not sgeoffset, the third attacker-controlled index in the same struct.

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

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In RDMA/rxe's inline send path, read sge_offset once with READ_ONCE(), then validate that sge_offset and the payload length that follows it are within qp->sq.max_inline before indexing inline_data[].

Event History

Nov 30, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203