{"id":"CVE-2022-50393","state":"PUBLISHED","title":"drm/amdgpu: SDMA update use unlocked iterator","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: SDMA update use unlocked iterator\n\nSDMA update page table may be called from unlocked context, this\ngenerate below warning. Use unlocked iterator to handle this case.\n\nWARNING: CPU: 0 PID: 1475 at\ndrivers/dma-buf/dma-resv.c:483 dma_resv_iter_next\nCall Trace:\n dma_resv_iter_first+0x43/0xa0\n amdgpu_vm_sdma_update+0x69/0x2d0 [amdgpu]\n amdgpu_vm_ptes_update+0x29c/0x870 [amdgpu]\n amdgpu_vm_update_range+0x2f6/0x6c0 [amdgpu]\n svm_range_unmap_from_gpus+0x115/0x300 [amdgpu]\n svm_range_cpu_invalidate_pagetables+0x510/0x5e0 [amdgpu]\n __mmu_notifier_invalidate_range_start+0x1d3/0x230\n unmap_vmas+0x140/0x150\n unmap_region+0xa8/0x110","publishedAt":"2025-09-18T13:33:12.247Z","updatedAt":"2026-08-15T12:23:26.499Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8bb31587820a6e04cb613b49238b1800d1a97223","status":"affected","lessThan":"b892c57a3a04c8de247ab9ee08a0a8cf53290e19","versionType":"git"},{"version":"8bb31587820a6e04cb613b49238b1800d1a97223","status":"affected","lessThan":"4ff3d517cebe8a29b9f3c302b5292bb1ce291e00","versionType":"git"},{"version":"8bb31587820a6e04cb613b49238b1800d1a97223","status":"affected","lessThan":"3913f0179ba366f7d7d160c506ce00de1602bbc4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"5.19.17","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0.3","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"]}],"references":["https://git.kernel.org/stable/c/b892c57a3a04c8de247ab9ee08a0a8cf53290e19","https://git.kernel.org/stable/c/4ff3d517cebe8a29b9f3c302b5292bb1ce291e00","https://git.kernel.org/stable/c/3913f0179ba366f7d7d160c506ce00de1602bbc4"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50393.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50393","state":"PUBLISHED","datePublished":"2025-09-18T13:33:12.247Z","dateUpdated":"2026-08-15T12:23:26.499Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-17T14:53:06.998Z"},"containers":{"cna":{"title":"drm/amdgpu: SDMA update use unlocked iterator","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: SDMA update use unlocked iterator\n\nSDMA update page table may be called from unlocked context, this\ngenerate below warning. Use unlocked iterator to handle this case.\n\nWARNING: CPU: 0 PID: 1475 at\ndrivers/dma-buf/dma-resv.c:483 dma_resv_iter_next\nCall Trace:\n dma_resv_iter_first+0x43/0xa0\n amdgpu_vm_sdma_update+0x69/0x2d0 [amdgpu]\n amdgpu_vm_ptes_update+0x29c/0x870 [amdgpu]\n amdgpu_vm_update_range+0x2f6/0x6c0 [amdgpu]\n svm_range_unmap_from_gpus+0x115/0x300 [amdgpu]\n svm_range_cpu_invalidate_pagetables+0x510/0x5e0 [amdgpu]\n __mmu_notifier_invalidate_range_start+0x1d3/0x230\n unmap_vmas+0x140/0x150\n unmap_region+0xa8/0x110"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8bb31587820a6e04cb613b49238b1800d1a97223","status":"affected","lessThan":"b892c57a3a04c8de247ab9ee08a0a8cf53290e19","versionType":"git"},{"version":"8bb31587820a6e04cb613b49238b1800d1a97223","status":"affected","lessThan":"4ff3d517cebe8a29b9f3c302b5292bb1ce291e00","versionType":"git"},{"version":"8bb31587820a6e04cb613b49238b1800d1a97223","status":"affected","lessThan":"3913f0179ba366f7d7d160c506ce00de1602bbc4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"5.19.17","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0.3","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b892c57a3a04c8de247ab9ee08a0a8cf53290e19"},{"url":"https://git.kernel.org/stable/c/4ff3d517cebe8a29b9f3c302b5292bb1ce291e00"},{"url":"https://git.kernel.org/stable/c/3913f0179ba366f7d7d160c506ce00de1602bbc4"}],"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 - Reachable only via local KFD SVM: open /dev/kfd, set up an SVM range, then munmap triggers svm_range_cpu_invalidate_pagetables → svm_range_unmap_from_gpus → amdgpu_vm_update_range(unlocked=true) → amdgpu_vm_sdma_update; no network or adjacent-link path.\nAC:L - The attacker controls both sides—munmap to hit the unlocked MMU-notifier path while concurrently driving GPU/SVM updates that lock and rewrite the same PD/PT dma_resv fence list—so the race does not depend on conditions outside their influence.\nPR:L - /dev/kfd and DRM render nodes are group-accessible to unprivileged users in the render/video group (typically 0660 root:render) with no capability gate, so init-ns root is not required.\nUI:N - The attacker opens KFD, configures SVM mappings, and unmaps/races GPU updates entirely themselves; no separate victim action is required.\nS:U - Impact stays within the local host kernel privilege boundary as a standard kernel memory-safety/privilege-escalation issue, not a VM, IOMMU, or sandbox escape.\nC:H - The locked iterator walks dma_resv fences without rcu_read_lock or dma_fence_get_rcu while writers may kfree_rcu the list and drop fence refs, yielding a UAF of dma_resv_list/dma_fence usable for arbitrary kernel reads.\nI:H - The same unlocked locked-iteration UAF lets the attacker reclaim freed fence/list objects and build write or control-flow hijacking primitives beyond a pure crash.\nA:H - The path reliably hits dma_resv_assert_held WARN/oops under lockdep, and the concurrent UAF can crash the kernel even without full exploitation, so availability impact is high."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-15T12:23:26.499Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"5.19.17"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.0.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-50393","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-01-14T18:51:05.793062Z"}}}],"problemTypes":[{"descriptions":[{"lang":"en","type":"CWE","description":"CWE-noinfo Not enough information"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T18:53:05.725Z"}}]}}}