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 4B7741C7B69 for ; Mon, 21 Oct 2024 20:13:59 +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=1729541639; cv=none; b=WMoAAyGlHzfbnpi8J4nvu9w8ndhzF63ZveDaf7xnTou22fUnofuYQSuWKmZF7MRZFSzplRHvC7hs1Y2xqp6we1g2m7FEUlBuTrkCFFJu7ZbRhpimdDAxRSyH/Scjd00CQGVkYUnTLKqHw7VY2+d/gTIvLOlNXUK53a1AA3BfG3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541639; c=relaxed/simple; bh=DYYjGMyWV54KB9SRY6nZyLx6IgmMeMElO8c1X0wdwpE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j+XtYIqUxctphpP4aIdaLGyf74Rh/bFcXyZ1X1YRAv62ddpBalpe57eHINJ8AQAoSippg/1NaWTgxhPGy36krOoHHQ7zVAzBBY/hRdmY0ju1jiy1g8UaVKk8+rKcqEkaCzg7KC26nte9qeXbHU1TWCBRWqrjofWO5baV7CoFemE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FaLPTOXI; 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="FaLPTOXI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C164AC4CEC3; Mon, 21 Oct 2024 20:13:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541639; bh=DYYjGMyWV54KB9SRY6nZyLx6IgmMeMElO8c1X0wdwpE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FaLPTOXIMlFzoCcoFfKElN90fl/gFaG14bJDcn1V8K1Hvt+xXYSrjPPZhljuTNdfK Yfu9gMTDNU/xcN7KxSWw6DZ0RpR9MOqr+oCi9AMw19qWKkKcQKKyTg17Y9EDZxT9dg JgscEgjT0IrR0fvubkUoh53ZQY3fnQY/fHzERPOs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48990: drm/amdgpu: fix use-after-free during gpu recovery Date: Mon, 21 Oct 2024 22:06:22 +0200 Message-ID: <2024102148-CVE-2022-48990-1cf1@gregkh> X-Mailer: git-send-email 2.47.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=1905; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DYYjGMyWV54KB9SRY6nZyLx6IgmMeMElO8c1X0wdwpE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW2SOZPcqFE8/OM3VY+NRazUlyX1WDOcW36wP6zRh+ nss7lpwRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEvZ1hwVxRrnw58/On581L F9ulHmBg/lAzgGG+F8vCCf6TT3btnGYQOG/Dff/VOdnSAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix use-after-free during gpu recovery [Why] [ 754.862560] refcount_t: underflow; use-after-free. [ 754.862898] Call Trace: [ 754.862903] [ 754.862913] amdgpu_job_free_cb+0xc2/0xe1 [amdgpu] [ 754.863543] drm_sched_main.cold+0x34/0x39 [amd_sched] [How] The fw_fence may be not init, check whether dma_fence_init is performed before job free The Linux kernel CVE team has assigned CVE-2022-48990 to this issue. Affected and fixed versions =========================== Fixed in 6.0.13 with commit d2a89cd942ed Fixed in 6.1 with commit 3cb93f390453 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-48990 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_job.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/d2a89cd942edd50c1e652004fd64019be78b0a96 https://git.kernel.org/stable/c/3cb93f390453cde4d6afda1587aaa00e75e09617