CVE-2026-139050: mtd: rawnand: ndfc: use devm_platform_ioremap_resource()

Published Nov 30, 2026
·
Updated

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

mtd: rawnand: ndfc: use devmplatformioremapresource()

Replace the open-coded ofiomap()/iounmap() with the managed devmplatformioremapresource() helper. This fixes a mapping leak on driver remove (the old code never called iounmap()) and simplifies the error path by dropping the manual cleanup in ndfcprobe().

There is no overlapping memory-region concern introduced by this change: each supported board DT describes a single ndfc node with a unique 0x2000 register region, and the EBC parent uses dcr-reg rather than a MEM reg resource, so the newly added requestmemregion() cannot conflict with an existing reservation. Distinct chip selects map to distinct 64-bit physical addresses, so CS instances do not overlap.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Replace the open-coded of_iomap()/iounmap() mapping in the NDFC driver with devm_platform_ioremap_resource().

Event History

Nov 30, 2026
CVE Published
via MITRE·01:27 PM
Data Sourced
via MITRE·01:27 PM
Description

Frequently Asked Questions

1

When does the resource leak occur?

The leak occurs when the NDFC driver is removed, because the previous implementation mapped the register resource but did not call iounmap() during removal.

2

Does the change create a risk of conflicting memory-region reservations?

No. Supported board device trees define one NDFC node with a unique 0x2000 register region, while the EBC parent uses dcr-reg rather than a MEM resource. Separate chip-select instances also use distinct 64-bit physical addresses.

3

What component needs to be present for this issue to be relevant?

The issue is relevant to Linux kernel deployments using the MTD raw NAND NDFC driver. The described behavior specifically concerns that driver's register mapping and removal path.

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