{"id":"CVE-2026-72165","state":"PUBLISHED","title":"mtd: rawnand: fix condition in 'nand_select_target()'","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: rawnand: fix condition in 'nand_select_target()'\n\n'cs' here must be in range [0:nanddev_ntargets[.","publishedAt":"2026-08-15T05:53:32.649Z","updatedAt":"2026-10-16T18:44:59.914Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"483a8a8581ee1274ec70e2561492096d4a7305e6","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"c2a131fb6882c98aada739479cc96df8748d0c24","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"e6df4fea1dc86c058e1918136c9b9d8e80c4be1b","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"3da4eb15c7b421c2d97c402bb7bd607c44822995","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"fbc7c8a1167b2eb56b2fd8598c29a3d5e9f8676e","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"4bbfcf9c7e46cae58257150bf834853559382e28","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"8f575fc17360827ca1d1940a84f3c7ee40407a10","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"8507c2cc9e4fa402401819f44d1e8a5ef4d11d8b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/nand/raw/nand_base.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/nand/raw/nand_base.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/72xxx/CVE-2026-72165.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-72165","state":"PUBLISHED","datePublished":"2026-08-15T05:53:32.649Z","dateUpdated":"2026-10-16T18:44:59.914Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-09T03:40:39.909Z"},"containers":{"cna":{"title":"mtd: rawnand: fix condition in 'nand_select_target()'","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: rawnand: fix condition in 'nand_select_target()'\n\n'cs' here must be in range [0:nanddev_ntargets[."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"483a8a8581ee1274ec70e2561492096d4a7305e6","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"c2a131fb6882c98aada739479cc96df8748d0c24","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"e6df4fea1dc86c058e1918136c9b9d8e80c4be1b","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"3da4eb15c7b421c2d97c402bb7bd607c44822995","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"fbc7c8a1167b2eb56b2fd8598c29a3d5e9f8676e","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"4bbfcf9c7e46cae58257150bf834853559382e28","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"8f575fc17360827ca1d1940a84f3c7ee40407a10","versionType":"git"},{"version":"32813e288414fecce18f37f8f0d0414a64b45c56","status":"affected","lessThan":"8507c2cc9e4fa402401819f44d1e8a5ef4d11d8b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/nand/raw/nand_base.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/nand/raw/nand_base.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/483a8a8581ee1274ec70e2561492096d4a7305e6"},{"url":"https://git.kernel.org/stable/c/c2a131fb6882c98aada739479cc96df8748d0c24"},{"url":"https://git.kernel.org/stable/c/e6df4fea1dc86c058e1918136c9b9d8e80c4be1b"},{"url":"https://git.kernel.org/stable/c/3da4eb15c7b421c2d97c402bb7bd607c44822995"},{"url":"https://git.kernel.org/stable/c/fbc7c8a1167b2eb56b2fd8598c29a3d5e9f8676e"},{"url":"https://git.kernel.org/stable/c/4bbfcf9c7e46cae58257150bf834853559382e28"},{"url":"https://git.kernel.org/stable/c/8f575fc17360827ca1d1940a84f3c7ee40407a10"},{"url":"https://git.kernel.org/stable/c/8507c2cc9e4fa402401819f44d1e8a5ef4d11d8b"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The flaw is in the raw NAND MTD stack reached via local /dev/mtdX character-device ioctls (MEMREAD, MEMWRITE, MEMERASE, MEMSETBADBLOCK) and mtdblock I/O, not via network protocols or physical hotplug alone.\nAC:L - An attacker with MTD device access can repeatedly issue read, write, or erase operations on multi-die NAND hardware; when a caller supplies cs equal to nanddev_ntargets(), the defective check passes deterministically and invokes the controller select_chip path.\nPR:L - Exploitation requires local write access to the MTD character device (FMODE_WRITE on /dev/mtdX) but no capability() gate beyond device permissions; per kernel CNA guidance, PR:L is chosen when uncertain between device-permission low and root-only high privilege.\nUI:N - No separate victim interaction is required; once the attacker has access to the MTD device node they can trigger the vulnerable nand_select_target() path through their own ioctl or read/write requests.\nS:U - Impact remains within the kernel and on-board NAND controller security authority on the host; it does not cross VM, container, IOMMU, or other security-boundary scopes into a separate authority.\nC:H - When cs equals nanddev_ntargets() the invalid index reaches controller select_chip handlers (denali, mtk, rockchip, renesas) that index sels[cs] without bounds checking, enabling out-of-bounds kernel memory reads.\nI:H - Out-of-bounds sels[cs] values are written into NAND controller CE-select and timing registers, plausibly corrupting flash contents or protection state; under the required uncertainty rule this memory-safety defect is scored as high integrity impact.\nA:H - On legacy/default select_chip paths an out-of-range cs hits BUG(), and controller misconfiguration from invalid CE selection can oops or hang the kernel, satisfying high availability impact for kernel crash classes."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:41:07.143Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.10.261"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.15.212"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-72165","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T18:43:12.886709Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T18:44:59.914Z"}}]}}}