Skip to contentSkip to conversation

CVE-2026-89509: RDMA/ionic: Embed counter driver data in rdma_counter allocation

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 11

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

RDMA/ionic: Embed counter driver data in rdma_counter allocation

Commit 7e53b31acc7f ("RDMA/core: Create and destroy rdma_counter using rdma_zalloc_drv_obj()") requires drivers implementing counter ops to embed struct rdma_counter in a driver-specific struct, register its size via INIT_RDMA_OBJ_SIZE, and provide a counter_init callback.

The ionic driver was merged without this adaptation, causing a NULL pointer dereference in alloc_and_bind() since rdma_zalloc_drv_obj() allocates zero bytes when size_rdma_counter is unset.

Consolidate struct ionic_counter into a new struct ionic_rdma_counter that embeds struct rdma_counter, replace the xarray with a lightweight ida for ID allocation, and add the required counter_init and INIT_RDMA_OBJ_SIZE declarations.

The Linux kernel CVE team has assigned CVE-2026-89509 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.18 with commit ea4c399642b85dc30f44d90ee805c6a18fa03062 and fixed in 6.18.51 with commit c98197ee3cd28288da13dc9881bb9e74daa7cbbc
	Issue introduced in 6.18 with commit ea4c399642b85dc30f44d90ee805c6a18fa03062 and fixed in 7.2.4 with commit 08b8630b557828aedb1d9ef0a6e2ec421f334ee2
	Issue introduced in 6.18 with commit ea4c399642b85dc30f44d90ee805c6a18fa03062 and fixed in 7.3-rc1 with commit cf3ebd89e754015625fee90aa938f6bc79a2c974

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-89509

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/infiniband/hw/ionic/ionic_hw_stats.c drivers/infiniband/hw/ionic/ionic_ibdev.h

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/c98197ee3cd28288da13dc9881bb9e74daa7cbbc
	https://git.kernel.org/stable/c/08b8630b557828aedb1d9ef0a6e2ec421f334ee2
	https://git.kernel.org/stable/c/cf3ebd89e754015625fee90aa938f6bc79a2c974