RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux8700e3e7c4857d28ebaa824509934556da0b3e76 to before a11ebd6481098dd62ddc18efaed25bf20668c65c Affected8700e3e7c4857d28ebaa824509934556da0b3e76 to before 2c39f5ae8ab7b99b160d1da29b7a9a4c17805981 Affected8700e3e7c4857d28ebaa824509934556da0b3e76 to before 92ef85e25134bfbcaecf124b7ff614440921efc0 Affected8700e3e7c4857d28ebaa824509934556da0b3e76 to before 8e7532fab9a8082606fc22f02f825bb51a864221 Affected8700e3e7c4857d28ebaa824509934556da0b3e76 to before 82db6c71c0a83a745f806ae84a76197087f5ed08 Affected8700e3e7c4857d28ebaa824509934556da0b3e76 to before 8ea50bd26a8b7629e2f946330317d7c2a8ca5b60 Affected8700e3e7c4857d28ebaa824509934556da0b3e76 to before 33afe9909f213d8bb8e80f0b93382dde0f56e2c7 Affected
Linux Linux4.8 Affectedbefore 4.8 Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.