CVE-2026-72165: mtd: rawnand: fix condition in 'nand_select_target()'
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: fix condition in 'nand_select_target()'
'cs' here must be in range [0:nanddev_ntargets[.
The Linux kernel CVE team has assigned CVE-2026-72165 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.2 with commit 32813e288414fecce18f37f8f0d0414a64b45c56 and fixed in 5.10.261 with commit 483a8a8581ee1274ec70e2561492096d4a7305e6 Issue introduced in 5.2 with commit 32813e288414fecce18f37f8f0d0414a64b45c56 and fixed in 5.15.212 with commit c2a131fb6882c98aada739479cc96df8748d0c24 Issue introduced in 5.2 with commit 32813e288414fecce18f37f8f0d0414a64b45c56 and fixed in 6.1.178 with commit e6df4fea1dc86c058e1918136c9b9d8e80c4be1b Issue introduced in 5.2 with commit 32813e288414fecce18f37f8f0d0414a64b45c56 and fixed in 6.6.145 with commit 3da4eb15c7b421c2d97c402bb7bd607c44822995 Issue introduced in 5.2 with commit 32813e288414fecce18f37f8f0d0414a64b45c56 and fixed in 6.12.97 with commit fbc7c8a1167b2eb56b2fd8598c29a3d5e9f8676e Issue introduced in 5.2 with commit 32813e288414fecce18f37f8f0d0414a64b45c56 and fixed in 6.18.40 with commit 4bbfcf9c7e46cae58257150bf834853559382e28 Issue introduced in 5.2 with commit 32813e288414fecce18f37f8f0d0414a64b45c56 and fixed in 7.1.5 with commit 8f575fc17360827ca1d1940a84f3c7ee40407a10 Issue introduced in 5.2 with commit 32813e288414fecce18f37f8f0d0414a64b45c56 and fixed in 7.2-rc1 with commit 8507c2cc9e4fa402401819f44d1e8a5ef4d11d8b
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-72165
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/mtd/nand/raw/nand_base.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/483a8a8581ee1274ec70e2561492096d4a7305e6 https://git.kernel.org/stable/c/c2a131fb6882c98aada739479cc96df8748d0c24 https://git.kernel.org/stable/c/e6df4fea1dc86c058e1918136c9b9d8e80c4be1b https://git.kernel.org/stable/c/3da4eb15c7b421c2d97c402bb7bd607c44822995 https://git.kernel.org/stable/c/fbc7c8a1167b2eb56b2fd8598c29a3d5e9f8676e https://git.kernel.org/stable/c/4bbfcf9c7e46cae58257150bf834853559382e28 https://git.kernel.org/stable/c/8f575fc17360827ca1d1940a84f3c7ee40407a10 https://git.kernel.org/stable/c/8507c2cc9e4fa402401819f44d1e8a5ef4d11d8b