{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-72155",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-08-09T03:40:39.909Z",
        "datePublished": "2026-08-15T05:53:25.236Z",
        "dateUpdated": "2026-08-23T12:46:54.916Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-23T12:46:54.916Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: spi-nor: swp: Improve locking user experience\n\nIn the case of the first block being locked (or the few first blocks),\nif the user want to fully unlock the device it has two possibilities:\n- either it asks to unlock the entire device, and this works;\n- or it asks to unlock just the block(s) that are currently locked,\n  which fails.\n\nIt fails because the conditions \"can_be_top\" and \"can_be_bottom\" are\ntrue. Indeed, in this case, we unlock everything, so the TB bit does not\nmatter. However in the current implementation, use_top would be true (as\nthis is the favourite option) and lock_len, which in practice should be\nreduced down to 0, is set to \"nor->params->size - (ofs + len)\" which is\na positive number. This is wrong.\n\nAn easy way is to simply add an extra condition. In the unlock() path,\nif we can achieve the same result from both sides, it means we unlock\neverything and lock_len must simply be 0. A comment is added to clarify\nthat logic."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/mtd/spi-nor/swp.c"
                    ],
                    "versions": [
                        {
                            "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                            "lessThan": "23c285be8f6fcde9088fe12bb69c701d46696be1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                            "lessThan": "a6fd2145c73b80bb6a5eed7355a4f63597d712d9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                            "lessThan": "9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                            "lessThan": "dc341272cf8e15a2c511db3c4df5dab8adf70ad0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                            "lessThan": "6110ab5ffd84e8daa654652446a03ce2f77580a7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                            "lessThan": "c0806df5cf806545160f3fdac3c888926ceac557",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                            "lessThan": "12d4d69221159e6d0e72400ec81195d691169b53",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                            "lessThan": "e1d456b26bf23e30db305a6184e8abd9ab68bbf2",
                            "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/spi-nor/swp.c"
                    ],
                    "versions": [
                        {
                            "version": "4.6",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.6",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.266",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.217",
                            "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": "4.6",
                                    "versionEndExcluding": "5.10.266"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "5.15.217"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "6.1.178"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "6.6.145"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "6.12.97"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "6.18.40"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "7.1.5"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "7.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/23c285be8f6fcde9088fe12bb69c701d46696be1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a6fd2145c73b80bb6a5eed7355a4f63597d712d9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/dc341272cf8e15a2c511db3c4df5dab8adf70ad0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6110ab5ffd84e8daa654652446a03ce2f77580a7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c0806df5cf806545160f3fdac3c888926ceac557"
                },
                {
                    "url": "https://git.kernel.org/stable/c/12d4d69221159e6d0e72400ec81195d691169b53"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e1d456b26bf23e30db305a6184e8abd9ab68bbf2"
                }
            ],
            "title": "mtd: spi-nor: swp: Improve locking user experience",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}