{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-72165",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-08-09T03:40:39.909Z",
        "datePublished": "2026-08-15T05:53:32.649Z",
        "dateUpdated": "2026-08-17T05:41:07.143Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-17T05:41:07.143Z"
            },
            "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[."
                }
            ],
            "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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/mtd/nand/raw/nand_base.c"
                    ],
                    "versions": [
                        {
                            "version": "32813e288414fecce18f37f8f0d0414a64b45c56",
                            "lessThan": "483a8a8581ee1274ec70e2561492096d4a7305e6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "32813e288414fecce18f37f8f0d0414a64b45c56",
                            "lessThan": "c2a131fb6882c98aada739479cc96df8748d0c24",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "32813e288414fecce18f37f8f0d0414a64b45c56",
                            "lessThan": "e6df4fea1dc86c058e1918136c9b9d8e80c4be1b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "32813e288414fecce18f37f8f0d0414a64b45c56",
                            "lessThan": "3da4eb15c7b421c2d97c402bb7bd607c44822995",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "32813e288414fecce18f37f8f0d0414a64b45c56",
                            "lessThan": "fbc7c8a1167b2eb56b2fd8598c29a3d5e9f8676e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "32813e288414fecce18f37f8f0d0414a64b45c56",
                            "lessThan": "4bbfcf9c7e46cae58257150bf834853559382e28",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "32813e288414fecce18f37f8f0d0414a64b45c56",
                            "lessThan": "8f575fc17360827ca1d1940a84f3c7ee40407a10",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "32813e288414fecce18f37f8f0d0414a64b45c56",
                            "lessThan": "8507c2cc9e4fa402401819f44d1e8a5ef4d11d8b",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/mtd/nand/raw/nand_base.c"
                    ],
                    "versions": [
                        {
                            "version": "5.2",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.2",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.261",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.212",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.178",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.145",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.97",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.40",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1.5",
                            "lessThanOrEqual": "7.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.2",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "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"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
                }
            ],
            "title": "mtd: rawnand: fix condition in 'nand_select_target()'",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}