PT-2026-163397
CVE-2026-139356
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
CVSS 3.1
7.1
HighMetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
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.
Found an issue in the description? Have something to add? Feel free to write us 👾