{"id":"CVE-2026-99522","aliases":["CVE-2026-99522"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/irdma: avoid use-after-free in icrdma_remove","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-19T14:44:33.890Z","modified":"2026-11-19T15:18:07.807Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8498a30e1b9484629598cce97d200f517445e26b","fixed":"e5388f15d595dd4d7599a43e9cb58c0656a6aec6","status":"affected"},{"type":"git","introduced":"8498a30e1b9484629598cce97d200f517445e26b","fixed":"47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6","status":"affected"},{"type":"git","introduced":"8498a30e1b9484629598cce97d200f517445e26b","fixed":"8a8088b899e4cdfe558428cd6113d45df81625be","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e5388f15d595dd4d7599a43e9cb58c0656a6aec6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a8088b899e4cdfe558428cd6113d45df81625be","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99522","url":"https://www.cve.org/CVERecord?id=CVE-2026-99522","licence":"CVE Terms of Use","modified":"2026-11-19T14:44:33.890Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99522","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99522","licence":"Public domain","modified":"2026-11-19T15:18:07.807Z"}],"updatedAt":"2026-11-25T22:59:52.102Z","epss":{"score":0.00172,"percentile":0.06936,"date":"2026-12-01T12:00:22.000Z"}}