CVE-2026-99868: drm/amdkfd: split vram_pages of SVM ranges prefetched without a GPU mapping

Published Nov 30, 2026
·
Updated

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

drm/amdkfd: split vrampages of SVM ranges prefetched without a GPU mapping

When an SVM range is split, svmrangesplitpages() gives the new range the number of VRAM pages counted in its part of the dmaaddr arrays and subtracts it from the old range. Pages migrated to VRAM by a prefetch have no dmaaddr entries until the range is mapped on a GPU, e.g. with no ACCESS attribute, or with XNACK off before the delayed restore worker mapped it, so the new range gets 0 and the old one keeps the count for both.

Migrating the parts back to system memory then gets the accounting wrong: the old part keeps a VRAM page count after all its pages are gone, so its svmbo is never freed, and the new part underflows. On navi31, as an unprivileged process: prefetch 4 MiB to the GPU, prefetch the upper 2 MiB and then the lower 2 MiB back to system memory:

Recorded vram pages(0x0) should not be less than migration pages(0x200). WARNING: ../amdkfd/kfdmigrate.c:922 at svmmigratevramtoram+0xbdc/0xcd0 [amdgpu]

and /sys/class/kfd/kfd/proc/<pid>/vram<gpuid> stays at 4194304 until the process exits.

Without dmaaddr arrays, the split is still exact when the old range is completely in VRAM, which is what a prefetch of the whole range leaves. Give the new range all its pages in that case. The warning is gone and the VRAM usage drops back to 0.

This doesn't cover a range that is only partly in VRAM without dmaaddr arrays, e.g. after a partial migration, since svmmigrateramtovram() only counts the pages it actually migrated. That would need VRAM residency to be tracked per page independently of dmaaddr.

v2: - Rename counted to hasdmaaddr and compare against old->npages (Philip) - Mention the XNACK off case and the partial migration limitation (Philip)

(cherry picked from commit 7ca6f3359b557a267c7b07a2fd748b1473395e10)

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 7ca6f3359b557a267c7b07a2fd748b1473395e10

Event History

Nov 30, 2026
CVE Published
via MITRE·01:17 PM
Data Sourced
via MITRE·01:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203