CVE-2026-89805
published high CVSS 3.1 · 7.8drm/pagemap: Fix folio allocation fallback and use-after-put
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxddeda6136038b4b313bb6f9b44f2d363e1233814 to < 10e92e18e3dab081789d868878f2ecce6166948a · ddeda6136038b4b313bb6f9b44f2d363e1233814 to < df72e55e754c8d449321ddddad19a8bd3cb8d032 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.18 (affected) · 0 to < 6.18 (unaffected · semver) · 7.2.5 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.2.7-1.1 | OPENSUSE-SU-2026:11880-1 |
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().
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The UAF is in drm_pagemap_migrate_populate_ram_pfn on the migrate-to-RAM path, reached from a local CPU fault on device-private SVM pages (do_swap_page → drm_pagemap_migrate_to_ram) or Xe TTM eviction (xe_svm_bo_evict → drm_pagemap_evict_to_ram), not from network packets. AC:L - The attacker controls SVM setup and can force the free_pages path by failing a later GFP_HIGHUSER/THP allocation under self-induced memory pressure or fragmentation after earlier folios succeeded; the use-after-put then runs deterministically with no victim timing. PR:L - DRM_IOCTL_XE_VM_CREATE and VM_BIND are DRM_RENDER_ALLOW with no capable() or DRM-master check. An unprivileged user with typical render/video-group access to /dev/dri/renderD* on an Intel Xe discrete GPU can create a fault-mode SVM VM and trigger migration. UI:N - The attacking process drives mmap, SVM bind/prefetch to VRAM, migrate-back via CPU access or VRAM eviction, and memory pressure itself; no separate victim action is required. S:U - The UAF corrupts host kernel page-allocator metadata in the same security authority. This is standard local kernel privilege escalation, not a KVM/Xen guest-to-host escape or IOMMU/DMA boundary bypass. C:H - put_page() drops the last reference on the just-allocated folio, then folio_order(page_folio(page)) reads the freed page struct and may follow stale compound_info tail encoding, yielding an arbitrary kernel read of vmemmap/page flags. I:H - The same use-after-put lets reused or stale page flags supply an attacker-influenced order that skips remaining puts or corrupts the free loop, and a page-struct UAF is exploitable via buddy reuse for arbitrary kernel writes or control-flow hijack. A:H - Accessing a freed or reused page struct can oops or panic, and a corrupted order that makes NR_PAGES() return 0 hangs in an infinite free_pages loop; any kernel UAF is high availability impact.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ddeda6136038b4b313bb6f9b44f2d363e1233814 to < 10e92e18e3dab081789d868878f2ecce6166948a (affected · git)ddeda6136038b4b313bb6f9b44f2d363e1233814 to < df72e55e754c8d449321ddddad19a8bd3cb8d032 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.18 (affected)0 to < 6.18 (unaffected · semver)7.2.5 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
drm/pagemap: Fix folio allocation fallback and use-after-put
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 778ee48ad28d66b1258eb36a61d021d43c809c4b17f718c336bf31e24b52b788
- Ingested
- 19 Oct 2026, 08:57:57 UTC
- Source record
- Official CVE record