{"id":"CVE-2026-89509","state":"PUBLISHED","title":"RDMA/ionic: Embed counter driver data in rdma_counter allocation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/ionic: Embed counter driver data in rdma_counter allocation\n\nCommit 7e53b31acc7f (\"RDMA/core: Create and destroy rdma_counter using\nrdma_zalloc_drv_obj()\") requires drivers implementing counter ops to\nembed struct rdma_counter in a driver-specific struct, register its size\nvia INIT_RDMA_OBJ_SIZE, and provide a counter_init callback.\n\nThe ionic driver was merged without this adaptation, causing a NULL\npointer dereference in alloc_and_bind() since rdma_zalloc_drv_obj()\nallocates zero bytes when size_rdma_counter is unset.\n\nConsolidate struct ionic_counter into a new struct ionic_rdma_counter\nthat embeds struct rdma_counter, replace the xarray with a lightweight\nida for ID allocation, and add the required counter_init and\nINIT_RDMA_OBJ_SIZE declarations.","publishedAt":"2026-09-11T19:43:55.336Z","updatedAt":"2026-10-19T08:48:00.667Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ea4c399642b85dc30f44d90ee805c6a18fa03062","status":"affected","lessThan":"c98197ee3cd28288da13dc9881bb9e74daa7cbbc","versionType":"git"},{"version":"ea4c399642b85dc30f44d90ee805c6a18fa03062","status":"affected","lessThan":"08b8630b557828aedb1d9ef0a6e2ec421f334ee2","versionType":"git"},{"version":"ea4c399642b85dc30f44d90ee805c6a18fa03062","status":"affected","lessThan":"cf3ebd89e754015625fee90aa938f6bc79a2c974","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/ionic/ionic_hw_stats.c","drivers/infiniband/hw/ionic/ionic_ibdev.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/ionic/ionic_hw_stats.c","drivers/infiniband/hw/ionic/ionic_ibdev.h"]}],"references":["https://git.kernel.org/stable/c/c98197ee3cd28288da13dc9881bb9e74daa7cbbc","https://git.kernel.org/stable/c/08b8630b557828aedb1d9ef0a6e2ec421f334ee2","https://git.kernel.org/stable/c/cf3ebd89e754015625fee90aa938f6bc79a2c974"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89509.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89509","state":"PUBLISHED","datePublished":"2026-09-11T19:43:55.336Z","dateUpdated":"2026-10-19T08:48:00.667Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.716Z"},"containers":{"cna":{"title":"RDMA/ionic: Embed counter driver data in rdma_counter allocation","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/ionic: Embed counter driver data in rdma_counter allocation\n\nCommit 7e53b31acc7f (\"RDMA/core: Create and destroy rdma_counter using\nrdma_zalloc_drv_obj()\") requires drivers implementing counter ops to\nembed struct rdma_counter in a driver-specific struct, register its size\nvia INIT_RDMA_OBJ_SIZE, and provide a counter_init callback.\n\nThe ionic driver was merged without this adaptation, causing a NULL\npointer dereference in alloc_and_bind() since rdma_zalloc_drv_obj()\nallocates zero bytes when size_rdma_counter is unset.\n\nConsolidate struct ionic_counter into a new struct ionic_rdma_counter\nthat embeds struct rdma_counter, replace the xarray with a lightweight\nida for ID allocation, and add the required counter_init and\nINIT_RDMA_OBJ_SIZE declarations."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ea4c399642b85dc30f44d90ee805c6a18fa03062","status":"affected","lessThan":"c98197ee3cd28288da13dc9881bb9e74daa7cbbc","versionType":"git"},{"version":"ea4c399642b85dc30f44d90ee805c6a18fa03062","status":"affected","lessThan":"08b8630b557828aedb1d9ef0a6e2ec421f334ee2","versionType":"git"},{"version":"ea4c399642b85dc30f44d90ee805c6a18fa03062","status":"affected","lessThan":"cf3ebd89e754015625fee90aa938f6bc79a2c974","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/ionic/ionic_hw_stats.c","drivers/infiniband/hw/ionic/ionic_ibdev.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/ionic/ionic_hw_stats.c","drivers/infiniband/hw/ionic/ionic_ibdev.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/c98197ee3cd28288da13dc9881bb9e74daa7cbbc"},{"url":"https://git.kernel.org/stable/c/08b8630b557828aedb1d9ef0a6e2ec421f334ee2"},{"url":"https://git.kernel.org/stable/c/cf3ebd89e754015625fee90aa938f6bc79a2c974"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:48:00.667Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.51"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.2.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}