CVE-2026-139354
published high CVSS 3.1 · 7.1RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8700e3e7c4857d28ebaa824509934556da0b3e76 to < 678d7b3ef6b0e857b1d6291c67433ebbdacbdb37 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 628515523e9aa9c9e8d2c08c2bddb09e399906b4 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 8e2679b21986915ee7a53a65e83c4aebb670e8bd · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < d62748818061f2c8bc91d529a36bd7ddfbb8587f · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < d770b8769c38de78a0bda77aab84b38235d45719 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 4ff8efdd007cec66a46b1c05eff80148b26813d6 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < c887e53e1c852b88bd5442d1bf4717ee3e7aadda · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.8 (affected) · 0 to < 4.8 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[] wr_opcode_mask() indexes the global rxe_wr_opcode_info[] array with a caller-supplied opcode and no bounds check. For a user QP the WQE comes from an mmap'd SQ ring, so wqe->wr.opcode is an attacker-controlled __u32 read back by the requester (req_next_wqe() -> rxe_requester()); rxe_post_send() takes the qp->is_user branch and never runs validate_send_wr(), whose only opcode check is itself !wr_opcode_mask() (it indexes before it checks). rxe_wr_opcode_info[] has entries only up to IB_WR_REG_MR, so an out-of-range opcode reads out of bounds and the result is used as a mask and dereferenced; observed as a KASAN global-out-of-bounds "Read of size 4" and a wild-pointer oops. Return a zero mask for an out-of-range opcode, matching how validate_send_wr() already treats a zero mask (an invalid WR), so no path indexes the array out of bounds.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:L - The bad index is wqe->wr.opcode, which a local process writes into its own mmap'd rxe SQ ring (vmalloc_user/remap_vmalloc_range) before calling ibv_post_send. No remote peer supplies the WQE opcode, and kernel ULPs go through validate_send_wr() with valid opcodes. AC:L - Once an rxe link exists, the attacker drives the whole sequence: create a QP, move it to RTS over a loopback to its own GID, write an out-of-range opcode into the ring and post. req_next_wqe() then runs wr_opcode_mask() on that opcode every time. There is no race and no state outside the attacker's control. PR:L - /dev/infiniband/uverbs* is mode 0666 (uverbs_devnode), and creating an RC/UC/UD QP or calling modify_qp needs no capability. An unprivileged local user can reach rxe_post_send(), whose qp->is_user branch skips validate_send_wr(). UI:N - The attacker triggers the bug entirely with its own uverbs calls and its own ring contents. No other user has to act. S:U - The out-of-bounds read and the crash both happen inside the same kernel that the local user is attacking. No VM, IOMMU or sandbox boundary is crossed. C:H - rxe_wr_opcode_info[(int)opcode].mask[qp_type] reads 4 bytes at a chosen offset up to ±80 GiB from a module global. req_next_wqe() stores the result in wqe->mask, a uapi field in the user-mapped SQ ring, so the attacker can read it back after the -EINVAL error completion. Repeating this leaks kernel image and module .data/.bss. I:N - The OOB value is only written into the attacker's own ring. A forged WR_LOCAL_OP_MASK reaches rxe_do_local_ops() with the u8-truncated opcode, which is the same REG_MR/BIND_MW/LOCAL_INV an RC QP can already post. The completer reads wqe->mask, a field the user already controls. The bug adds no kernel write. A:H - An opcode whose target address is unmapped makes wr_opcode_mask() fault in the rxe send task, giving the wild-pointer oops reported in the commit. Before rxe moved to a workqueue, that task was a tasklet running in softirq context, where the oops is fatal. Any unprivileged uverbs user can repeat it at will.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 678d7b3ef6b0e857b1d6291c67433ebbdacbdb37 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 628515523e9aa9c9e8d2c08c2bddb09e399906b4 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 8e2679b21986915ee7a53a65e83c4aebb670e8bd (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < d62748818061f2c8bc91d529a36bd7ddfbb8587f (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < d770b8769c38de78a0bda77aab84b38235d45719 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 4ff8efdd007cec66a46b1c05eff80148b26813d6 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < c887e53e1c852b88bd5442d1bf4717ee3e7aadda (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.8 (affected)0 to < 4.8 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/4ff8efdd007cec66a46b1c05eff80148b26813d6
- https://git.kernel.org/stable/c/628515523e9aa9c9e8d2c08c2bddb09e399906b4
- https://git.kernel.org/stable/c/678d7b3ef6b0e857b1d6291c67433ebbdacbdb37
- https://git.kernel.org/stable/c/8e2679b21986915ee7a53a65e83c4aebb670e8bd
- https://git.kernel.org/stable/c/c887e53e1c852b88bd5442d1bf4717ee3e7aadda
- https://git.kernel.org/stable/c/d62748818061f2c8bc91d529a36bd7ddfbb8587f
- https://git.kernel.org/stable/c/d770b8769c38de78a0bda77aab84b38235d45719
- https://git.kernel.org/stable/c/fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959
Provider assertions
1Linux · cna
RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fcfda15c38fbcfed4ac75e0f431e26e9a55d877a49f4af9845819cfcc89f1798
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record