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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-08-15T05:53:25.236Z
- **Modified:** 2026-11-06T17:19:38.387Z

## Who should check

- Anyone running Linux \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 23c285be8f6fcde9088fe12bb69c701d46696be1; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< a6fd2145c73b80bb6a5eed7355a4f63597d712d9; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< dc341272cf8e15a2c511db3c4df5dab8adf70ad0; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 6110ab5ffd84e8daa654652446a03ce2f77580a7; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< c0806df5cf806545160f3fdac3c888926ceac557; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 12d4d69221159e6d0e72400ec81195d691169b53; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< e1d456b26bf23e30db305a6184e8abd9ab68bbf2
- Anyone running Linux 4.6

## Description

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.

## Affected and fixed versions

- Linux: \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 23c285be8f6fcde9088fe12bb69c701d46696be1; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< a6fd2145c73b80bb6a5eed7355a4f63597d712d9; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< dc341272cf8e15a2c511db3c4df5dab8adf70ad0; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 6110ab5ffd84e8daa654652446a03ce2f77580a7; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< c0806df5cf806545160f3fdac3c888926ceac557; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 12d4d69221159e6d0e72400ec81195d691169b53; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< e1d456b26bf23e30db305a6184e8abd9ab68bbf2 (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-72155. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-72155.md
Affected: Linux >= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, < 23c285be8f6fcde9088fe12bb69c701d46696be1; >= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, < a6fd2145c73b80bb6a5eed7355a4f63597d712d9; >= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, < 9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a; >= 3dd8012a8eeb3702fa17450…
Fixed in: Linux 23c285be8f6fcde9088fe12bb69c701d46696be1, Linux 9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a, Linux 6110ab5ffd84e8daa654652446a03ce2f77580a7, Linux 12d4d69221159e6d0e72400ec81195d691169b53

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-72155 being exploited?

There is no confirmed exploitation: CVE-2026-72155 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-72155?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-72155?

Linux \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 23c285be8f6fcde9088fe12bb69c701d46696be1; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< a6fd2145c73b80bb6a5eed7355a4f63597d712d9; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< dc341272cf8e15a2c511db3c4df5dab8adf70ad0; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 6110ab5ffd84e8daa654652446a03ce2f77580a7; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< c0806df5cf806545160f3fdac3c888926ceac557; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< 12d4d69221159e6d0e72400ec81195d691169b53; \>= 3dd8012a8eeb3702fa17450ec1a16a3f38af138d, \< e1d456b26bf23e30db305a6184e8abd9ab68bbf2; Linux 4.6.

### Is there a fix for CVE-2026-72155?

Yes. Fixed in Linux 23c285be8f6fcde9088fe12bb69c701d46696be1, Linux 9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a, Linux 6110ab5ffd84e8daa654652446a03ce2f77580a7, Linux 12d4d69221159e6d0e72400ec81195d691169b53. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-72155?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/23c285be8f6fcde9088fe12bb69c701d46696be1>
- other: <https://git.kernel.org/stable/c/a6fd2145c73b80bb6a5eed7355a4f63597d712d9>
- other: <https://git.kernel.org/stable/c/9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a>
- other: <https://git.kernel.org/stable/c/dc341272cf8e15a2c511db3c4df5dab8adf70ad0>
- other: <https://git.kernel.org/stable/c/6110ab5ffd84e8daa654652446a03ce2f77580a7>
- other: <https://git.kernel.org/stable/c/c0806df5cf806545160f3fdac3c888926ceac557>
- other: <https://git.kernel.org/stable/c/12d4d69221159e6d0e72400ec81195d691169b53>
- other: <https://git.kernel.org/stable/c/e1d456b26bf23e30db305a6184e8abd9ab68bbf2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-72155>

HTML: <https://flawdb.com/CVE-2026-72155> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-72155>
