CVE-2026-99522: RDMA/irdma: avoid use-after-free in icrdma_remove

Published Nov 19, 2026
·
Updated

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

RDMA/irdma: avoid use-after-free in icrdmaremove

icrdmaremove() dereferences iwdev after calling irdmaibunregisterdevice():

irdmaibunregisterdevice(iwdev) -> ibunregisterdevice(&iwdev->ibdev) -> ibunregisterdevice() -> ibdeallocdevice()

irdma registers irdmaibdeallocdevice() as the deallocdriver callback in its ibdeviceops. The RDMA core explicitly documents ibunregisterdevice() that when ops.deallocdriver is used, ibdev will be freed upon return from the function.

The ibdevice is embedded in struct irdmadevice and iwdev itself was allocated by iballocdevice(irdmadevice, ibdev). Consequently, once irdmaibunregisterdevice() returns, iwdev must no longer be dereferenced.

However, icrdmaremove() currently accesses iwdev->rf afterwards when deinitializing interrupts, destroying ahtbllock, and freeing rf. Although the final ibdevice storage is released with kfreercu(), the object lifetime has already ended and callers must not rely on the RCU grace period to continue dereferencing iwdev.

Save iwdev->rf before unregistering the RDMA device and use the saved pointer for the remaining cleanup.

This issue was found by manual code inspection.

Affected Software

6 affected componentsFixes available
linux/kernel>=5.14.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2
debian/linux*
debian/linux*
debian/linux<7.3.3-1
7.3.3-1
debian/linux<=6.1.176-1, <=6.1.192-2, <=6.12.107-1, <=6.12.117-1
7.3.4-17.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.61
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.3-1
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1Fixed in 7.3.5-1
  5. Compensating control

    In icrdma_remove(), save iwdev->rf before calling irdma_ib_unregister_device(iwdev), then use the saved pointer for remaining cleanup; do not dereference iwdev after unregistering the RDMA device.

Event History

Nov 19, 2026
CVE Published
via MITRE·02:44 PM
Data Sourced
via MITRE·02:44 PM
Description
Data Sourced
via OSV·02:44 PM
DescriptionAffected Software
Data Sourced
via NVD·03:18 PM
Description

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