CVE-2026-31589: mm: call ->free_folio() directly in folio_unmap_invalidate()
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.
Security readout for executives and security teams
Plain-English summary
A Linux kernel memory-lifecycle error can access a filesystem mapping after it has been freed. This use-after-free could crash a system or compromise confidentiality, integrity, and availability. The supplied record rates it critical, but does not establish that every affected system is remotely reachable or practically exploitable.
Executive priority
Treat as an urgent kernel patching and applicability-assessment item because the record is critical and describes use-after-free memory corruption. Avoid declaring an active emergency solely from the CVSS score: exploitation evidence and real-world reachability are not established in the supplied material.
Technical view
folio_unmap_invalidate() could remove a folio, release the mapping lock, and later access mapping->a_ops after the mapping was freed. The fix captures the free_folio function pointer while the mapping remains protected, following __remove_mapping(). Four Linux stable commit references are supplied.
Likely exposure
Potential exposure is limited to Linux kernels covered by the affected-version record and lacking the relevant stable fix. The supplied version data includes ambiguous entries, including โ0,โ and does not provide clear ranges. Distribution backports mean kernel version strings alone may be insufficient.
Exploitation context
The supplied CVSS vector describes network-accessible, low-complexity, unauthenticated exploitation without user interaction. However, the sources provided do not explain a remotely reachable trigger or practical attack prerequisites. The KEV flag is false, and no supplied source reports active exploitation or public weaponization.
Researcher notes
The central race is loss of mapping lifetime protection before dereferencing mapping->a_ops. Researchers should examine folio_unmap_invalidate() reachability, filesystem-specific free_folio implementations, concurrency requirements, and distribution backports. The affected-version metadata is insufficiently precise for reliable range conclusions, and the CVSS network vector is not substantiated by trigger details here.
Mitigation direction
Install a vendor-supported kernel update containing the applicable referenced stable fix.
Confirm distribution backports using package advisories or changelogs, not version strings alone.
Prioritize externally exposed and high-value Linux systems while vendor applicability is assessed.
Consult Linux distribution guidance because no temporary workaround is identified in the supplied sources.
Validation and detection
Inventory running kernels and map them against vendor advisories for CVE-2026-31589.
Verify the installed kernel contains an applicable referenced fix or documented vendor backport.
After updating, confirm systems booted into the remediated kernel rather than an older installed kernel.
Review kernel diagnostics for crashes or memory-corruption warnings, while recognizing absence does not prove safety.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve ยท low confidence lookup
CVE-2026-31589 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
5Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.