mtd: spi-nor: swp: Improve locking user experience

Summary

CVECVE-2026-72155
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-15 06:21:33 UTC
Updated2026-08-23 13:16:40 UTC
DescriptionIn 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.

Risk And Classification

EPSS: 0.002060000 probability, percentile 0.109170000 (date 2026-08-23)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 3dd8012a8eeb3702fa17450ec1a16a3f38af138d 23c285be8f6fcde9088fe12bb69c701d46696be1 git Not specified
CNA Linux Linux affected 3dd8012a8eeb3702fa17450ec1a16a3f38af138d a6fd2145c73b80bb6a5eed7355a4f63597d712d9 git Not specified
CNA Linux Linux affected 3dd8012a8eeb3702fa17450ec1a16a3f38af138d 9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a git Not specified
CNA Linux Linux affected 3dd8012a8eeb3702fa17450ec1a16a3f38af138d dc341272cf8e15a2c511db3c4df5dab8adf70ad0 git Not specified
CNA Linux Linux affected 3dd8012a8eeb3702fa17450ec1a16a3f38af138d 6110ab5ffd84e8daa654652446a03ce2f77580a7 git Not specified
CNA Linux Linux affected 3dd8012a8eeb3702fa17450ec1a16a3f38af138d c0806df5cf806545160f3fdac3c888926ceac557 git Not specified
CNA Linux Linux affected 3dd8012a8eeb3702fa17450ec1a16a3f38af138d 12d4d69221159e6d0e72400ec81195d691169b53 git Not specified
CNA Linux Linux affected 3dd8012a8eeb3702fa17450ec1a16a3f38af138d e1d456b26bf23e30db305a6184e8abd9ab68bbf2 git Not specified
CNA Linux Linux affected 4.6 Not specified
CNA Linux Linux unaffected 4.6 semver Not specified
CNA Linux Linux unaffected 5.10.266 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.217 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.178 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.145 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.97 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.40 6.18.* semver Not specified
CNA Linux Linux unaffected 7.1.5 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/23c285be8f6fcde9088fe12bb69c701d46696be1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e1d456b26bf23e30db305a6184e8abd9ab68bbf2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9a0d8dec3d11ca95d67537ea8fa6ee2730a5038a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c0806df5cf806545160f3fdac3c888926ceac557 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a6fd2145c73b80bb6a5eed7355a4f63597d712d9 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/12d4d69221159e6d0e72400ec81195d691169b53 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6110ab5ffd84e8daa654652446a03ce2f77580a7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/dc341272cf8e15a2c511db3c4df5dab8adf70ad0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report