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 A826D3397DB for ; Wed, 17 Sep 2025 14:56:29 +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=1758120989; cv=none; b=eAFe3rtw3NhDZs8GaGzAOLMWAYYzSCmHt+274S6lrQeUFqNZvLgR5JIHZ/x+yrpZ5Zj+7MZ3hSyiRyCN+DDV6vviV0hTDzeAdc2vrd46N4xxMn0/K+ckwTcb2WqPQ+OQ4zgqZG8IfdrIGaVN/6AQbQfVlzbqp2zU4PWiwc7Dnb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758120989; c=relaxed/simple; bh=gYKmhvkByROKy7WEO1SF0ENtL5b5LyfXKDtcQRpUiqY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=An40IxHm2SxiAw2IyUg2o7J67Ks7fzk/xxSWg08lFd5xArhCV3sWHc7cWD//7roYY7GG43FncN+gT5DIkxSZIz0Dz+sfGdhO82HeBBr4DuV+CrSIb1VF+OoWsxLcv60HFw0NGxBTQtvu2wQ18QmLz+Z+5G1nvYEBEE4xEARM8aE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JMGsVV98; 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="JMGsVV98" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71A30C4AF0B; Wed, 17 Sep 2025 14:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758120989; bh=gYKmhvkByROKy7WEO1SF0ENtL5b5LyfXKDtcQRpUiqY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JMGsVV98vf2tCguYqmAAW8uegNlupxjf2i7Az/WnaO26spZpixJttUp7oXpjf8Sj0 hnvlT18V97Kyy3WNmEmLGxN201jyW14FU74UfRti4gUx+lZRYe1WXU5JiUMs7olWxd r/2sN/SV3fPwfkIQaO+90HPb2pLM/0aMDe1XchhQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50354: drm/amdkfd: Fix kfd_process_device_init_vm error handling Date: Wed, 17 Sep 2025 16:56:13 +0200 Message-ID: <2025091714-CVE-2022-50354-45cc@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=2313; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+DOgKLyAMUPiPw51QAp8ZBMmGfGfe/V994pZOw8zR+4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmnzvBxN81zS37aVcvsrGCvfveffcHOX+YyZwJ+6hyIF CmXzlzbEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOR/cIwm2Xx3Dv3pLvPye5Z JDOV/V3KzJojTQzzLG8+ji/TdlII6alrexFXNU1Kgm89AA== 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/amdkfd: Fix kfd_process_device_init_vm error handling Should only destroy the ib_mem and let process cleanup worker to free the outstanding BOs. Reset the pointer in pdd->qpd structure, to avoid NULL pointer access in process destroy worker. BUG: kernel NULL pointer dereference, address: 0000000000000010 Call Trace: amdgpu_amdkfd_gpuvm_unmap_gtt_bo_from_kernel+0x46/0xb0 [amdgpu] kfd_process_device_destroy_cwsr_dgpu+0x40/0x70 [amdgpu] kfd_process_destroy_pdds+0x71/0x190 [amdgpu] kfd_process_wq_release+0x2a2/0x3b0 [amdgpu] process_one_work+0x2a1/0x600 worker_thread+0x39/0x3d0 The Linux kernel CVE team has assigned CVE-2022-50354 to this issue. Affected and fixed versions =========================== Fixed in 6.0.19 with commit b6e78bd3bf2eb964c95eb2596d3cd367307a20b5 Fixed in 6.1.5 with commit 9d74d1f52e16d8e07f7fbe52e96d6391418a2fe9 Fixed in 6.2 with commit 29d48b87db64b6697ddad007548e51d032081c59 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-50354 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/amdkfd/kfd_process.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/b6e78bd3bf2eb964c95eb2596d3cd367307a20b5 https://git.kernel.org/stable/c/9d74d1f52e16d8e07f7fbe52e96d6391418a2fe9 https://git.kernel.org/stable/c/29d48b87db64b6697ddad007548e51d032081c59