CVE-2026-31589

published 24 Apr 2026 · updated 14 Nov 2026

mm: call ->free_folio() directly in folio_unmap_invalidate()

9.8CriticalCVSS 9.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel efc52947247a21bbf79059539bbbd40f4ea76f00, Kernel 7.0.1, Kernel b667df39d98a7a24be7c2a40ff0863dac1ad2cd7 and 4 more.

In the Linux kernel, the following vulnerability has been resolved: mm: call ->free_folio() directly in folio_unmap_invalidate() We can only call filemap_free_folio() 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->a_ops. Follow the same pattern as __remove_mapping() and load the free_folio function pointer before dropping the lock on the mapping. That lets us make filemap_free_folio() static as this was the only caller outside filemap.c.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=fb7d3bc4149395c1ae99029c852eab6c28fc3c88 <efc52947247a21bbf79059539bbbd40f4ea76f00, >=7.0 <7.0.1, >=fb7d3bc4149395c1ae99029c852eab6c28fc3c88 <b667df39d98a7a24be7c2a40ff0863dac1ad2cd7, >=fb7d3bc4149395c1ae99029c852eab6c28fc3c88 <c330e65ea59c4805d6ab6757c4ddfe8c63acef31, >=6.14 <6.19.14, =6.14, >=fb7d3bc4149395c1ae99029c852eab6c28fc3c88 <615d9bb2ccad42f9e21d837431e401db2e471195efc52947247a21bbf79059539bbbd40f4ea76f00, 7.0.1, b667df39d98a7a24be7c2a40ff0863dac1ad2cd7, c330e65ea59c4805d6ab6757c4ddfe8c63acef31, 6.19.14, 615d9bb2ccad42f9e21d837431e401db2e471195
linux-kernel: Kernel>=6.14.0 <6.18.27, >=6.19.0 <6.19.14, >=6.20.0 <7.0.16.18.27, 6.19.14, 7.0.1

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-31589 severity on Zeptric[![CVE-2026-31589](https://zeptric.io/badge/cve/CVE-2026-31589.svg)](https://zeptric.io/cve/CVE-2026-31589)