CVE-2026-99522
RDMA/irdma: avoid use-after-free in icrdma_remove
- CVSS
- —
- EPSS
- 0.17% (p7)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-19
- Product
- Linux Linux
Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/irdma: avoid use-after-free in icrdma_remove icrdma_remove() dereferences iwdev after calling irdma_ib_unregister_device(): irdma_ib_unregister_device(iwdev) -> ib_unregister_device(&iwdev->ibdev) -> __ib_unregister_device() -> ib_dealloc_device() irdma registers irdma_ib_dealloc_device() as the dealloc_driver callback in its ib_device_ops. The RDMA core explicitly documents ib_unregister_device() that when ops.dealloc_driver is used, ib_dev will be freed upon return from the function. The ib_device is embedded in struct irdma_device and iwdev itself was allocated by ib_alloc_device(irdma_device, ibdev). Consequently, once irdma_ib_unregister_device() returns, iwdev must no longer be dereferenced. However, icrdma_remove() currently accesses iwdev->rf afterwards when deinitializing interrupts, destroying ah_tbl_lock, and freeing rf. Although the final ib_device storage is released with kfree_rcu(), 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.
Fixed in
47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6 · 6.18.61 · 7.3.2 · 8a8088b899e4cdfe558428cd6113d45df81625be · e5388f15d595dd4d7599a43e9cb58c0656a6aec6
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.14.0, <6.18.61 | 6.18.61 |
| Linux | Kernel | >=6.19.0, <7.3.2 | 7.3.2 |
| vendor | Linux | >=8498a30e1b9484629598cce97d200f517445e26b, <47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6 | 47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6 |
| vendor | Linux | >=8498a30e1b9484629598cce97d200f517445e26b, <8a8088b899e4cdfe558428cd6113d45df81625be | 8a8088b899e4cdfe558428cd6113d45df81625be |
| vendor | Linux | >=8498a30e1b9484629598cce97d200f517445e26b, <e5388f15d595dd4d7599a43e9cb58c0656a6aec6 | e5388f15d595dd4d7599a43e9cb58c0656a6aec6 |
Sources
- NVD · first seen 15d ago · NVD terms of use
- OSV · first seen 15d ago · CC-BY 4.0
- CVE List · first seen 15d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/e5388f15d595dd4d7599a43e9cb58c0656a6aec6 other
- https://git.kernel.org/stable/c/47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6 other
- https://git.kernel.org/stable/c/8a8088b899e4cdfe558428cd6113d45df81625be other
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99522.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99522 advisory