{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99522","id":"CVE-2026-99522","title":"Linux irdma use-after-free in device removal","description":"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 deallo","descriptionLong":"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.","published":"2026-11-19T14:44:33.890Z","updated":"2026-11-19T17:01:26.937008917Z","reserved":"2026-09-25T10:25:14.420Z","status":"Received","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8498a30e1b9484629598cce97d200f517445e26b","lessThan":"e5388f15d595dd4d7599a43e9cb58c0656a6aec6","status":"affected","versionType":"git"},{"version":"8498a30e1b9484629598cce97d200f517445e26b","lessThan":"47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6","status":"affected","versionType":"git"},{"version":"8498a30e1b9484629598cce97d200f517445e26b","lessThan":"8a8088b899e4cdfe558428cd6113d45df81625be","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/e5388f15d595dd4d7599a43e9cb58c0656a6aec6","tags":["web"]},{"url":"https://git.kernel.org/stable/c/47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6","tags":["web"]},{"url":"https://git.kernel.org/stable/c/8a8088b899e4cdfe558428cd6113d45df81625be","tags":["web"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99522.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99522","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99522","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99522","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99522","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99522","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}