CVE-2026-89805
drm/pagemap: Fix folio allocation fallback and use-after-put
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= ddeda6136038b4b313bb6f9b44f2d363e1233814, < 10e92e18e3dab081789d868878f2ecce6166948a; >= ddeda6136038b4b313bb6f9b44f2d363e1233814, < df72e55e754c8d449321ddddad19a8bd3cb8d032
- Anyone running Linux 6.18
Vulnerability facts
- Affected
- Linux >= ddeda6136038b4b313bb6f9b44f2d363e1233814, < 10e92e18e3dab081789d868878f2ecce6166948a; >= ddeda6136038b4b313bb6f9b44f2d363e1233814, < df72e55e754c8d449321ddddad19a8bd3cb8d032; Linux 6.18
- Fixed in
- Linux 10e92e18e3dab081789d868878f2ecce6166948a
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.17% chance of exploitation in 30 days (percentile 3, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: drm/pagemap: Fix folio allocation fallback and use-after-put drm_pagemap_migrate_populate_ram_pfn() had two issues when populating RAM PFNs with higher-order folios: 1. The higher-order vma_alloc_folio()/folio_alloc() calls did not pass __GFP_NOWARN, so a THP allocation failure under memory pressure would spam the kernel log, and there was no fallback path despite a TODO comment stating one was needed. Add __GFP_NOWARN to the higher-order allocation and, on failure, fall back to order-0 allocations for the entire range originally covered by the failed higher-order allocation, leaving MIGRATE_PFN_COMPOUND unset for those PFNs. 2. In the free_pages error path, order was computed via folio_order(page_folio(page)) *after* put_page(page) had already dropped the reference, resulting in a use-after-free/put when that was the last reference on the page. Compute order before releasing the page. Introducing the fallback in 1. also requires the source page array handed to ->copy_to_ram() to be built differently. Both callers only populated the entry at the head of each source folio, relying on the copy callback to derive the rest of the folio from the order recorded in the matching drm_pagemap_addr. Once the destination has been demoted to order-0 folios the drm_pagemap_addr entries are per-page, so a source page is needed for every one of them; leaving them NULL makes the copy callback stop after the first page and the remainder of the range is never copied. The source folio is only split later, by migrate_vma_pages() / migrate_device_pages(), so its order cannot be used to detect the demotion - test the destination for MIGRATE_PFN_COMPOUND instead. Factor the array population out into drm_pagemap_migrate_populate_src_pages() and use it from both drm_pagemap_evict_to_ram() and __drm_pagemap_migrate_to_ram().
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-89805. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-89805.md Affected: Linux >= ddeda6136038b4b313bb6f9b44f2d363e1233814, < 10e92e18e3dab081789d868878f2ecce6166948a; >= ddeda6136038b4b313bb6f9b44f2d363e1233814, < df72e55e754c8d449321ddddad19a8bd3cb8d032; Linux 6.18 Fixed in: Linux 10e92e18e3dab081789d868878f2ecce6166948a Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-89805 being exploited?
There is no confirmed exploitation: CVE-2026-89805 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-89805?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-89805?
Linux >= ddeda6136038b4b313bb6f9b44f2d363e1233814, < 10e92e18e3dab081789d868878f2ecce6166948a; >= ddeda6136038b4b313bb6f9b44f2d363e1233814, < df72e55e754c8d449321ddddad19a8bd3cb8d032; Linux 6.18.
Is there a fix for CVE-2026-89805?
Yes. Fixed in Linux 10e92e18e3dab081789d868878f2ecce6166948a. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-89805?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.