Linux kernel amdkfd: no TLB flush after MES queue eviction lets in-flight DMA touch unmapped GPU memory
Impact
The MES firmware scheduler, unlike HWS, does not perform heavy-weight TLB invalidation after unmapping compute queues. Without an explicit flush in evict_process_queues_cpsch() and suspend_queues(), in-flight DMA descriptors can still reference memory that has already been unmapped or migrated, so a GPU can access freed or reassigned pages. Observed symptoms are GPU page faults and a hung compute queue during SVM page migration (reproduced on gfx1151 with XNACK enabled) - on a shared AMD GPU node that is a wedged device that usually needs the node drained and the GPU reset, and the memory-access-after-free aspect is what makes it a security issue rather than a hang. The fix adds kfd_flush_tlb() after MES queue removal in both paths.
Who can reach it
Local user with access to the AMD KFD device (/dev/kfd) - any tenant running a ROCm workload on the node. Requires MES-scheduled hardware and queue eviction/suspension (process eviction, debug or CRIU suspend) to occur.
What to do
Update to a stable kernel containing the linked commits (the fix is a cherry-pick of f5c4f88e0f9c) and reboot each AMD GPU node; in practice the amdgpu/amdkfd module cannot be swapped under live ROCm jobs, so drain the node first. A GPU already hung by this needs a reset regardless. No fixed release numbers are given in the record.
References
Related entries
- BlueField / ConnectX firmware: Improper certificate validation / access controlCVE-2024-0106 · BlueField / ConnectX firmwareHigh
- Jetson (Xavier/TX/Nano): Improper error handlingCVE-2024-0108 · Jetson (Xavier/TX/Nano)High
- BlueField DPU: Access-control bypass on the DPUCVE-2025-23256 · BlueField DPUHigh
- NVIDIA License System - Delegated Licensing Service (DLS): An unauthorised action against the DLS reaches highCVE-2025-23293 · NVIDIA License System - Delegated Licensing Service (DLS)High
- NemoClaw: Sensitive info exposure in logsCVE-2026-24222 · NemoClawHigh
- NVIDIA GPU Display Driver - kernel mode layer (Windows nvlddmkm.sys and Linux nvidia.ko): A specially crafted shaderCVE-2022-28181 · NVIDIA GPU Display Driver - kernel mode layer (Windows nvlddmkm.sys and Linux nvidia.ko)High
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.