CVE-2026-99868
published high CVSS 3.1 · 7.8drm/amdkfd: split vram_pages of SVM ranges prefetched without a GPU mapping
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux006ad514a50cc49d904fd004b69c842ddfaabf1f to < 179bf8516d1276eda573245bbca6dc95f370aacb · 006ad514a50cc49d904fd004b69c842ddfaabf1f to < 08a3f27f91a91fe105012ce8d910540d6a54b37d · 006ad514a50cc49d904fd004b69c842ddfaabf1f to < 72360c3c34ef95f4ca0b27574c765d67504516c2 · 006ad514a50cc49d904fd004b69c842ddfaabf1f to < 52957e813f2f025c86e4aa6e86cb4963ef94fd00 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.8 (affected) · 0 to < 6.8 (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 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 |
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: split vram_pages of SVM ranges prefetched without a GPU mapping When an SVM range is split, svm_range_split_pages() gives the new range the number of VRAM pages counted in its part of the dma_addr arrays and subtracts it from the old range. Pages migrated to VRAM by a prefetch have no dma_addr 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 svm_bo 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/kfd_migrate.c:922 at svm_migrate_vram_to_ram+0xbdc/0xcd0 [amdgpu] and /sys/class/kfd/kfd/proc/<pid>/vram_<gpu_id> stays at 4194304 until the process exits. Without dma_addr 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 dma_addr arrays, e.g. after a partial migration, since svm_migrate_ram_to_vram() only counts the pages it actually migrated. That would need VRAM residency to be tracked per page independently of dma_addr. v2: - Rename counted to has_dma_addr and compare against old->npages (Philip) - Mention the XNACK off case and the partial migration limitation (Philip) (cherry picked from commit 7ca6f3359b557a267c7b07a2fd748b1473395e10)
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for 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 stale vram_pages state is created by svm_range_split_pages(), reached via the AMDKFD_IOC_SVM ioctl on /dev/kfd (svm_ioctl -> svm_range_set_attr -> svm_range_add -> split_head/tail). Every input is a local syscall argument; no network data is involved. AC:L - Deterministic: prefetch a range to VRAM with no ACCESS attribute (dma_addr stays NULL), then SET_ATTR prefetch_loc=0 on part of it. The split miscounts and the WARN fires. The follow-on eviction and re-prefetch are also attacker steps: VRAM pressure from their own second process, then another PREFETCH. No race or hardware state is involved. PR:L - AMDKFD_IOC_SVM is registered with ioctl flags 0 and no capability check; /dev/kfd is GROUP=render MODE=0660 with uaccess, so any render-group or seated user can reach it. The commit reproduces it as an unprivileged process. UI:N - The attacker drives every step with their own SVM ioctls on their own address range; no other user has to act. S:U - The corrupted state (svm_range ttm_res, amdgpu VRAM resource, VRAM contents) belongs to the same kernel and amdgpu driver authority; no VM or IOMMU boundary is crossed. C:H - The stale range keeps ttm_res after svm_range_evict_svm_bo fails to clear it and ttm_bo_pipeline_gutting frees the resource. svm_range_validate_svm_bo then reuses the dangling pointer, so migrating back copies VRAM the attacker no longer owns into their pages. I:H - On re-prefetch, svm_migrate_copy_to_vram calls amdgpu_res_first() on the freed amdgpu VRAM resource (a slab use-after-free) and SDMA writes attacker page contents into VRAM now owned by other BOs, e.g. another process's data or page tables. A:H - The underflow deterministically fires WARN_ONCE("Recorded vram pages ... should not be less than migration pages") in svm_migrate_vram_to_ram (panic_on_warn), and the dangling-ttm_res use-after-free can oops the kernel or corrupt GPU state.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 006ad514a50cc49d904fd004b69c842ddfaabf1f to < 179bf8516d1276eda573245bbca6dc95f370aacb (affected · git)006ad514a50cc49d904fd004b69c842ddfaabf1f to < 08a3f27f91a91fe105012ce8d910540d6a54b37d (affected · git)006ad514a50cc49d904fd004b69c842ddfaabf1f to < 72360c3c34ef95f4ca0b27574c765d67504516c2 (affected · git)006ad514a50cc49d904fd004b69c842ddfaabf1f to < 52957e813f2f025c86e4aa6e86cb4963ef94fd00 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.8 (affected)0 to < 6.8 (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
drm/amdkfd: split vram_pages of SVM ranges prefetched without a GPU mapping
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 748068b5dcd97b88d6b687233602aba506e1a22e202e0ce170f0fa0d98509c4d
- Ingested
- 01 Dec 2026, 05:47:23 UTC
- Source record
- Official CVE record