CVE-2026-31589

Source
https://cve.org/CVERecord?id=CVE-2026-31589
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31589.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-31589
Downstream
Related
Published
2026-04-24T14:42:16.955Z
Modified
2026-06-18T03:55:08.951105558Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
mm: call ->free_folio() directly in folio_unmap_invalidate()
Details

In the Linux kernel, the following vulnerability has been resolved:

mm: call ->freefolio() directly in foliounmap_invalidate()

We can only call filemapfreefolio() 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 __removemapping() and load the freefolio function pointer before dropping the lock on the mapping. That lets us make filemapfreefolio() static as this was the only caller outside filemap.c.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31589.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fb7d3bc4149395c1ae99029c852eab6c28fc3c88
Fixed
efc52947247a21bbf79059539bbbd40f4ea76f00
Fixed
b667df39d98a7a24be7c2a40ff0863dac1ad2cd7
Fixed
c330e65ea59c4805d6ab6757c4ddfe8c63acef31
Fixed
615d9bb2ccad42f9e21d837431e401db2e471195

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31589.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.18.27
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.14
Type
ECOSYSTEM
Events
Introduced
6.20.0
Fixed
7.0.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31589.json"