mtd: mtdoops: free page bitmap when the backing MTD is removed

Summary

CVECVE-2026-89953
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-09-16 11:17:05 UTC
Updated2026-09-16 11:17:05 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: mtd: mtdoops: free page bitmap when the backing MTD is removed mtdoops_notify_add() allocates oops_page_used when the configured MTD device is registered. mtdoops_notify_remove() detaches from that device but leaves the bitmap allocated. If the same MTD device is later registered again, the add path allocates a new bitmap and overwrites the old pointer, leaking one vmalloc allocation per remove/add cycle. This is only visible when the backing MTD device can disappear and be registered again while mtdoops remains loaded, so the usual static MTD case does not expose it. Free the bitmap after unregistering the dumper and flushing the pending workers, then clear the pointer and page count before a later attach can allocate fresh state. Clearing the pointer also keeps the module exit path from freeing the same bitmap a second time after a remove event.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected be95745f01677245a061a8f51473ef5ec8ad008e 477d61d54e097e90f748aa18d013805abd56bcbd git Not specified
CNA Linux Linux affected be95745f01677245a061a8f51473ef5ec8ad008e a91ac71e67c3e01ed9afd9841435bebb930293f8 git Not specified
CNA Linux Linux affected be95745f01677245a061a8f51473ef5ec8ad008e 698944132083d143ef965c0090ee14ba1d9e1a5f git Not specified
CNA Linux Linux affected be95745f01677245a061a8f51473ef5ec8ad008e f25c804947e0a28c15e73da8e2e0db959cbed716 git Not specified
CNA Linux Linux affected be95745f01677245a061a8f51473ef5ec8ad008e 8414f0e9f707226de20b48c7048179fd86d352fc git Not specified
CNA Linux Linux affected be95745f01677245a061a8f51473ef5ec8ad008e d06f91a52af11630c9f7e487f6daf242ac310cb8 git Not specified
CNA Linux Linux affected be95745f01677245a061a8f51473ef5ec8ad008e 1e5cd8bc902331ff801df88cbb299029ae062753 git Not specified
CNA Linux Linux affected be95745f01677245a061a8f51473ef5ec8ad008e 956e7da12c114f13c63d126ab1d79c3b6a819060 git Not specified
CNA Linux Linux affected 2.6.33 Not specified
CNA Linux Linux unaffected 2.6.33 semver Not specified
CNA Linux Linux unaffected 5.10.270 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.221 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.188 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.157 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.110 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.51 6.18.* semver Not specified
CNA Linux Linux unaffected 7.2.5 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/a91ac71e67c3e01ed9afd9841435bebb930293f8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8414f0e9f707226de20b48c7048179fd86d352fc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1e5cd8bc902331ff801df88cbb299029ae062753 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/956e7da12c114f13c63d126ab1d79c3b6a819060 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/698944132083d143ef965c0090ee14ba1d9e1a5f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f25c804947e0a28c15e73da8e2e0db959cbed716 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/477d61d54e097e90f748aa18d013805abd56bcbd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d06f91a52af11630c9f7e487f6daf242ac310cb8 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