# CVE-2026-139358: RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-30T13:34:01.333Z
- Modified: 2026-12-01T06:17:43.777Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 8700e3e7c4857d28ebaa824509934556da0b3e76 before a11ebd6481098dd62ddc18efaed25bf20668c65c; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 2c39f5ae8ab7b99b160d1da29b7a9a4c17805981; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 92ef85e25134bfbcaecf124b7ff614440921efc0; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 8e7532fab9a8082606fc22f02f825bb51a864221; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 82db6c71c0a83a745f806ae84a76197087f5ed08; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 8ea50bd26a8b7629e2f946330317d7c2a8ca5b60; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 33afe9909f213d8bb8e80f0b93382dde0f56e2c7; 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/a11ebd6481098dd62ddc18efaed25bf20668c65c>
- <https://git.kernel.org/stable/c/2c39f5ae8ab7b99b160d1da29b7a9a4c17805981>
- <https://git.kernel.org/stable/c/92ef85e25134bfbcaecf124b7ff614440921efc0>
- <https://git.kernel.org/stable/c/8e7532fab9a8082606fc22f02f825bb51a864221>
- <https://git.kernel.org/stable/c/82db6c71c0a83a745f806ae84a76197087f5ed08>
- <https://git.kernel.org/stable/c/8ea50bd26a8b7629e2f946330317d7c2a8ca5b60>
- <https://git.kernel.org/stable/c/33afe9909f213d8bb8e80f0b93382dde0f56e2c7>

## Sources

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

---

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