CVE-2026-98354: RDMA/mad: Fix receive buffer leak when PKey enforcement fails

Published Oct 6, 2026
·
Updated

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

RDMA/mad: Fix receive buffer leak when PKey enforcement fails

ibmadcompleterecv() initializes madrecvwc->rmpplist and then runs ibmadenforcesecurity() before linking recvbuf onto that list. On failure it calls ibfreerecvmad(), which only walks rmpplist and frees the ibmadprivate of every buffer found there. As the list is still empty at that point, nothing is freed at all.

The caller cannot clean up either: ibmadrecvdone() sets recv to NULL right after ibmadcompleterecv() returns, assuming the MAD layer took ownership of the buffer. Every MAD that fails the PKey check therefore leaks one ibmadprivate (about 300 bytes per IB port MAD, ~2K for OPA), and a remote node can trigger this repeatedly by sending MADs with a wrong PKey.

Link recvbuf onto rmpplist right after the list is initialized, so the error path has something to free.

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 can trigger the leak?

A remote node that can send RDMA MADs to an affected IB or OPA port can repeatedly trigger the leak by sending MADs with an incorrect PKey.

2

What happens when PKey enforcement rejects a MAD?

Each rejected MAD leaks one ib_mad_private allocation because the receive buffer is not yet linked to the cleanup list. The leak is approximately 300 bytes per IB port MAD and about 2 KB for OPA.

3

Can the caller reclaim the leaked receive buffer after the security check fails?

No. The receive completion path clears its receive pointer after ib_mad_complete_recv() returns because it assumes the MAD layer has taken ownership, leaving no caller-side cleanup path.

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