CVE-2026-139358
published high CVSS 3.1 · 7.8RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8700e3e7c4857d28ebaa824509934556da0b3e76 to < a11ebd6481098dd62ddc18efaed25bf20668c65c · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 2c39f5ae8ab7b99b160d1da29b7a9a4c17805981 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 92ef85e25134bfbcaecf124b7ff614440921efc0 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 8e7532fab9a8082606fc22f02f825bb51a864221 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 82db6c71c0a83a745f806ae84a76197087f5ed08 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 8ea50bd26a8b7629e2f946330317d7c2a8ca5b60 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 33afe9909f213d8bb8e80f0b93382dde0f56e2c7 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.8 (affected) · 0 to < 4.8 (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: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr() IB_WR_REG_MR is documented as kernel-only ("can not be issued by userspace"), but nothing enforces it. rxe_wr_opcode_info[IB_WR_REG_MR] sets WR_LOCAL_OP_MASK for IB_QPT_RC, a QP type userspace can create, so a user QP that writes opcode = IB_WR_REG_MR into its mmap'd SQ ring reaches rxe_do_local_ops() -> rxe_reg_fast_mr(). That function then trusts the ring-supplied fields: struct rxe_mr *mr = to_rmr(wqe->wr.wr.reg.mr); ... if (unlikely(mr->state != RXE_MR_STATE_FREE)) /* deref */ ... mr->access = access; /* write */ For a user QP wqe->wr.wr.reg.mr is a fully attacker-chosen pointer, so this is an arbitrary-kernel-address dereference (arbitrary read confirmed, oops). No existing check distinguishes a user QP on this path. Reject IB_WR_REG_MR for user QPs before dereferencing the supplied pointer.
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.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bad ib_mr pointer is written by a local process into its own mmap'd rxe send queue (wr.wr.reg.mr) and kicked via IB_USER_VERBS_CMD_POST_SEND on /dev/infiniband/uverbsN; IB_WR_REG_MR is a local work request, not a RoCE wire opcode, so no remote peer can supply it. AC:L - The attacker opens uverbs, creates PD/CQ and an RC QP, moves it to RTS, writes opcode=IB_WR_REG_MR plus a chosen pointer into the SQ slot and posts; req_next_wqe() sets WR_LOCAL_OP_MASK from the opcode and rxe_do_local_ops() calls rxe_reg_fast_mr() deterministically, with no race and no victim state. PR:L - uverbs_devnode() creates the uverbs node as 0666, and ib_uverbs create_qp/modify_qp/post_send need no capability for IB_QPT_RC, so any local user on a host with a configured Soft-RoCE device reaches rxe_reg_fast_mr() with is_user QPs. UI:N - The attacker drives the whole sequence on their own QP and ring; no other user has to mount, open or otherwise act. S:U - The dereference and writes happen in the host kernel's rxe requester on behalf of the local process; no VM, guest-to-host or IOMMU boundary is crossed. C:H - In affected 5.10.y the REG_MR path copies ib_mr.iova into rxe_mem.iova through the user pointer, and the attacker-chosen writes can be turned into a kernel read; the checked 5.15.y rxe_reg_fast_mr() also pr_warn()s mr->lkey read from the chosen address. I:H - Affected 5.10.y (rxe_requester) writes state, attacker access and attacker lkey/rkey through to_rmr(wqe->wr.wr.reg.mr) with no checks, an arbitrary kernel write; mainline rxe_reg_fast_mr() performs the same writes once a forged object passes the state/pd/lkey checks. A:H - rxe_reg_fast_mr() dereferences mr->state at a fully attacker-chosen address, so a non-canonical or unmapped pointer reliably oopses the kernel; it can be repeated with fresh QPs.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 8700e3e7c4857d28ebaa824509934556da0b3e76 to < a11ebd6481098dd62ddc18efaed25bf20668c65c (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 2c39f5ae8ab7b99b160d1da29b7a9a4c17805981 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 92ef85e25134bfbcaecf124b7ff614440921efc0 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 8e7532fab9a8082606fc22f02f825bb51a864221 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 82db6c71c0a83a745f806ae84a76197087f5ed08 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 8ea50bd26a8b7629e2f946330317d7c2a8ca5b60 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 33afe9909f213d8bb8e80f0b93382dde0f56e2c7 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.8 (affected)0 to < 4.8 (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
7- https://git.kernel.org/stable/c/2c39f5ae8ab7b99b160d1da29b7a9a4c17805981
- https://git.kernel.org/stable/c/33afe9909f213d8bb8e80f0b93382dde0f56e2c7
- https://git.kernel.org/stable/c/82db6c71c0a83a745f806ae84a76197087f5ed08
- https://git.kernel.org/stable/c/8e7532fab9a8082606fc22f02f825bb51a864221
- https://git.kernel.org/stable/c/8ea50bd26a8b7629e2f946330317d7c2a8ca5b60
- https://git.kernel.org/stable/c/92ef85e25134bfbcaecf124b7ff614440921efc0
- https://git.kernel.org/stable/c/a11ebd6481098dd62ddc18efaed25bf20668c65c
Provider assertions
1Linux · cna
RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8b7c292b4fe1d8cb0341a669fee270329b17d6ef84666580e2a3170b17a7d953
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record