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

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-30T13:34:00.214Z
- Modified: 2026-12-01T06:17:43.460Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8700e3e7c4857d28ebaa824509934556da0b3e76 before d7bc85182be87f8a4a5418f12e3378d790cae630; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 5c231af4a0d14c125d7120f500ab71cd251cab36; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 1706290f1a8de07a29c1b1e6bb61048699c578e2; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before a99c5a54227ba60c4c8e26a570d6d724c39f6ae1; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 01e79cab51d9a75815a57f5dfb7c8cefe8e88ea7; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 1d77fd886b4757388246bb8ab2fb805b72ddaed0; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 47a9c0338f2e0d4178d77b0d2f529fe1fde84642; 4.8 (not affected: before 4.8; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/d7bc85182be87f8a4a5418f12e3378d790cae630>
- <https://git.kernel.org/stable/c/5c231af4a0d14c125d7120f500ab71cd251cab36>
- <https://git.kernel.org/stable/c/1706290f1a8de07a29c1b1e6bb61048699c578e2>
- <https://git.kernel.org/stable/c/a99c5a54227ba60c4c8e26a570d6d724c39f6ae1>
- <https://git.kernel.org/stable/c/01e79cab51d9a75815a57f5dfb7c8cefe8e88ea7>
- <https://git.kernel.org/stable/c/1d77fd886b4757388246bb8ab2fb805b72ddaed0>
- <https://git.kernel.org/stable/c/47a9c0338f2e0d4178d77b0d2f529fe1fde84642>

## Sources

- CVE List: [CVE-2026-139356](https://www.cve.org/CVERecord?id=CVE-2026-139356), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139356](https://nvd.nist.gov/vuln/detail/CVE-2026-139356), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139356 · Whole record: https://cve.day/CVE-2026-139356.json · Rebuilt by cve.day 2026-12-01T06:32:21.040Z
