{"id":24492,"date":"2026-09-16T20:32:23","date_gmt":"2026-09-16T12:32:23","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89805"},"modified":"2026-09-16T20:32:23","modified_gmt":"2026-09-16T12:32:23","slug":"cve-2026-89805","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89805","title":{"rendered":"CVE-2026-89805 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\ndrm\/pagemap: Fix foli"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>drm\/pagemap: Fix folio allocation fallback and use-after-put<\/p>\n<p>drm_pagemap_migrate_populate_ram_pfn() had two issues when populating<br \/>\nRAM PFNs with higher-order folios:<\/p>\n<p>1. The higher-order vma_alloc_folio()\/folio_alloc() calls did not pass<br \/>\n   __GFP_NOWARN, so a THP allocation failure under memory pressure<br \/>\n   would spam the kernel log, and there was no fallback path despite a<br \/>\n   TODO comment stating one was needed. Add __GFP_NOWARN to the<br \/>\n   higher-order allocation and, on failure, fall back to order-0<br \/>\n   allocations for the entire range originally covered by the failed<br \/>\n   higher-order allocation, leaving MIGRATE_PFN_COMPOUND unset for<br \/>\n   those PFNs.<\/p>\n<p>2. In the free_pages error path, order was computed via<br \/>\n   folio_order(page_folio(page)) *after* put_page(page) had already<br \/>\n   dropped the reference, resulting in a use-after-free\/put when that<br \/>\n   was the last reference on the page. Compute order before releasing<br \/>\n   the page.<\/p>\n<p>Introducing the fallback in 1. also requires the source page array<br \/>\nhanded to -&gt;copy_to_ram() to be built differently. Both callers only<br \/>\npopulated the entry at the head of each source folio, relying on the<br \/>\ncopy callback to derive the rest of the folio from the order recorded<br \/>\nin the matching drm_pagemap_addr. Once the destination has been demoted<br \/>\nto order-0 folios the drm_pagemap_addr entries are per-page, so a source<br \/>\npage is needed for every one of them; leaving them NULL makes the copy<br \/>\ncallback stop after the first page and the remainder of the range is<br \/>\nnever copied.<\/p>\n<p>The source folio is only split later, by migrate_vma_pages() \/<br \/>\nmigrate_device_pages(), so its order cannot be used to detect the<br \/>\ndemotion &#8211; test the destination for MIGRATE_PFN_COMPOUND instead. Factor<br \/>\nthe array population out into drm_pagemap_migrate_populate_src_pages()<br \/>\nand use it from both drm_pagemap_evict_to_ram() and<br \/>\n__drm_pagemap_migrate_to_ram().<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>drm\/pagemap: Fix folio allocation fallback and use-after-put<\/p>\n<p>drm_pagemap_migrate_populate_ram_pfn() had two issues when populating<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-24492","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/24492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}