{"api_version":"1","generated_at":"2026-11-30T18:38:05+00:00","cve":"CVE-2026-99981","urls":{"html":"https://cve.report/CVE-2026-99981","api":"https://cve.report/api/cve/CVE-2026-99981.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99981","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99981"},"summary":{"title":"drm/amdgpu: wait for pending page table updates before switching a VM to CPU updates","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: wait for pending page table updates before switching a VM to CPU updates\n\namdgpu_vm_make_compute() switches a VM from SDMA to CPU page table\nupdates when a KFD process acquires it. It syncs \"with the last SDMA\nupdate/clear\" through amdgpu_bo_sync_wait() on the root PD, but that\nwalks the reservation with DMA_RESV_USAGE_READ, and the clears of the\nVM's page tables (the root PD from amdgpu_vm_init(), and the PDs/PTs\nthe seq64 mapping allocates at the render node's open) are added there\nby amdgpu_vm_sdma_commit() with DMA_RESV_USAGE_BOOKKEEP only:\namdgpu_vm_pt_clear() commits them with a NULL fence, so they do not\nreach vm->last_update. The CPU path's own waits (amdgpu_vm_cpu_update(),\namdgpu_bo_kmap()) use DMA_RESV_USAGE_KERNEL. None of them waits for a\nclear that is still queued.\n\nWhen one is, the CPU writes the first entries of the new compute VM (the\nKFD trap handler's TBA/TMA page at AMDGPU_VA_RESERVED_TRAP_START, mapped\nduring ACQUIRE_VM) into a page directory the SDMA then clears. The\nentries are gone, the handler's page is unmapped, and the first wave\nsave of any queue of the process faults in the SQC instruction fetch at\nthe handler's address (GCVM_L2_PROTECTION_FAULT_STATUS 0x008012B1,\nPERMISSION_FAULTS 0xb). The MES then fails REMOVE_QUEUE and SUSPEND, and\nthe device takes a MODE1 reset with VRAM lost on 7.2.9; on 7.3-rc6 the\nqueue is reset instead.\n\nThe window is the time between the render node's open and ACQUIRE_VM.\nROCr spends milliseconds there and is practically never hit; a minimal\nKFD client that opens the render node and acquires the VM at once is hit\nmost of the time. On a Radeon AI PRO R9700 (gfx1201, Resizable BAR, so\nvm_update_mode defaults to CPU updates for compute VMs), a wave reading\nthe trap handler's page right after queue creation found it unmapped in\n8 of 12 runs; a 5 ms sleep between the open and ACQUIRE_VM made that 0\nof 9, and the same sleep after queue creation instead 3 of 3.\n\nThe wait covered these jobs until commit 926c79ad6ecd (\"drm/amdgpu:\npromote the implicit sync to the dependent read fences\") narrowed\namdgpu_sync_resv() from DMA_RESV_USAGE_BOOKKEEP to DMA_RESV_USAGE_READ;\nthe VM's page table jobs have been added with BOOKKEEP since commit\n4247084057cf (\"drm/amdgpu: use DMA_RESV_USAGE_BOOKKEEP v2\"), so from\nv6.16 on the sync in amdgpu_vm_make_compute() waits for nothing of\nthem.\n\nRecord the clears in vm->last_update, as amdgpu_vm_update_pdes() does\nwith its updates, and wait for it, uninterruptibly, before switching the\nupdate functions. The clears all go through vm->delayed, so the last one\ncovers the earlier ones; immediate clears are not recorded, as before.\n\nWith this, on 7.3-rc6 and on 7.2.9, the same client reads the handler\n10 of 10 times, 8 busy queues on the 4 compute slots complete in 5 of 5\nruns on 7.3-rc6 and 3 of 3 on 7.2.9 (1 of 6 before), 16 and 32 queues\ncomplete on 7.3-rc6, and two processes with 8 queues each complete\ntogether on both, with no fault.\n\n(cherry picked from commit 9ec91b35baba45209c3fcd00f086224a158dd512)","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:41","updated_at":"2026-11-30 14:20:41"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/eb8cfa911806bd379949271335ef8246f89d330f","name":"https://git.kernel.org/stable/c/eb8cfa911806bd379949271335ef8246f89d330f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2368f9aed09cbabb5a8980c2fbc78bde98e170e9","name":"https://git.kernel.org/stable/c/2368f9aed09cbabb5a8980c2fbc78bde98e170e9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/53d9ef2f518add783bb48a69d77bbc8aea99e911","name":"https://git.kernel.org/stable/c/53d9ef2f518add783bb48a69d77bbc8aea99e911","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99981","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99981","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 926c79ad6ecde21e7e2d7415f873d57c364611f1 2368f9aed09cbabb5a8980c2fbc78bde98e170e9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 926c79ad6ecde21e7e2d7415f873d57c364611f1 eb8cfa911806bd379949271335ef8246f89d330f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 926c79ad6ecde21e7e2d7415f873d57c364611f1 53d9ef2f518add783bb48a69d77bbc8aea99e911 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c","drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"2368f9aed09cbabb5a8980c2fbc78bde98e170e9","status":"affected","version":"926c79ad6ecde21e7e2d7415f873d57c364611f1","versionType":"git"},{"lessThan":"eb8cfa911806bd379949271335ef8246f89d330f","status":"affected","version":"926c79ad6ecde21e7e2d7415f873d57c364611f1","versionType":"git"},{"lessThan":"53d9ef2f518add783bb48a69d77bbc8aea99e911","status":"affected","version":"926c79ad6ecde21e7e2d7415f873d57c364611f1","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c","drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.16"},{"lessThan":"6.16","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.16","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: wait for pending page table updates before switching a VM to CPU updates\n\namdgpu_vm_make_compute() switches a VM from SDMA to CPU page table\nupdates when a KFD process acquires it. It syncs \"with the last SDMA\nupdate/clear\" through amdgpu_bo_sync_wait() on the root PD, but that\nwalks the reservation with DMA_RESV_USAGE_READ, and the clears of the\nVM's page tables (the root PD from amdgpu_vm_init(), and the PDs/PTs\nthe seq64 mapping allocates at the render node's open) are added there\nby amdgpu_vm_sdma_commit() with DMA_RESV_USAGE_BOOKKEEP only:\namdgpu_vm_pt_clear() commits them with a NULL fence, so they do not\nreach vm->last_update. The CPU path's own waits (amdgpu_vm_cpu_update(),\namdgpu_bo_kmap()) use DMA_RESV_USAGE_KERNEL. None of them waits for a\nclear that is still queued.\n\nWhen one is, the CPU writes the first entries of the new compute VM (the\nKFD trap handler's TBA/TMA page at AMDGPU_VA_RESERVED_TRAP_START, mapped\nduring ACQUIRE_VM) into a page directory the SDMA then clears. The\nentries are gone, the handler's page is unmapped, and the first wave\nsave of any queue of the process faults in the SQC instruction fetch at\nthe handler's address (GCVM_L2_PROTECTION_FAULT_STATUS 0x008012B1,\nPERMISSION_FAULTS 0xb). The MES then fails REMOVE_QUEUE and SUSPEND, and\nthe device takes a MODE1 reset with VRAM lost on 7.2.9; on 7.3-rc6 the\nqueue is reset instead.\n\nThe window is the time between the render node's open and ACQUIRE_VM.\nROCr spends milliseconds there and is practically never hit; a minimal\nKFD client that opens the render node and acquires the VM at once is hit\nmost of the time. On a Radeon AI PRO R9700 (gfx1201, Resizable BAR, so\nvm_update_mode defaults to CPU updates for compute VMs), a wave reading\nthe trap handler's page right after queue creation found it unmapped in\n8 of 12 runs; a 5 ms sleep between the open and ACQUIRE_VM made that 0\nof 9, and the same sleep after queue creation instead 3 of 3.\n\nThe wait covered these jobs until commit 926c79ad6ecd (\"drm/amdgpu:\npromote the implicit sync to the dependent read fences\") narrowed\namdgpu_sync_resv() from DMA_RESV_USAGE_BOOKKEEP to DMA_RESV_USAGE_READ;\nthe VM's page table jobs have been added with BOOKKEEP since commit\n4247084057cf (\"drm/amdgpu: use DMA_RESV_USAGE_BOOKKEEP v2\"), so from\nv6.16 on the sync in amdgpu_vm_make_compute() waits for nothing of\nthem.\n\nRecord the clears in vm->last_update, as amdgpu_vm_update_pdes() does\nwith its updates, and wait for it, uninterruptibly, before switching the\nupdate functions. The clears all go through vm->delayed, so the last one\ncovers the earlier ones; immediate clears are not recorded, as before.\n\nWith this, on 7.3-rc6 and on 7.2.9, the same client reads the handler\n10 of 10 times, 8 busy queues on the 4 compute slots complete in 5 of 5\nruns on 7.3-rc6 and 3 of 3 on 7.2.9 (1 of 6 before), 16 and 32 queues\ncomplete on 7.3-rc6, and two processes with 8 queues each complete\ntogether on both, with no fault.\n\n(cherry picked from commit 9ec91b35baba45209c3fcd00f086224a158dd512)"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:18:51.265Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/2368f9aed09cbabb5a8980c2fbc78bde98e170e9"},{"url":"https://git.kernel.org/stable/c/eb8cfa911806bd379949271335ef8246f89d330f"},{"url":"https://git.kernel.org/stable/c/53d9ef2f518add783bb48a69d77bbc8aea99e911"}],"title":"drm/amdgpu: wait for pending page table updates before switching a VM to CPU updates","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99981","datePublished":"2026-11-30T13:18:51.265Z","dateReserved":"2026-09-25T10:25:14.450Z","dateUpdated":"2026-11-30T13:18:51.265Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:41","lastModifiedDate":"2026-11-30 14:20:41","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99981","Ordinal":"1","Title":"drm/amdgpu: wait for pending page table updates before switching","CVE":"CVE-2026-99981","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99981","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: wait for pending page table updates before switching a VM to CPU updates\n\namdgpu_vm_make_compute() switches a VM from SDMA to CPU page table\nupdates when a KFD process acquires it. It syncs \"with the last SDMA\nupdate/clear\" through amdgpu_bo_sync_wait() on the root PD, but that\nwalks the reservation with DMA_RESV_USAGE_READ, and the clears of the\nVM's page tables (the root PD from amdgpu_vm_init(), and the PDs/PTs\nthe seq64 mapping allocates at the render node's open) are added there\nby amdgpu_vm_sdma_commit() with DMA_RESV_USAGE_BOOKKEEP only:\namdgpu_vm_pt_clear() commits them with a NULL fence, so they do not\nreach vm->last_update. The CPU path's own waits (amdgpu_vm_cpu_update(),\namdgpu_bo_kmap()) use DMA_RESV_USAGE_KERNEL. None of them waits for a\nclear that is still queued.\n\nWhen one is, the CPU writes the first entries of the new compute VM (the\nKFD trap handler's TBA/TMA page at AMDGPU_VA_RESERVED_TRAP_START, mapped\nduring ACQUIRE_VM) into a page directory the SDMA then clears. The\nentries are gone, the handler's page is unmapped, and the first wave\nsave of any queue of the process faults in the SQC instruction fetch at\nthe handler's address (GCVM_L2_PROTECTION_FAULT_STATUS 0x008012B1,\nPERMISSION_FAULTS 0xb). The MES then fails REMOVE_QUEUE and SUSPEND, and\nthe device takes a MODE1 reset with VRAM lost on 7.2.9; on 7.3-rc6 the\nqueue is reset instead.\n\nThe window is the time between the render node's open and ACQUIRE_VM.\nROCr spends milliseconds there and is practically never hit; a minimal\nKFD client that opens the render node and acquires the VM at once is hit\nmost of the time. On a Radeon AI PRO R9700 (gfx1201, Resizable BAR, so\nvm_update_mode defaults to CPU updates for compute VMs), a wave reading\nthe trap handler's page right after queue creation found it unmapped in\n8 of 12 runs; a 5 ms sleep between the open and ACQUIRE_VM made that 0\nof 9, and the same sleep after queue creation instead 3 of 3.\n\nThe wait covered these jobs until commit 926c79ad6ecd (\"drm/amdgpu:\npromote the implicit sync to the dependent read fences\") narrowed\namdgpu_sync_resv() from DMA_RESV_USAGE_BOOKKEEP to DMA_RESV_USAGE_READ;\nthe VM's page table jobs have been added with BOOKKEEP since commit\n4247084057cf (\"drm/amdgpu: use DMA_RESV_USAGE_BOOKKEEP v2\"), so from\nv6.16 on the sync in amdgpu_vm_make_compute() waits for nothing of\nthem.\n\nRecord the clears in vm->last_update, as amdgpu_vm_update_pdes() does\nwith its updates, and wait for it, uninterruptibly, before switching the\nupdate functions. The clears all go through vm->delayed, so the last one\ncovers the earlier ones; immediate clears are not recorded, as before.\n\nWith this, on 7.3-rc6 and on 7.2.9, the same client reads the handler\n10 of 10 times, 8 busy queues on the 4 compute slots complete in 5 of 5\nruns on 7.3-rc6 and 3 of 3 on 7.2.9 (1 of 6 before), 16 and 32 queues\ncomplete on 7.3-rc6, and two processes with 8 queues each complete\ntogether on both, with no fault.\n\n(cherry picked from commit 9ec91b35baba45209c3fcd00f086224a158dd512)","Type":"Description","Title":"drm/amdgpu: wait for pending page table updates before switching"}]}}}