CVE-2026-89953: mtd: mtdoops: free page bitmap when the backing MTD is removed

Published Sep 16, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

mtdoopsnotifyadd() allocates oopspageused when the configured MTD device is registered. mtdoopsnotifyremove() 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.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 16, 2026
CVE Published
via MITRE·10:32 AM
Data Sourced
via MITRE·10:32 AM
Description

Frequently Asked Questions

1

Which systems are realistically exposed to this leak?

Systems that keep mtdoops loaded while its configured backing MTD device can be removed and later registered again are exposed. The usual configuration with a static MTD device does not exhibit the issue.

2

What event is required to trigger the problem?

The configured backing MTD device must be removed and then registered again while mtdoops remains loaded. Each remove/add cycle can leak one vmalloc allocation when the add path replaces the retained page-bitmap pointer.

3

Does this indicate a double-free after a backing-device removal?

The described issue is a memory leak during reattachment. The fix clears the bitmap pointer and page count after removal, which also prevents the module exit path from attempting to free the bitmap again after a remove event.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203