RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]
CVE-2026-139356Published 30 Nov 2026, 13:34 UTC
Real-world risk
3.4/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.1
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from Linux)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Linux kernelUbiquitous | = 4.8 | 7.4-rc1 |
What to do
Update to a fixed version: 7.4-rc1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.2% chance of exploitation in 30 days (percentile 8), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.500
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.5 × threat 0.853.400
- Rounded to one decimal between 0.1 and 103.4
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 3 Dec 2026 Risk 3.4 (cvss fallback)
Weakness
No weakness type given.
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
- CVE-2026-139356 on CVE.org