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 085A534545 for ; Fri, 25 Jul 2025 13:20:33 +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=1753449634; cv=none; b=uLFD1YznFrFGPadei0Ft3r00YRXjXVwAL9109bRW3/a0ybDDC3BcBTkzpxBWKAHWgTYWkbNn1HGEYWe20xA2a5RlvE2Vda4a+qe9na+ROtm99GFygfo5/TpAUQr5O5lns7vYnL9l/EPDW89lEbtVzwDrKr+3TvhlCb7KZT4vi/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753449634; c=relaxed/simple; bh=g43Dshb8YmPfFG7nKgsMCCZDE2kBUKVYTKJ/Zp3C7gI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hv3eWFcfr3p9S+/mSSdv9Ym0oAnXh1UV7VgVsVQzFp/AkzxY7xlS+CZLx7RKmsMRCNxPuciTzt9gDL2+AsW3tSwdNrm0s/qiqUvgwpz8j5bbiZuIpLmqT+yBrJKuAHaFl7Jz3mk9jSqVMTsbKN4woNDTS29DEVolrM7LVKmIvaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L3vpr/XS; 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="L3vpr/XS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A28FC4CEE7; Fri, 25 Jul 2025 13:20:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753449633; bh=g43Dshb8YmPfFG7nKgsMCCZDE2kBUKVYTKJ/Zp3C7gI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=L3vpr/XScfkXpnYk3Na2RvZ0kBM8wgPvt6n9bANYCZF6HVy0Yf6mg/bJAYHxuGcP1 r7fgusUcIrUGmaQzc4oxF9EuZIKqQ7J8F1XWrx2ZHFvMZ78PMQTezCBGkOvdiYGBTx x/Pbaaf8uC5qlmbD4/iZ+BLzk59c+LnG1IwMefGw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38409: drm/msm: Fix another leak in the submit error path Date: Fri, 25 Jul 2025 15:20:23 +0200 Message-ID: <2025072520-CVE-2025-38409-cee4@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=2237; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XcjrapESw7CijRQ0letSff5sLwFWmGwpYxoT10bRvD8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNLVN8fqeetJ9o+0Hg/QOz2slpmw/q7fKY0p+poijwb dazQhPTjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI8mqGeUbzHTxz8nJZft8R F+X92NUstk7Ck2F+YIPFVtktKS937WKKWCS1jEGzYj8vAA== 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 another leak in the submit error path put_unused_fd() doesn't free the installed file, if we've already done fd_install(). So we need to also free the sync_file. Patchwork: https://patchwork.freedesktop.org/patch/653583/ The Linux kernel CVE team has assigned CVE-2025-38409 to this issue. Affected and fixed versions =========================== Fixed in 6.1.144 with commit 00b3401f692082ddf6342500d1be25560bba46d4 Fixed in 6.6.97 with commit c40ad1c04d306f7fde26337fdcf8a5979657d93f Fixed in 6.12.37 with commit 3f6ce8433a9035b0aa810e1f5b708e9dc1c367b0 Fixed in 6.15.6 with commit 30d3819b0b9173e31b84d662a592af8bad351427 Fixed in 6.16-rc3 with commit f681c2aa8676a890eacc84044717ab0fd26e058f 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-38409 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/00b3401f692082ddf6342500d1be25560bba46d4 https://git.kernel.org/stable/c/c40ad1c04d306f7fde26337fdcf8a5979657d93f https://git.kernel.org/stable/c/3f6ce8433a9035b0aa810e1f5b708e9dc1c367b0 https://git.kernel.org/stable/c/30d3819b0b9173e31b84d662a592af8bad351427 https://git.kernel.org/stable/c/f681c2aa8676a890eacc84044717ab0fd26e058f