CVE-2026-31589: mm: call ->free_folio() directly in folio_unmap_invalidate()
Vulnerability summary
CVE-2026-31589 is a critical (CVSS 9.8) Use After Free vulnerability in linux. EPSS estimates a 0.44% chance of exploitation in the next 30 days, higher than 38.6% of scored vulnerabilities.
Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 10Timeline
- 24-04-2026PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.44%
Chance of exploitation in the next 30 days
Percentile
39%
Versus all other CVEs
30-day change
Decrease -0.21 pp
From 0.65% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu110 products
- linuxAll versions (No fix recorded) | < 7.0.0-27.27
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 7.0.0-1008.8
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Chainguard21 products
- linux-aws-6.18< 6.18.31-r0
- linux-azure-6.18All versions (No fix recorded)
- linux-desktop-6.18All versions (No fix recorded)
- linux-desktop-6.18-bootcAll versions (No fix recorded)
- linux-desktop-6.18-bootc-boot-installedAll versions (No fix recorded)
Linux2 products
- linux≥ fb7d3bc4149395c1ae99029c852eab6c28fc3c88, < efc52947247a21bbf79059539bbbd40f4ea76f00 | ≥ fb7d3bc4149395c1ae99029c852eab6c28fc3c88, < b667df39d98a7a24be7c2a40ff0863dac1ad2cd7 | ≥ fb7d3bc4149395c1ae99029c852eab6c28fc3c88, < c330e65ea59c4805d6ab6757c4ddfe8c63acef31 | ≥ fb7d3bc4149395c1ae99029c852eab6c28fc3c88, < 615d9bb2ccad42f9e21d837431e401db2e471195 | 6.14
- linux_kernel≥ 6.14, < 6.19.14 | ≥ 7.0, < 7.0.1
Debian1 product
- linux< 6.19.14-1
4 vendors · 134 products