GHSA-9594-Q639-P6C2

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

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

drm/amdgpu: wait for pending page table updates before switching a VM to CPU updates

amdgpu_vm_make_compute() switches a VM from SDMA to CPU page table updates when a KFD process acquires it. It syncs "with the last SDMA update/clear" through amdgpu_bo_sync_wait() on the root PD, but that walks the reservation with DMA_RESV_USAGE_READ, and the clears of the VM's page tables (the root PD from amdgpu_vm_init(), and the PDs/PTs the seq64 mapping allocates at the render node's open) are added there by amdgpu_vm_sdma_commit() with DMA_RESV_USAGE_BOOKKEEP only: amdgpu_vm_pt_clear() commits them with a NULL fence, so they do not reach vm->last_update. The CPU path's own waits (amdgpu_vm_cpu_update(), amdgpu_bo_kmap()) use DMA_RESV_USAGE_KERNEL. None of them waits for a clear that is still queued.

When one is, the CPU writes the first entries of the new compute VM (the KFD trap handler's TBA/TMA page at AMDGPU_VA_RESERVED_TRAP_START, mapped during ACQUIRE_VM) into a page directory the SDMA then clears. The entries are gone, the handler's page is unmapped, and the first wave save of any queue of the process faults in the SQC instruction fetch at the handler's address (GCVM_L2_PROTECTION_FAULT_STATUS 0x008012B1, PERMISSION_FAULTS 0xb). The MES then fails REMOVE_QUEUE and SUSPEND, and the device takes a MODE1 reset with VRAM lost on 7.2.9; on 7.3-rc6 the queue is reset instead.

The window is the time between the render node's open and ACQUIRE_VM. ROCr spends milliseconds there and is practically never hit; a minimal KFD client that opens the render node and acquires the VM at once is hit most of the time. On a Radeon AI PRO R9700 (gfx1201, Resizable BAR, so vm_update_mode defaults to CPU updates for compute VMs), a wave reading the trap handler's page right after queue creation found it unmapped in 8 of 12 runs; a 5 ms sleep between the open and ACQUIRE_VM made that 0 of 9, and the same sleep after queue creation instead 3 of 3.

The wait covered these jobs until commit 926c79ad6ecd ("drm/amdgpu: promote the implicit sync to the dependent read fences") narrowed amdgpu_sync_resv() from DMA_RESV_USAGE_BOOKKEEP to DMA_RESV_USAGE_READ; the VM's page table jobs have been added with BOOKKEEP since commit 4247084057cf ("drm/amdgpu: use DMA_RESV_USAGE_BOOKKEEP v2"), so from v6.16 on the sync in amdgpu_vm_make_compute() waits for nothing of them.

Record the clears in vm->last_update, as amdgpu_vm_update_pdes() does with its updates, and wait for it, uninterruptibly, before switching the update functions. The clears all go through vm->delayed, so the last one covers the earlier ones; immediate clears are not recorded, as before.

With this, on 7.3-rc6 and on 7.2.9, the same client reads the handler 10 of 10 times, 8 busy queues on the 4 compute slots complete in 5 of 5 runs on 7.3-rc6 and 3 of 3 on 7.2.9 (1 of 6 before), 16 and 32 queues complete on 7.3-rc6, and two processes with 8 queues each complete together on both, with no fault.

(cherry picked from commit 9ec91b35baba45209c3fcd00f086224a158dd512)

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99981"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:20:41Z",
    "severity": null
  },
  "details": "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\u0027s page tables (the root PD from amdgpu_vm_init(), and the PDs/PTs\nthe seq64 mapping allocates at the render node\u0027s 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-\u003elast_update. The CPU path\u0027s 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\u0027s 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\u0027s page is unmapped, and the first wave\nsave of any queue of the process faults in the SQC instruction fetch at\nthe handler\u0027s 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\u0027s 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\u0027s 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\u0027s 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-\u003elast_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-\u003edelayed, 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)",
  "id": "GHSA-9594-q639-p6c2",
  "modified": "2026-11-30T15:32:51Z",
  "published": "2026-11-30T15:32:51Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99981"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2368f9aed09cbabb5a8980c2fbc78bde98e170e9"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/53d9ef2f518add783bb48a69d77bbc8aea99e911"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/eb8cfa911806bd379949271335ef8246f89d330f"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.