CVE-2026-43241: ntb: ntb_hw_switchtec: Fix array-index-out-of-bounds access
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ntb: ntb_hw_switchtec: Fix array-index-out-of-bounds access
Number of MW LUTs depends on NTB configuration and can be set to MAX_MWS, This patch protects against invalid index out of bounds access to mw_sizes When invalid access print message to user that configuration is not valid.
The Linux kernel CVE team has assigned CVE-2026-43241 to this issue.
Affected and fixed versions
===========================
Fixed in 5.10.252 with commit 348e1ac9ad983ed7e62de14e1daf47f1695a4ce9 Fixed in 5.15.202 with commit ee02c4f980c91820845dd8e469ec7dc670ab6d9d Fixed in 6.1.165 with commit 740945de896021b9a859e71f38f6aea72a6393cf Fixed in 6.6.128 with commit 85c9daa1f8319bbb3dfee71dc6a2f969cd3b4c92 Fixed in 6.12.75 with commit 0e930420945106151c6eb3d7837b4e6154e9b144 Fixed in 6.18.16 with commit 2346856b74823a2a78109002e479a3d02526a9ce Fixed in 6.19.6 with commit 47ce292dd45dc689747c40603222691638919189 Fixed in 7.0 with commit c8ba7ad2cc1c7b90570aa347b8ebbe279f1eface
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-43241
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/ntb/hw/mscc/ntb_hw_switchtec.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/348e1ac9ad983ed7e62de14e1daf47f1695a4ce9 https://git.kernel.org/stable/c/ee02c4f980c91820845dd8e469ec7dc670ab6d9d https://git.kernel.org/stable/c/740945de896021b9a859e71f38f6aea72a6393cf https://git.kernel.org/stable/c/85c9daa1f8319bbb3dfee71dc6a2f969cd3b4c92 https://git.kernel.org/stable/c/0e930420945106151c6eb3d7837b4e6154e9b144 https://git.kernel.org/stable/c/2346856b74823a2a78109002e479a3d02526a9ce https://git.kernel.org/stable/c/47ce292dd45dc689747c40603222691638919189 https://git.kernel.org/stable/c/c8ba7ad2cc1c7b90570aa347b8ebbe279f1eface