{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d"
            },
            {
              "fixed": "9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a"
            },
            {
              "fixed": "dc341272cf8e15a2c511db3c4df5dab8adf70ad0"
            },
            {
              "fixed": "6110ab5ffd84e8daa654652446a03ce2f77580a7"
            },
            {
              "fixed": "c0806df5cf806545160f3fdac3c888926ceac557"
            },
            {
              "fixed": "12d4d69221159e6d0e72400ec81195d691169b53"
            },
            {
              "fixed": "e1d456b26bf23e30db305a6184e8abd9ab68bbf2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.6.0"
            },
            {
              "fixed": "6.1.178"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.145"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.97"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.40"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.1.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72155.json"
  },
  "details": "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-\u003eparams-\u003esize - (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.",
  "id": "CVE-2026-72155",
  "modified": "2026-08-18T03:31:22.001967809Z",
  "published": "2026-08-15T05:53:25.236Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/12d4d69221159e6d0e72400ec81195d691169b53"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6110ab5ffd84e8daa654652446a03ce2f77580a7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c0806df5cf806545160f3fdac3c888926ceac557"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dc341272cf8e15a2c511db3c4df5dab8adf70ad0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e1d456b26bf23e30db305a6184e8abd9ab68bbf2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72155.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-72155"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "mtd: spi-nor: swp: Improve locking user experience"
}