CVE-2026-31589
Last modified
CVE-2026-31589 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.44% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.14, < 6.19.14 |
| Linux | Linux Kernel | >= 7.0, < 7.0.1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-31589?
How severe is CVE-2026-31589?
How do I fix CVE-2026-31589?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-31583In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-31584In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-31585In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31586In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-31587In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-31588In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2026-31590In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31591In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31592In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31593In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31594In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31595In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2026-31589?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
