CVE-2026-31589
mm: call ->free_folio() directly in folio_unmap_invalidate()
Reported by linux · Published April 24, 2026
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.
EPSS 0.46% · 40.8th percentile
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | fb7d3bc4149395c1ae99029c852eab6c28fc3c88, fb7d3bc4149395c1ae99029c852eab6c28fc3c88, fb7d3bc4149395c1ae99029c852eab6c28fc3c88 |
| Linux | Linux | 6.14, 0, 6.18.27 |
| chainguard | linux-qemu-melange | * |
| chainguard | linux-qemu-6.18 | * |
| amazon:2023 | kernel6.18-devel | 0 |
| linux | linux_kernel | 6.14, 6.14, 6.14 |
| Linux | Linux | *, 7.1, * |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| chainguard | linux-azure-6.18 | * |
| amazon:2023 | kernel6.18-tools | 0 |
| chainguard | linux-gcp-6.18 | * |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.18.30-61.116 | 0 |
| amazon:2023 | perf6.18 | 0 |
| chainguard | linux-aws-6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
…and 1 more
Timeline
- Apr 24, 2026 CVE Published
- Apr 24, 2026 Security Advisory (102 in total, the first dated here)
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Jul 18, 2026 Coalition ESS Score
- Aug 5, 2026 CVE Updated
- Aug 11, 2026 Distribution Patch (97 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-31589
vulnetix vdb fixes CVE-2026-31589
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-31589/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart