{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-72155",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-72155",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-08-15T05:53:25.236Z",
    "updatedAt": "2026-08-23T12:46:54.916Z",
    "importedAt": "2026-10-24T01:58:25.636Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "mtd: spi-nor: swp: Improve locking user experience",
      "summary": "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": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "23c285be8f6fcde9088fe12bb69c701d46696be1"
            },
            {
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a6fd2145c73b80bb6a5eed7355a4f63597d712d9"
            },
            {
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a"
            },
            {
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "dc341272cf8e15a2c511db3c4df5dab8adf70ad0"
            },
            {
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6110ab5ffd84e8daa654652446a03ce2f77580a7"
            },
            {
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c0806df5cf806545160f3fdac3c888926ceac557"
            },
            {
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "12d4d69221159e6d0e72400ec81195d691169b53"
            },
            {
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e1d456b26bf23e30db305a6184e8abd9ab68bbf2"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.6",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.6"
            },
            {
              "version": "5.10.266",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.217",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.178",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.145",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.97",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.40",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "7.1.5",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "7.1.*"
            },
            {
              "version": "7.2",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}