CVE-2026-23242: RDMA/siw: Fix potential NULL pointer dereference in header processing
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/siw: Fix potential NULL pointer dereference in header processing
If siw_get_hdr() returns -EINVAL before set_rx_fpdu_context(), qp->rx_fpdu can be NULL. The error path in siw_tcp_rx_data() dereferences qp->rx_fpdu->more_ddp_segs without checking, which may lead to a NULL pointer deref. Only check more_ddp_segs when rx_fpdu is present.
KASAN splat:
[ 101.384271] KASAN: null-ptr-deref in range [0x00000000000000c0-0x00000000000000c7] [ 101.385869] RIP: 0010:siw_tcp_rx_data+0x13ad/0x1e50
The Linux kernel CVE team has assigned CVE-2026-23242 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.3 with commit 8b6a361b8c482f22ac99c3273285ff16b23fba91 and fixed in 5.10.252 with commit ab61841633d10e56a58c1493a262f0d02dba2f5e Issue introduced in 5.3 with commit 8b6a361b8c482f22ac99c3273285ff16b23fba91 and fixed in 5.15.202 with commit 8564dcc12fbb372d984ab45768cae9335777b274 Issue introduced in 5.3 with commit 8b6a361b8c482f22ac99c3273285ff16b23fba91 and fixed in 6.1.165 with commit ab957056192d6bd068b3759cb2077d859cca01f0 Issue introduced in 5.3 with commit 8b6a361b8c482f22ac99c3273285ff16b23fba91 and fixed in 6.6.128 with commit ffba40b67663567481fa8a1ed5d2da36897c175d Issue introduced in 5.3 with commit 8b6a361b8c482f22ac99c3273285ff16b23fba91 and fixed in 6.12.75 with commit 87b7a036d2c73d5bb3ae2d47dee23de465db3355 Issue introduced in 5.3 with commit 8b6a361b8c482f22ac99c3273285ff16b23fba91 and fixed in 6.18.14 with commit 714c99e1dc8f85f446e05be02ba83972e981a817 Issue introduced in 5.3 with commit 8b6a361b8c482f22ac99c3273285ff16b23fba91 and fixed in 6.19.4 with commit ce025f7f5d070596194315eb2e4e89d568b8a755 Issue introduced in 5.3 with commit 8b6a361b8c482f22ac99c3273285ff16b23fba91 and fixed in 7.0-rc1 with commit 14ab3da122bd18920ad57428f6cf4fade8385142
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-23242
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/sw/siw/siw_qp_rx.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/ab61841633d10e56a58c1493a262f0d02dba2f5e https://git.kernel.org/stable/c/8564dcc12fbb372d984ab45768cae9335777b274 https://git.kernel.org/stable/c/ab957056192d6bd068b3759cb2077d859cca01f0 https://git.kernel.org/stable/c/ffba40b67663567481fa8a1ed5d2da36897c175d https://git.kernel.org/stable/c/87b7a036d2c73d5bb3ae2d47dee23de465db3355 https://git.kernel.org/stable/c/714c99e1dc8f85f446e05be02ba83972e981a817 https://git.kernel.org/stable/c/ce025f7f5d070596194315eb2e4e89d568b8a755 https://git.kernel.org/stable/c/14ab3da122bd18920ad57428f6cf4fade8385142