{"id":"CVE-2026-99522","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-19T15:18:07.807","lastModified":"2026-11-19T15:18:07.807","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/infiniband/hw/irdma/icrdma_if.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"8498a30e1b9484629598cce97d200f517445e26b","lessThan":"e5388f15d595dd4d7599a43e9cb58c0656a6aec6","versionType":"git","status":"affected"},{"version":"8498a30e1b9484629598cce97d200f517445e26b","lessThan":"47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6","versionType":"git","status":"affected"},{"version":"8498a30e1b9484629598cce97d200f517445e26b","lessThan":"8a8088b899e4cdfe558428cd6113d45df81625be","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/infiniband/hw/irdma/icrdma_if.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","versionType":"semver","status":"unaffected"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8a8088b899e4cdfe558428cd6113d45df81625be","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e5388f15d595dd4d7599a43e9cb58c0656a6aec6","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}