Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17F6E1B040D for ; Thu, 18 Sep 2025 13:34:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202483; cv=none; b=onJFuatPe4L8da7s/fOxuDLfFjs+KMPEUU5QavoChK4tO7sgwEGmykdQz2uKMke2J6RXj5z4ARgA2z7QmOXca8R91iUEhommD4cUFlpSb1GyazD/3dpNgg/btj1SVOmGoO0XGF8hMYh+w5hVAq+sBa6/Fr/1nPf4OP9vGrBA7AM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202483; c=relaxed/simple; bh=rVMyxR7o2irWI4uSSROxSMaoSlCbuoiqlUY/uaBySlk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mVWf2EXj6dOnhanqR+ZG14ZVO7vQbnBKPpaRPSIwlnX/MLmuSzf+7La3YRXdZDE2VSEc5esHJw9dUmmZefoOhHLzc+AclYytcllDdzw9vKBHIGoIaRvI8zrDgc4doqb0O+kuxEFlOWi79utBNSy5hNyL1qLMYOVHB7vA4F/njo4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=11bII39D; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="11bII39D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 883A3C4CEE7; Thu, 18 Sep 2025 13:34:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202483; bh=rVMyxR7o2irWI4uSSROxSMaoSlCbuoiqlUY/uaBySlk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=11bII39DIr/brjnUToEnizT9BC/jetarj7VzlvhmUNB439srgUjg7gkenGE1pZ5Jt J4QZoP5GGWtfblHqh71vAtO0yCOlzQ0lJhFYteO82q25llOunuRR7cQDNkV4149Tha k6pULki1VXWifsgL+Pgsfbx2zK8H+FEGNeOtULpk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50393: drm/amdgpu: SDMA update use unlocked iterator Date: Thu, 18 Sep 2025 15:34:07 +0200 Message-ID: <2025091853-CVE-2022-50393-d5da@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2359; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WnKpDLt9mghcfLz1QSxDU3TDpzl2Id0ct7Bb7SXm6ks=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuByN07WtGta959+w4sZjURePxQLholERtcHPBKu/y Vn456t3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwET+fWZYsELBY+HPwOVv1LSM ft3VvnWCu7hSlGFBi0V9h9Czt7UyG4Km7qhhi/3Oz1MMAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: SDMA update use unlocked iterator SDMA update page table may be called from unlocked context, this generate below warning. Use unlocked iterator to handle this case. WARNING: CPU: 0 PID: 1475 at drivers/dma-buf/dma-resv.c:483 dma_resv_iter_next Call Trace: dma_resv_iter_first+0x43/0xa0 amdgpu_vm_sdma_update+0x69/0x2d0 [amdgpu] amdgpu_vm_ptes_update+0x29c/0x870 [amdgpu] amdgpu_vm_update_range+0x2f6/0x6c0 [amdgpu] svm_range_unmap_from_gpus+0x115/0x300 [amdgpu] svm_range_cpu_invalidate_pagetables+0x510/0x5e0 [amdgpu] __mmu_notifier_invalidate_range_start+0x1d3/0x230 unmap_vmas+0x140/0x150 unmap_region+0xa8/0x110 The Linux kernel CVE team has assigned CVE-2022-50393 to this issue. Affected and fixed versions =========================== Fixed in 5.19.17 with commit b892c57a3a04c8de247ab9ee08a0a8cf53290e19 Fixed in 6.0.3 with commit 4ff3d517cebe8a29b9f3c302b5292bb1ce291e00 Fixed in 6.1 with commit 3913f0179ba366f7d7d160c506ce00de1602bbc4 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50393 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/b892c57a3a04c8de247ab9ee08a0a8cf53290e19 https://git.kernel.org/stable/c/4ff3d517cebe8a29b9f3c302b5292bb1ce291e00 https://git.kernel.org/stable/c/3913f0179ba366f7d7d160c506ce00de1602bbc4