{"id":"CVE-2026-89808","state":"PUBLISHED","title":"drm/amdkfd: Fix the case that vm range is hole at svm_migrate_copy_to_vram","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix the case that vm range is hole at svm_migrate_copy_to_vram\n\nWhen migration vm range is hole at cpu side(MIGRATE_PFN_MIGRATE set +\nMIGRATE_PFN_VALID unset) driver still allocates device pages. There is no\ndma map of src pages and migration. j is 0 and svm_migrate_copy_memory_gart()\nwill return an uninitialized r. That can trigger out_free_vram_pages to drop\nall VRAM just set up.\n\nInitialize r and only call the last svm_migrate_copy_memory_gart if j > 0.\n\nCurrent code postponed the last page to the final copy. This patch flushes on\nthe last page when reach to the end of current drm_buddy_block; avoids another\nsvm_migrate_copy_memory_gart.","publishedAt":"2026-09-16T10:30:41.508Z","updatedAt":"2026-10-30T12:33:06.729Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"d5872c81c70163a3ba9eb4da9a94c92b03067576","versionType":"git"},{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"6e1a6f3ddb87d7f89a775c55fb399680c02bdcc2","versionType":"git"},{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"bd1adb2e5101db649121b59e601c92773a302a70","versionType":"git"},{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"ae806a95b28fcecb913430cfa45a252e91a945d6","versionType":"git"},{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"0a9a0e8a97da70a0336c9115178aaf1be29bcfb1","versionType":"git"},{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"520e345ffe05aabef1db82beda4288afb1757ff2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_migrate.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_migrate.c"]}],"references":["https://git.kernel.org/stable/c/d5872c81c70163a3ba9eb4da9a94c92b03067576","https://git.kernel.org/stable/c/6e1a6f3ddb87d7f89a775c55fb399680c02bdcc2","https://git.kernel.org/stable/c/bd1adb2e5101db649121b59e601c92773a302a70","https://git.kernel.org/stable/c/ae806a95b28fcecb913430cfa45a252e91a945d6","https://git.kernel.org/stable/c/0a9a0e8a97da70a0336c9115178aaf1be29bcfb1","https://git.kernel.org/stable/c/520e345ffe05aabef1db82beda4288afb1757ff2"],"weaknesses":[],"ingestedAt":"2026-10-30T12:52:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89808.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89808","state":"PUBLISHED","datePublished":"2026-09-16T10:30:41.508Z","dateUpdated":"2026-10-30T12:33:06.729Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.767Z"},"containers":{"cna":{"title":"drm/amdkfd: Fix the case that vm range is hole at svm_migrate_copy_to_vram","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix the case that vm range is hole at svm_migrate_copy_to_vram\n\nWhen migration vm range is hole at cpu side(MIGRATE_PFN_MIGRATE set +\nMIGRATE_PFN_VALID unset) driver still allocates device pages. There is no\ndma map of src pages and migration. j is 0 and svm_migrate_copy_memory_gart()\nwill return an uninitialized r. That can trigger out_free_vram_pages to drop\nall VRAM just set up.\n\nInitialize r and only call the last svm_migrate_copy_memory_gart if j > 0.\n\nCurrent code postponed the last page to the final copy. This patch flushes on\nthe last page when reach to the end of current drm_buddy_block; avoids another\nsvm_migrate_copy_memory_gart."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"d5872c81c70163a3ba9eb4da9a94c92b03067576","versionType":"git"},{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"6e1a6f3ddb87d7f89a775c55fb399680c02bdcc2","versionType":"git"},{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"bd1adb2e5101db649121b59e601c92773a302a70","versionType":"git"},{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"ae806a95b28fcecb913430cfa45a252e91a945d6","versionType":"git"},{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"0a9a0e8a97da70a0336c9115178aaf1be29bcfb1","versionType":"git"},{"version":"50ea50cf6f6d31d3235ad1853c5dbea766a3ed11","status":"affected","lessThan":"520e345ffe05aabef1db82beda4288afb1757ff2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_migrate.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_migrate.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d5872c81c70163a3ba9eb4da9a94c92b03067576"},{"url":"https://git.kernel.org/stable/c/6e1a6f3ddb87d7f89a775c55fb399680c02bdcc2"},{"url":"https://git.kernel.org/stable/c/bd1adb2e5101db649121b59e601c92773a302a70"},{"url":"https://git.kernel.org/stable/c/ae806a95b28fcecb913430cfa45a252e91a945d6"},{"url":"https://git.kernel.org/stable/c/0a9a0e8a97da70a0336c9115178aaf1be29bcfb1"},{"url":"https://git.kernel.org/stable/c/520e345ffe05aabef1db82beda4288afb1757ff2"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached only via local /dev/kfd AMDKFD_IOC_SVM (SET_ATTR prefetch) or the process's own GPU page-fault SVM restore into svm_migrate_copy_to_vram; it is not reachable from network packets, adjacent wireless, or a physical bus.\nAC:L - An attacker creates anonymous VMA holes (untouched mmap or zero pages) and triggers migration with AMDKFD_IOC_SVM PREFETCH_LOC; migrate_vma records MIGRATE_PFN_MIGRATE without VALID so j stays 0 and the uninitialized-r path runs with no race, victim state, or rare config (HSA_AMD_SVM defaults y).\nPR:L - kfd_open() and AMDKFD_IOC_SVM perform no capable() checks (ioctl flag 0, unlike CRIU); /dev/kfd and the DRM render node are available to unprivileged render-group users on typical ROCm, desktop, and Android AMD GPU systems, which is Low privilege not init-namespace root.\nUI:N - Exploitation uses only the attacker's own /dev/kfd file descriptor, anonymous mappings, and SVM ioctls; no separate victim must mount a filesystem, open a file, or take any other action.\nS:U - Impact is confined to amdkfd SVM/GPUVM state and ZONE_DEVICE pages in the host kernel; it does not cross a VM, hypervisor, IOMMU device-isolation, or sandbox security authority.\nC:H - Spurious out_free_vram_pages unlocks and puts destination ZONE_DEVICE pages (page_free → svm_range_bo_unref_async) while SDMA may still copy into that VRAM and a non-zero leftover r can still mark the range GPU-resident; that device-page UAF enables kernel/VRAM disclosure.\nI:H - The same premature free of migrate destination pages, while actual_loc/vram_pages may still record a successful GPU migration, lets later HMM/GPUVM/SDMA operate on put ZONE_DEVICE pages and svm_bo refs, a kernel UAF write/control-flow primitive scored High per UAF guidance.\nA:H - Putting still-in-use ZONE_DEVICE pages and leaving SVM actual_loc/vram_pages inconsistent reliably causes kernel oops/WARN (bad page lock, folio_put on freed pages, VRAM BO validation) or GPU hang/reset, which is High availability impact."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:33:06.729Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.51"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.2.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}