CVE-2026-23335: RDMA/irdma: Fix kernel stack leak in irdma_create_user_ah()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/irdma: Fix kernel stack leak in irdma_create_user_ah()
struct irdma_create_ah_resp { // 8 bytes, no padding
__u32 ah_id; // offset 0 - SET (uresp.ah_id = ah->sc_ah.ah_info.ah_idx)
__u8 rsvd[4]; // offset 4 - NEVER SET <- LEAK};
rsvd[4]: 4 bytes of stack memory leaked unconditionally. Only ah_id is assigned before ib_respond_udata().
The reserved members of the structure were not zeroed.
The Linux kernel CVE team has assigned CVE-2026-23335 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.1.167 with commit 14b47c07c69930254f549a17ee245c80a65b1609 Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.6.130 with commit 1b1fac4c7a3ab7f52e9cfb91e5c91216646ca4d8 Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.12.77 with commit 2fd37450d271d74b3847baed284f9cfdf198c6f8 Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.18.17 with commit cfe962216c164fe2b1c1fb6ac925a7413f5abc84 Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.19.7 with commit c9bd0007c4bdb7806bbd323287e50f9cf467c51a Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 7.0-rc2 with commit 74586c6da9ea222a61c98394f2fc0a604748438c
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-23335
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/irdma/verbs.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/14b47c07c69930254f549a17ee245c80a65b1609 https://git.kernel.org/stable/c/1b1fac4c7a3ab7f52e9cfb91e5c91216646ca4d8 https://git.kernel.org/stable/c/2fd37450d271d74b3847baed284f9cfdf198c6f8 https://git.kernel.org/stable/c/cfe962216c164fe2b1c1fb6ac925a7413f5abc84 https://git.kernel.org/stable/c/c9bd0007c4bdb7806bbd323287e50f9cf467c51a https://git.kernel.org/stable/c/74586c6da9ea222a61c98394f2fc0a604748438c