CVE-2026-31589: mm: call ->free_folio() directly in folio_unmap_invalidate()

Published Apr 24, 2026
·
Updated

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

mm: call ->freefolio() directly in foliounmapinvalidate()

We can only call filemapfreefolio() if we have a reference to (or hold a lock on) the mapping. Otherwise, we've already removed the folio from the mapping so it no longer pins the mapping and the mapping can be removed, causing a use-after-free when accessing mapping->aops.

Follow the same pattern as removemapping() and load the freefolio function pointer before dropping the lock on the mapping. That lets us make filemapfreefolio() static as this was the only caller outside filemap.c.

Affected Software

4 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=6.14<6.19.14
Linux Linux kernel>=7.0<7.0.1
Microsoft azl3 kernel 6.6.130.1-3

Event History

Apr 24, 2026
CVE Published
via MITRE·02:42 PM
Data Sourced
via MITRE·02:42 PM
DescriptionSeverity
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 26, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:02 AM
Affected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-31589?

CVE-2026-31589 has a high severity due to its potential impact on memory management in the Linux kernel.

2

How do I fix CVE-2026-31589?

To fix CVE-2026-31589, ensure that your Linux kernel is updated to version 6.19.14 or later or alternatively to version 7.0.1 or later.

3

Which versions of the Linux kernel are affected by CVE-2026-31589?

CVE-2026-31589 affects Linux kernel versions between 6.14 and 6.19.14 as well as versions between 7.0 and 7.0.1.

4

What component is primarily affected by CVE-2026-31589?

CVE-2026-31589 primarily affects the memory management component of the Linux kernel.

5

Is CVE-2026-31589 a remote vulnerability?

CVE-2026-31589 is not categorized as a remote vulnerability but requires local privilege escalation to exploit.

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