Skip to contentSkip to conversation

CVE-2026-23384: RDMA/ionic: Fix kernel stack leak in ionic_create_cq()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

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: Fix kernel stack leak in ionic_create_cq()

struct ionic_cq_resp resp {

    __u32 cqid[2];         // offset 0 - PARTIALLY SET (see below)
    __u8  udma_mask;       // offset 8 - SET (resp.udma_mask = vcq->udma_mask)
    __u8  rsvd[7];         // offset 9 - NEVER SET <- LEAK

};

rsvd[7]: 7 bytes of stack memory leaked unconditionally.

cqid[2]: The loop at line 1256 iterates over udma_idx but skips indices where !(vcq->udma_mask & BIT(udma_idx)). The array has 2 entries but udma_count could be 1, meaning cqid[1] might never be written via ionic_create_cq_common(). If udma_mask only has bit 0 set, cqid[1] (4 bytes) is also leaked. So potentially 11 bytes leaked.

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

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

	Issue introduced in 6.18 with commit e8521822c733c6deab0f339843cd37cd62c12795 and fixed in 6.18.17 with commit a6f3e0fa8e862f220c26c2f27e5ddc42eb82ad3e
	Issue introduced in 6.18 with commit e8521822c733c6deab0f339843cd37cd62c12795 and fixed in 6.19.7 with commit 547d0b07ad73915b323bc21f85c5d3252bebbbcf
	Issue introduced in 6.18 with commit e8521822c733c6deab0f339843cd37cd62c12795 and fixed in 7.0-rc2 with commit faa72102b178c7ae6c6afea23879e7c84fc59b4e

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-23384

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_controlpath.c

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/a6f3e0fa8e862f220c26c2f27e5ddc42eb82ad3e
	https://git.kernel.org/stable/c/547d0b07ad73915b323bc21f85c5d3252bebbbcf
	https://git.kernel.org/stable/c/faa72102b178c7ae6c6afea23879e7c84fc59b4e