Kernel Kit / Infix / v26.10.0latest
CVE-2026-89805
7.8highlinux6.18.60 · 6.18.54 · 6.18.8in 3 of 4 releases
Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach linux · 6 builds in 3 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
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_NOWARNto 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, leavingMIGRATE_PFN_COMPOUNDunset for those PFNs.
- 2.In the
free_pageserror path, order was computed viafolio_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().
Published 2026-09-16NVD
CVSS 3.1Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Build check · v26.10.0 x86_64
None of the source files the CNA lists for CVE-2026-89805 (drivers/gpu/drm/drm_pagemap.c) produced an object file in linux-6.18.60, so the affected code is not compiled into this kernel configuration.
Evidence 1
object file absent: not compiled
output/build/linux-6.18.60/drivers/gpu/drm/drm_pagemap.o
Members of Kernel Kit decide. Sign in if you are one.