CVE-2026-89953

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

State
Published
Severity
Not scored
Published
Sep 16, 2026
Updated
Oct 19, 2026
Reserved
Sep 11, 2026

Read the record on cve.org

Description

In 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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • be95745f01677245a061a8f51473ef5ec8ad008e to before 477d61d54e097e90f748aa18d013805abd56bcbdAffected
  • be95745f01677245a061a8f51473ef5ec8ad008e to before a91ac71e67c3e01ed9afd9841435bebb930293f8Affected
  • be95745f01677245a061a8f51473ef5ec8ad008e to before 698944132083d143ef965c0090ee14ba1d9e1a5fAffected
  • be95745f01677245a061a8f51473ef5ec8ad008e to before f25c804947e0a28c15e73da8e2e0db959cbed716Affected
  • be95745f01677245a061a8f51473ef5ec8ad008e to before 8414f0e9f707226de20b48c7048179fd86d352fcAffected
  • be95745f01677245a061a8f51473ef5ec8ad008e to before d06f91a52af11630c9f7e487f6daf242ac310cb8Affected
  • be95745f01677245a061a8f51473ef5ec8ad008e to before 1e5cd8bc902331ff801df88cbb299029ae062753Affected
  • be95745f01677245a061a8f51473ef5ec8ad008e to before 956e7da12c114f13c63d126ab1d79c3b6a819060Affected
LinuxLinux
  • 2.6.33Affected
  • before 2.6.33Not affected
  • 5.10.270 through 5.10.*Not affected
  • 5.15.221 through 5.15.*Not affected
  • 6.1.188 through 6.1.*Not affected
  • 6.6.157 through 6.6.*Not affected
  • 6.12.110 through 6.12.*Not affected
  • 6.18.51 through 6.18.*Not affected
  • 7.2.5 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.