CVE-2026-72155 (GCVE-0-2026-72155)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:53 – Updated: 2026-08-23 12:46
VLAI
Title
mtd: spi-nor: swp: Improve locking user experience
Summary
In the Linux kernel, the following vulnerability has been resolved: mtd: spi-nor: swp: Improve locking user experience In the case of the first block being locked (or the few first blocks), if the user want to fully unlock the device it has two possibilities: - either it asks to unlock the entire device, and this works; - or it asks to unlock just the block(s) that are currently locked, which fails. It fails because the conditions "can_be_top" and "can_be_bottom" are true. Indeed, in this case, we unlock everything, so the TB bit does not matter. However in the current implementation, use_top would be true (as this is the favourite option) and lock_len, which in practice should be reduced down to 0, is set to "nor->params->size - (ofs + len)" which is a positive number. This is wrong. An easy way is to simply add an extra condition. In the unlock() path, if we can achieve the same result from both sides, it means we unlock everything and lock_len must simply be 0. A comment is added to clarify that logic.
Severity
No CVSS data available.
Assigner
Linux CNA under the mitre root
CNA scorecard D 53/100 over 7033 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 3dd8012a8eeb3702fa17450ec1a16a3f38af138d , < 23c285be8f6fcde9088fe12bb69c701d46696be1 (git)
Affected: 3dd8012a8eeb3702fa17450ec1a16a3f38af138d , < a6fd2145c73b80bb6a5eed7355a4f63597d712d9 (git)
Affected: 3dd8012a8eeb3702fa17450ec1a16a3f38af138d , < 9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a (git)
Affected: 3dd8012a8eeb3702fa17450ec1a16a3f38af138d , < dc341272cf8e15a2c511db3c4df5dab8adf70ad0 (git)
Affected: 3dd8012a8eeb3702fa17450ec1a16a3f38af138d , < 6110ab5ffd84e8daa654652446a03ce2f77580a7 (git)
Affected: 3dd8012a8eeb3702fa17450ec1a16a3f38af138d , < c0806df5cf806545160f3fdac3c888926ceac557 (git)
Affected: 3dd8012a8eeb3702fa17450ec1a16a3f38af138d , < 12d4d69221159e6d0e72400ec81195d691169b53 (git)
Affected: 3dd8012a8eeb3702fa17450ec1a16a3f38af138d , < e1d456b26bf23e30db305a6184e8abd9ab68bbf2 (git)
guessed Create a notification for this product.
Linux Linux Affected: 4.6
Unaffected: 0 , < 4.6 (semver)
Unaffected: 5.10.266 , ≤ 5.10.* (semver)
Unaffected: 5.15.217 , ≤ 5.15.* (semver)
Unaffected: 6.1.178 , ≤ 6.1.* (semver)
Unaffected: 6.6.145 , ≤ 6.6.* (semver)
Unaffected: 6.12.97 , ≤ 6.12.* (semver)
Unaffected: 6.18.40 , ≤ 6.18.* (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/mtd/spi-nor/swp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "23c285be8f6fcde9088fe12bb69c701d46696be1",
              "status": "affected",
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "versionType": "git"
            },
            {
              "lessThan": "a6fd2145c73b80bb6a5eed7355a4f63597d712d9",
              "status": "affected",
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "versionType": "git"
            },
            {
              "lessThan": "9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a",
              "status": "affected",
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "versionType": "git"
            },
            {
              "lessThan": "dc341272cf8e15a2c511db3c4df5dab8adf70ad0",
              "status": "affected",
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "versionType": "git"
            },
            {
              "lessThan": "6110ab5ffd84e8daa654652446a03ce2f77580a7",
              "status": "affected",
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "versionType": "git"
            },
            {
              "lessThan": "c0806df5cf806545160f3fdac3c888926ceac557",
              "status": "affected",
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "versionType": "git"
            },
            {
              "lessThan": "12d4d69221159e6d0e72400ec81195d691169b53",
              "status": "affected",
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "versionType": "git"
            },
            {
              "lessThan": "e1d456b26bf23e30db305a6184e8abd9ab68bbf2",
              "status": "affected",
              "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/mtd/spi-nor/swp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.6"
            },
            {
              "lessThan": "4.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.266",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.217",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.178",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.97",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.40",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.266",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.217",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.178",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.145",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.97",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.40",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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-\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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-23T12:46:54.916Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72155",
    "datePublished": "2026-08-15T05:53:25.236Z",
    "dateReserved": "2026-08-09T03:40:39.909Z",
    "dateUpdated": "2026-08-23T12:46:54.916Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72155",
      "date": "2026-10-30",
      "epss": "0.00216",
      "percentile": "0.12142"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/mtd/spi-nor/swp.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "23c285be8f6fcde9088fe12bb69c701d46696be1",
                    "status": "affected",
                    "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a6fd2145c73b80bb6a5eed7355a4f63597d712d9",
                    "status": "affected",
                    "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a",
                    "status": "affected",
                    "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "dc341272cf8e15a2c511db3c4df5dab8adf70ad0",
                    "status": "affected",
                    "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "6110ab5ffd84e8daa654652446a03ce2f77580a7",
                    "status": "affected",
                    "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "c0806df5cf806545160f3fdac3c888926ceac557",
                    "status": "affected",
                    "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "12d4d69221159e6d0e72400ec81195d691169b53",
                    "status": "affected",
                    "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e1d456b26bf23e30db305a6184e8abd9ab68bbf2",
                    "status": "affected",
                    "version": "3dd8012a8eeb3702fa17450ec1a16a3f38af138d",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/mtd/spi-nor/swp.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "4.6"
                  },
                  {
                    "lessThan": "4.6",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.266",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.217",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.178",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.145",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.97",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.40",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.1.*",
                    "status": "unaffected",
                    "version": "7.1.5",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.2",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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-\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",
        "lastModified": "2026-08-23T13:16:40.843",
        "metrics": {},
        "published": "2026-08-15T06:21:33.250",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/12d4d69221159e6d0e72400ec81195d691169b53"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/23c285be8f6fcde9088fe12bb69c701d46696be1"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/6110ab5ffd84e8daa654652446a03ce2f77580a7"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a6fd2145c73b80bb6a5eed7355a4f63597d712d9"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/c0806df5cf806545160f3fdac3c888926ceac557"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/dc341272cf8e15a2c511db3c4df5dab8adf70ad0"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e1d456b26bf23e30db305a6184e8abd9ab68bbf2"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-10-17T21:41:49+00:00",
      "cve": "CVE-2026-72155",
      "id": "CVE-2026-72155",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_affected": "185",
      "product_status:known_not_affected": "90",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: mtd: spi-nor: swp: Improve locking user experience",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72155.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-10-22T23:55:16Z",
      "cve": "CVE-2026-72155",
      "id": "CVE-2026-72155",
      "initial_release_date": "2026-08-31T13:29:56Z",
      "product_status:known_affected": "315",
      "product_status:known_not_affected": "48",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-72155",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-72155.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.