{"id":"CVE-2026-99522","aliases":[],"title":"RDMA/irdma: avoid use-after-free in icrdma_remove","originalDescription":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: avoid use-after-free in icrdma_remove\n\nicrdma_remove() dereferences iwdev after calling\nirdma_ib_unregister_device():\n\n  irdma_ib_unregister_device(iwdev)\n    -> ib_unregister_device(&iwdev->ibdev)\n      -> __ib_unregister_device()\n        -> ib_dealloc_device()\n\nirdma registers irdma_ib_dealloc_device() as the dealloc_driver\ncallback in its ib_device_ops. The RDMA core explicitly documents\nib_unregister_device() that when ops.dealloc_driver is used, ib_dev\nwill be freed upon return from the function.\n\nThe ib_device is embedded in struct irdma_device and iwdev itself was\nallocated by ib_alloc_device(irdma_device, ibdev). Consequently, once\nirdma_ib_unregister_device() returns, iwdev must no longer be\ndereferenced.\n\nHowever, icrdma_remove() currently accesses iwdev->rf afterwards when\ndeinitializing interrupts, destroying ah_tbl_lock, and freeing rf.\nAlthough the final ib_device storage is released with kfree_rcu(), the\nobject lifetime has already ended and callers must not rely on the RCU\ngrace period to continue dereferencing iwdev.\n\nSave iwdev->rf before unregistering the RDMA device and use the saved\npointer for the remaining cleanup.\n\nThis issue was found by manual code inspection.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00172,"percentile":0.06894},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=5.14.0, <6.18.61","fixed":"6.18.61"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.2","fixed":"7.3.2"},{"ecosystem":"vendor","name":"Linux","range":">=8498a30e1b9484629598cce97d200f517445e26b, <47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6","fixed":"47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6"},{"ecosystem":"vendor","name":"Linux","range":">=8498a30e1b9484629598cce97d200f517445e26b, <8a8088b899e4cdfe558428cd6113d45df81625be","fixed":"8a8088b899e4cdfe558428cd6113d45df81625be"},{"ecosystem":"vendor","name":"Linux","range":">=8498a30e1b9484629598cce97d200f517445e26b, <e5388f15d595dd4d7599a43e9cb58c0656a6aec6","fixed":"e5388f15d595dd4d7599a43e9cb58c0656a6aec6"}],"references":[{"url":"https://git.kernel.org/stable/c/e5388f15d595dd4d7599a43e9cb58c0656a6aec6","type":"other"},{"url":"https://git.kernel.org/stable/c/47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6","type":"other"},{"url":"https://git.kernel.org/stable/c/8a8088b899e4cdfe558428cd6113d45df81625be","type":"other"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99522.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99522","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-19T15:43:48.213Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99522","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:48.213Z"},{"name":"osv","at":"2026-11-19T17:23:44.978Z","url":"https://osv.dev/vulnerability/CVE-2026-99522","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T17:23:44.918Z"},{"name":"cvelistV5","at":"2026-11-19T22:18:44.521Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99522","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:34.038Z"}],"firstSeenAt":"2026-11-19T15:00:34.038Z","publishedAt":"2026-11-19T14:44:33.890Z","modifiedAt":"2026-11-19T17:01:26.937Z"}