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 B3BFB3009CE for ; Mon, 15 Sep 2025 14:25:49 +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=1757946349; cv=none; b=jbnivSb5TTI1trB1BL8attfQ0aduyVUjZPuoq0waMZ5antiDURKKXGTDrc0ZQMC9uzKkkCNT0RhiFDW1ZZ37eaFz7UPIjJSBCkug+OoE4VGeKR5qPPIbHiFXyaG+QlASgYuoCfMeZPZAH3i2aHBhh8mXqXYYk2HmHqhRQ/GtNSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946349; c=relaxed/simple; bh=1/If0aD+bathi/1podNd6CNy5jN8Rx6l6GRpQaeRgw0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fm5csEq4xxXL8zPSm9CeR3pZHlkTuHhIbhSsn+OvfFLnUhf7f8Ld6zsOMpvkvc9k5z58sBOmXyvcr5RihXmvi2FTQkUZBgmvFo8OW+bert3sBTxN76/5ugB+49E7t962BSYuFhYKGYl8+vmQhDSFE0pvdVAaZUGSpvSopsuOHMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nu4d0+ld; 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="nu4d0+ld" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4B9CC4CEF5; Mon, 15 Sep 2025 14:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946349; bh=1/If0aD+bathi/1podNd6CNy5jN8Rx6l6GRpQaeRgw0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nu4d0+ldMMtRsJhYG6VZB2Ih4q3b107pwU7eCXf8alAQnOqvP1tDHrOFCy8Shi0m2 Od06mDuCDnzWBCv1SQYB54bJgh8cpSWMsWqQ1kQWDmONMA6WDFFljzlNSQmaZFTWQQ 362OtQDHdgn4QXz6mSDBSIfHmEETwgbGQWOwx+8Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53228: drm/amdgpu: drop redundant sched job cleanup when cs is aborted Date: Mon, 15 Sep 2025 16:22:02 +0200 Message-ID: <2025091514-CVE-2023-53228-441c@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=2399; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dLka5j95QSfV3Ca07YnoBPbBUYd4MC56MTDvhr95FA4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFG6p25ydGGi7kGWp/qqyi0snhPScEvn6w1fUruLO+ t9pl6p+dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVF8zzM8OCEo6njp75bdf M4LiOAoOlT7Sc2aYX3y5b4rt2xDDMKb5JZ+mRuZYGst8BwA= 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: drop redundant sched job cleanup when cs is aborted Once command submission failed due to userptr invalidation in amdgpu_cs_submit, legacy code will perform cleanup of scheduler job. However, it's not needed at all, as former commit has integrated job cleanup stuff into amdgpu_job_free. Otherwise, because of double free, a NULL pointer dereference will occur in such scenario. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2457 The Linux kernel CVE team has assigned CVE-2023-53228 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit f7d66fb2ea43a3016e78a700a2ca6c77a74579f9 and fixed in 6.2.16 with commit c1564d4b105ae535eb3183ecaaa987685b20a888 Issue introduced in 6.2 with commit f7d66fb2ea43a3016e78a700a2ca6c77a74579f9 and fixed in 6.3.3 with commit ec02a29c3c2ef8ad3e15a0e3f96b99a00e5d97b4 Issue introduced in 6.2 with commit f7d66fb2ea43a3016e78a700a2ca6c77a74579f9 and fixed in 6.4 with commit 1253685f0d3eb3eab0bfc4bf15ab341a5f3da0c8 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-2023-53228 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_cs.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/c1564d4b105ae535eb3183ecaaa987685b20a888 https://git.kernel.org/stable/c/ec02a29c3c2ef8ad3e15a0e3f96b99a00e5d97b4 https://git.kernel.org/stable/c/1253685f0d3eb3eab0bfc4bf15ab341a5f3da0c8