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 C54D5313293 for ; Fri, 5 Sep 2025 17:24:42 +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=1757093082; cv=none; b=Zc9O8xd3eWYcybV4r14hhf3fXvp6fRBfNhl4aP4bbMhZSs7O1Oiw9EXgkWsHVsXylbal0ppW2nTUpWDSplIAEAM0YPgXEYoif7A77SVZIXYhih3KItMGUn2F/r/SwsVNL1KYdX/Xoj6ZvAJ5TlEMNxpWw0F+rLlPHUUBdmHApcc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757093082; c=relaxed/simple; bh=/CpuhWqar7Yt4TkSx+jnHLKL5mUJos1eh+Kq54V+ACY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qYiBh3unWrExw0RgOY3GT+pdBYtRJUaQH4AARIpBdYUVbownPqB4Zih96tPGi5brp6Dq6bs6vf6CEiyTdIzEmylTChA27GorYWovcYyHF9GHoWqMLOHjT2OaCF0BtY/rk7cgx3m6maXFtdu1E5u/qdv6Ulenp7nwomt6qacNV4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JASOAmq9; 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="JASOAmq9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22ECFC4CEF1; Fri, 5 Sep 2025 17:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757093082; bh=/CpuhWqar7Yt4TkSx+jnHLKL5mUJos1eh+Kq54V+ACY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JASOAmq9tufi3zNL26P35ZpCPGTjXLiwqGrxV1t25hDGDAPDlcBLHOJL2oz1W5aHg lVyrXvB5tr47s9MnQESJh/VSUsPhXXMGQrtUzoWbMLbtzH+ZRTSK3uhdRxp2uWASsa cZtSxZ1JtoJjEl41eA1MQfxjCVUCbyQ8vLJV7DaU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39720: ksmbd: fix refcount leak causing resource not released Date: Fri, 5 Sep 2025 19:21:33 +0200 Message-ID: <2025090551-CVE-2025-39720-3cbf@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=2094; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qOu+IZAFSNIueAmrqUNyk+Ew+KBdGia2uiGztEUbMrU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm7pT/vCkmUsFZr7JNRuuuprLnoxdWfqTzBu/Zbv2vfe CmkaEV1RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEQ5Jhfvl1w2fH7E32OenJ skVzHzXz59l0iWF+0drynLsp06zZM6R3P7u9vNJJOPIMAA== 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: ksmbd: fix refcount leak causing resource not released When ksmbd_conn_releasing(opinfo->conn) returns true,the refcount was not decremented properly, causing a refcount leak that prevents the count from reaching zero and the memory from being released. The Linux kernel CVE team has assigned CVE-2025-39720 to this issue. Affected and fixed versions =========================== Fixed in 6.6.103 with commit a1d2bab4d53368a526c97aba92671dd71814f95a Fixed in 6.12.44 with commit 36e010bb865fbaa1202fe9bcce3fd486d6db7606 Fixed in 6.16.4 with commit 9a7abce6e8c0e2145b346a6d4abf0d9655e9b0e8 Fixed in 6.17-rc3 with commit 89bb430f621124af39bb31763c4a8b504c9651e2 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-39720 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: fs/smb/server/oplock.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/a1d2bab4d53368a526c97aba92671dd71814f95a https://git.kernel.org/stable/c/36e010bb865fbaa1202fe9bcce3fd486d6db7606 https://git.kernel.org/stable/c/9a7abce6e8c0e2145b346a6d4abf0d9655e9b0e8 https://git.kernel.org/stable/c/89bb430f621124af39bb31763c4a8b504c9651e2