CVE-2026-98366: RDMA/rxe: validate access flags before swapping the MR's PD

Published Oct 6, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: validate access flags before swapping the MR's PD

rxereregusermr() reassigns mr->ibmr.pd first and only then validates the IBMRREREGACCESS argument:

if (flags & IBMRREREGPD) { rxeput(oldpd); rxeget(pd); mr->ibmr.pd = ibpd; }

if (flags & IBMRREREGACCESS) { if (access & ~RXEACCESSSUPPORTEDMR) return ERRPTR(-EOPNOTSUPP); mr->access = access; }

Both flags pass the entry check because RXEMRREREGSUPPORTED is IBMRREREGPD | IBMRREREGACCESS, so a caller can reach the access check with mr->ibmr.pd already reassigned.

mr->ibmr.pd is owned by the core, which adjusts pd->usecnt only on the success path: ibuverbsreregmr() jumps to putnewuobj on a driver error without undoing the reassignment, so mr->pd == newpd while the usecnts still charge the MR to origpd. ibderegmruser() then decrements newpd, whose count can reach zero while a memory window still references it; uverbsfreepd() frees the PD on that count alone and rxemwcleanup() writes to freed memory:

BUG: KASAN: slab-use-after-free in rxeput+0x31/0xa0 Write of size 4 at addr ffff8881301dd690 by task rxepoc/591 rxeput+0x31/0xa0 rxemwcleanup+0x42/0x200 rxecleanup+0x115/0x370 rxedeallocmw+0x4c/0x80 Allocated by task 591: ibuverbsallocpd+0x258/0x540 Freed by task 591: ibdeallocpduser+0x174/0x210 uverbsfreepd+0x8d/0xc0 ibuverbsdeallocpd+0x18e/0x1d0

Validate the access flags before mutating any state so the callback either applies every requested change or none.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 6, 2026
CVE Published
via MITRE·08:46 AM
Data Sourced
via MITRE·08:46 AM
Description
Data Sourced
via NVD·09:18 AM
Description

Frequently Asked Questions

1

Who is exposed to this issue?

Systems using the Linux kernel's RDMA rxe component are exposed when memory-registration re-registration operations involving protection domains and access flags are performed. The issue concerns rxe memory regions and memory windows.

2

What does an attacker or triggering process need to do?

A caller must re-register an rxe user memory region with both protection-domain reassignment and access re-registration flags, while supplying unsupported access flags. This causes the protection domain to be reassigned before validation fails.

3

What happens when the vulnerable path is triggered?

The failed operation can leave the memory region associated with the new protection domain while usage counts remain charged to the original one. Later deregistration can reduce the new protection domain's count to zero and permit it to be freed while a memory window still references it, resulting in a slab use-after-free write.

4

How can administrators identify affected activity or failures?

A kernel report may show KASAN reporting a slab-use-after-free in __rxe_put, with rxe_mw_cleanup implicated. The triggering sequence involves a failed memory-region re-registration after a protection-domain change and unsupported access flags.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203