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 218E12ECD0A for ; Fri, 25 Jul 2025 13:20:37 +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=1753449640; cv=none; b=Q/xbdrpbJcRc1q/lbka+u+CqMdEowHL45K/+ZS5hpyjpVOuPyP0OHCk8hvhODN3gtp0St5+XUZRVZCuLUxdWsqzkUXpPbofD4C8og0WV28cDOHmrO/0CKr2/YoYgBwLKF4Xadhnm7G629mvghVG7mtCfwqKHsHEscjAtjDZY+Y0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753449640; c=relaxed/simple; bh=xCy/acTYOZjsrKrcac3ux5UIbzCeca1+HqYIVUmKzx8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QnpMEI707MWdMNjLS5zFFxAizjlUderTvpX0AWQ0RUJOytpmio4asUtAmol497mwsO8Vya2a+nfJRNdMNXpld634gn3eT1DhJesxOZwS0Ba5y+ZmTR/z2jFgZhwZcb0g1I3ko9z2SKBBpHfaQzxXm8UfbZGE5dun+VAUAOaAmxo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zznLxHo5; 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="zznLxHo5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFD64C4CEE7; Fri, 25 Jul 2025 13:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753449637; bh=xCy/acTYOZjsrKrcac3ux5UIbzCeca1+HqYIVUmKzx8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zznLxHo5ye7LaAbstsKmwt34U5wHowlPD3tjaS3lWf5Z6NSe+/mdklx6sPcYixEUU wsUifHDUTPnunwp/YtiJrO10ARFDXker6tuJ70CbAZRRSbbN71erwvYu10QYv+0Ins 9uahhXAWjdhJil1yxk8/lwFJWU8MsoAV/9vBBY7w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38410: drm/msm: Fix a fence leak in submit error path Date: Fri, 25 Jul 2025 15:20:24 +0200 Message-ID: <2025072521-CVE-2025-38410-e0e7@gregkh> X-Mailer: git-send-email 2.50.1 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=2481; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VmIMj6z7AoIfSEXZVUQbWhwV0mvhxAxhVMgv9lbR8kc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNLVMvrKmZtsA4j7fk0NWsWvn+qA6ucM2w9486NOOku u4Iidd0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQSZjLM4ePedXTm9c/CO19s 2ht7Mo/zxFYLAYb5rsq5k6++M45bfkH8rf+lBi9x7rwdAA== 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/msm: Fix a fence leak in submit error path In error paths, we could unref the submit without calling drm_sched_entity_push_job(), so msm_job_free() will never get called. Since drm_sched_job_cleanup() will NULL out the s_fence, we can use that to detect this case. Patchwork: https://patchwork.freedesktop.org/patch/653584/ The Linux kernel CVE team has assigned CVE-2025-38410 to this issue. Affected and fixed versions =========================== Fixed in 5.15.187 with commit 5deab0fa6cfd0cd7def17598db15ceb84f950584 Fixed in 6.1.144 with commit 201eba5c9652a900c0b248070263f9acd3735689 Fixed in 6.6.97 with commit fe2695b2f63bd77e0e03bc0fc779164115bb4699 Fixed in 6.12.37 with commit 0eaa495b3d5710e5ba72051d2e01bb28292c625c Fixed in 6.15.6 with commit 0dc817f852e5f8ec8501d19ef7dcc01affa181d0 Fixed in 6.16-rc3 with commit 5d319f75ccf7f0927425a7545aa1a22b3eedc189 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-2025-38410 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/msm/msm_gem_submit.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/5deab0fa6cfd0cd7def17598db15ceb84f950584 https://git.kernel.org/stable/c/201eba5c9652a900c0b248070263f9acd3735689 https://git.kernel.org/stable/c/fe2695b2f63bd77e0e03bc0fc779164115bb4699 https://git.kernel.org/stable/c/0eaa495b3d5710e5ba72051d2e01bb28292c625c https://git.kernel.org/stable/c/0dc817f852e5f8ec8501d19ef7dcc01affa181d0 https://git.kernel.org/stable/c/5d319f75ccf7f0927425a7545aa1a22b3eedc189