# CVE-2026-72155: mtd: spi-nor: swp: Improve locking user experience

Status: published. Published: 2026-08-15. Updated: 2026-11-06.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 3dd8012a8eeb3702fa17450ec1a16a3f38af138d; < 23c285be8f6fcde9088fe12bb69c701d46696be1 (affected, git); ≥ 3dd8012a8eeb3702fa17450ec1a16a3f38af138d; < a6fd2145c73b80bb6a5eed7355a4f63597d712d9 (affected, git); ≥ 3dd8012a8eeb3702fa17450ec1a16a3f38af138d; < 9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a (affected, git); ≥ 3dd8012a8eeb3702fa17450ec1a16a3f38af138d; < dc341272cf8e15a2c511db3c4df5dab8adf70ad0 (affected, git); ≥ 3dd8012a8eeb3702fa17450ec1a16a3f38af138d; < 6110ab5ffd84e8daa654652446a03ce2f77580a7 (affected, git); ≥ 3dd8012a8eeb3702fa17450ec1a16a3f38af138d; < c0806df5cf806545160f3fdac3c888926ceac557 (affected, git); ≥ 3dd8012a8eeb3702fa17450ec1a16a3f38af138d; < 12d4d69221159e6d0e72400ec81195d691169b53 (affected, git); ≥ 3dd8012a8eeb3702fa17450ec1a16a3f38af138d; < e1d456b26bf23e30db305a6184e8abd9ab68bbf2 (affected, git). Source: CNA: Linux
- Linux / Linux: 4.6 (affected); ≥ 0; < 4.6 (unaffected, semver); ≥ 5.10.266; ≤ 5.10.* (unaffected, semver); ≥ 5.15.217; ≤ 5.15.* (unaffected, semver); ≥ 6.1.178; ≤ 6.1.* (unaffected, semver); ≥ 6.6.145; ≤ 6.6.* (unaffected, semver); ≥ 6.12.97; ≤ 6.12.* (unaffected, semver); ≥ 6.18.40; ≤ 6.18.* (unaffected, semver); ≥ 7.1.5; ≤ 7.1.* (unaffected, semver); ≥ 7.2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.22% as of 2026-11-06; percentile 12.14%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/23c285be8f6fcde9088fe12bb69c701d46696be1 (CNA: Linux)

- https://git.kernel.org/stable/c/a6fd2145c73b80bb6a5eed7355a4f63597d712d9 (CNA: Linux)

- https://git.kernel.org/stable/c/9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a (CNA: Linux)

- https://git.kernel.org/stable/c/dc341272cf8e15a2c511db3c4df5dab8adf70ad0 (CNA: Linux)

- https://git.kernel.org/stable/c/6110ab5ffd84e8daa654652446a03ce2f77580a7 (CNA: Linux)

- https://git.kernel.org/stable/c/c0806df5cf806545160f3fdac3c888926ceac557 (CNA: Linux)

- https://git.kernel.org/stable/c/12d4d69221159e6d0e72400ec81195d691169b53 (CNA: Linux)

- https://git.kernel.org/stable/c/e1d456b26bf23e30db305a6184e8abd9ab68bbf2 (CNA: Linux)

- https://git.kernel.org/stable/c/12d4d69221159e6d0e72400ec81195d691169b53 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/23c285be8f6fcde9088fe12bb69c701d46696be1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/6110ab5ffd84e8daa654652446a03ce2f77580a7 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/a6fd2145c73b80bb6a5eed7355a4f63597d712d9 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/c0806df5cf806545160f3fdac3c888926ceac557 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/dc341272cf8e15a2c511db3c4df5dab8adf70ad0 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/e1d456b26bf23e30db305a6184e8abd9ab68bbf2 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-72155; retrieved 2026-11-06; source updated 2026-11-06

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-72155; retrieved 2026-11-06; source updated 2026-11-06

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-72155; retrieved 2026-11-06; source updated Not reported

Revision: eb7e53c79a828b4e4c38c0bb2da875a6e58d279ae148eb60119940efec2b4fe1

Canonical: https://y2.dev/cve/CVE-2026-72155

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.