VDB

CVE-2026-31589

CVE-2026-31589 PUBLISHED CVSS 9.8 CRITICAL

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

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.46%
40.8th percentile

Affected products

VendorProductVersions
LinuxLinuxfb7d3bc4149395c1ae99029c852eab6c28fc3c88, fb7d3bc4149395c1ae99029c852eab6c28fc3c88, fb7d3bc4149395c1ae99029c852eab6c28fc3c88
LinuxLinux6.14, 0, 6.18.27
chainguardlinux-qemu-melange*
chainguardlinux-qemu-6.18*
amazon:2023kernel6.18-devel0
linuxlinux_kernel6.14, 6.14, 6.14
LinuxLinux*, 7.1, *
amazon:2023kernel6.18-modules-extra-common0
chainguardlinux-azure-6.18*
amazon:2023kernel6.18-tools0
chainguardlinux-gcp-6.18*
amazon:2023kernel6.180
amazon:2023python3-perf6.180
amazon:2023kernel6.18-tools-devel0
amazon:2023bpftool6.180
amazon:2023kernel-livepatch-6.18.30-61.1160
amazon:2023perf6.180
chainguardlinux-aws-6.180
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-headers0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›