{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99982","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.450Z","datePublished":"2026-11-30T13:18:51.796Z","dateUpdated":"2026-12-01T05:44:30.328Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:44:30.328Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: wait for a GPU reset before freeing a BO\n\nWhen a GPU reset takes the reset domain, KFD eviction cannot unmap\nuser queues: execute_queues_cpsch() fails its trylock with -EIO, so\nthe queues keep running until the ASIC is reset. The TLB flush is also\nskipped while the reset is in progress. If the process unmaps and frees\na BO in that window, its pages are released while a queue can still\naccess them through stale translations.\n\nOn MI300X, munmap() then crashes in free_swap_cache() on a small bogus\npage pointer in its mmu_gather batch page:\n\n  BUG: unable to handle page fault for address: 0000000000002900\n  RIP: 0010:free_swap_cache+0x5/0xb0\n  Call Trace:\n   free_pages_and_swap_cache+0x3a/0x60\n   tlb_batch_pages_flush+0x43/0x80\n   tlb_flush_mmu+0x3d/0x110\n   zap_pte_range+0x80d/0xcd0\n   ...\n   do_vmi_align_munmap+0x3e8/0x5b0\n   do_vmi_munmap+0xdf/0x190\n   __vm_munmap+0xad/0x180\n   __x64_sys_munmap+0x1b/0x30\n\nIn a traced crash the bogus pointer was the read pointer value of an SDMA\nqueue the process had just destroyed, at the read pointer's page offset:\nthe queue's writeback landed in its freed rptr page after the page was\nreused as the batch page.\n\ncommit f0b4440cdc18 (\"drm/amdkfd: Fix mode1 reset crash issue\") fixed\nthis race on process exit by waiting for the reset to complete before\nfreeing the process's BOs. Free through the ioctl has the same race.\nWait for the reset there too, using the same helper.\n\n(cherry picked from commit 06ff8ce77726b15a98fcc285dd6005cb3f48558b)"}],"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 patched function kfd_ioctl_free_memory_of_gpu() is reached only through AMDKFD_IOC_FREE_MEMORY_OF_GPU on /dev/kfd, after AMDKFD_IOC_UNMAP_MEMORY_FROM_GPU, both issued by a local process. No remote peer supplies the BO handle or any data involved.\nAC:L - The attacker forces the reset with its own non-preemptible queue: unmap_queues_cpsch() times out, then kfd_hws_hang() calls amdgpu_amdkfd_gpu_reset(). kgd2kfd_pre_reset()->kfd_signal_reset_event() sets the process's HW_EXCEPTION event before the ASIC reset, so a thread waiting in AMDKFD_IOC_WAIT_EVENTS issues unmap+free inside the window. Getting the freed page reused is heap grooming.\nPR:L - kfd_open() and kfd_ioctl() perform no capability check. CREATE_QUEUE, ALLOC/MAP/UNMAP/FREE_MEMORY_OF_GPU, CREATE_EVENT and WAIT_EVENTS all have ioctl flags 0; only the CRIU ioctl is capability-gated. Any local user with access to the /dev/kfd and render nodes (render group or mode 0666) can perform every step.\nUI:N - The attacker's own process creates the queues, hangs them to force the reset, waits on its own reset event, and frees its own BO. No other user has to do anything.\nS:U - The GPU accesses the freed page through the driver's own stale GPUVM translation after the reset path skipped the TLB flush. The DMA unmap still runs, so no IOMMU or hypervisor boundary is bypassed; the corruption stays within the host kernel's authority.\nC:H - After the kernel reallocates the freed system-memory page, the attacker's still-running SDMA or compute queue keeps reading through the stale TLB entry. It can copy whatever kernel data now sits on that page into a BO the attacker still has mapped.\nI:H - Queues the reset could not unmap keep writing to the freed physical page. In the MI300X trace a destroyed SDMA queue's read-pointer writeback overwrote a page reused as an mmu_gather batch, corrupting a page pointer the kernel then freed. Attacker-authored SDMA or shader stores widen this into writes to reallocated kernel memory.\nA:H - The commit documents a kernel oops in free_swap_cache() during munmap() after the batch page was corrupted. Triggering the bug also takes down the whole GPU, affecting every user of the device."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_chardev.c","drivers/gpu/drm/amd/amdkfd/kfd_priv.h","drivers/gpu/drm/amd/amdkfd/kfd_process.c"],"versions":[{"version":"9c33e5fd4fb63b793d9a92bf35d190630d9bada4","lessThan":"f917af6f91c12f5e3943e110cb9a2b5ca42909d1","status":"affected","versionType":"git"},{"version":"9c33e5fd4fb63b793d9a92bf35d190630d9bada4","lessThan":"2cbdce3fdf929ec5c13007611a37672720bcfb8e","status":"affected","versionType":"git"},{"version":"9c33e5fd4fb63b793d9a92bf35d190630d9bada4","lessThan":"96da420b053ba050e4e43c3e54d469043c35f73d","status":"affected","versionType":"git"},{"version":"9c33e5fd4fb63b793d9a92bf35d190630d9bada4","lessThan":"47d799a718439764432d8ef3a0952af45f025f76","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_chardev.c","drivers/gpu/drm/amd/amdkfd/kfd_priv.h","drivers/gpu/drm/amd/amdkfd/kfd_process.c"],"versions":[{"version":"6.11","status":"affected"},{"version":"0","lessThan":"6.11","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/f917af6f91c12f5e3943e110cb9a2b5ca42909d1"},{"url":"https://git.kernel.org/stable/c/2cbdce3fdf929ec5c13007611a37672720bcfb8e"},{"url":"https://git.kernel.org/stable/c/96da420b053ba050e4e43c3e54d469043c35f73d"},{"url":"https://git.kernel.org/stable/c/47d799a718439764432d8ef3a0952af45f025f76"}],"title":"drm/amdkfd: wait for a GPU reset before freeing a BO","x_generator":{"engine":"bippy-1.2.0"}}}}