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 A656625F793 for ; Tue, 20 May 2025 15:24:29 +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=1747754669; cv=none; b=HeZbJJG/ac9MqSEXvbMEPQvrCBx8ABfJw+WGiuhkOP5BBD35K8X6d7c8Yvg2klG4A5au+xgvGhOFGQSMYv7fFa5IejSjN43wtu5KaqHZIKh5dmaSSBE3udID9w22kT0uBPG6KEbNI3Pv+SR747nU/86Iv8p1HmuURbCWJ1a6Y9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754669; c=relaxed/simple; bh=Y+lMVfyq7qoOAmLGGoEzJf2TF+uLAvv6axz8gvPTWek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EU1jnsRPDGUJJR6qbwyjtAOgQbruG4CrI3LBXw5nEIYzWZ3NkBK7xTtAGeED+h7D9HrznVyU7ayRFmS8ZgLVFjejNU/uIdbf09Fz1XsLpTA30dIpabZWG19VgwBz7O00mu00+IzB3ZRgjJYK1toApFAxM4M4KO815qMdxV4OxPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EyfUOzV/; 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="EyfUOzV/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E6DAC4CEE9; Tue, 20 May 2025 15:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747754669; bh=Y+lMVfyq7qoOAmLGGoEzJf2TF+uLAvv6axz8gvPTWek=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EyfUOzV/zKPMJEM3efEpci+lToUvOjyGBm7mhhXl/9Ro/0v0L37pncNS1MGCB7FFa kkqBR7Tnj0j1HpECPeKGQgcvAIf5/SodbtxQ71msqbx0omCdGM5AdMl+YSx17pGvrS Bl+e+aN0CbvmunrYwLvD2PNcYY1XHuQDEHlEUYOE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37926: ksmbd: fix use-after-free in ksmbd_session_rpc_open Date: Tue, 20 May 2025 17:22:22 +0200 Message-ID: <2025052004-CVE-2025-37926-cf39@gregkh> X-Mailer: git-send-email 2.49.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=1941; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T64wn1y+cogGCoQtFh0jGXWFj1HemcSbSuwbvmg8Q28=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk682QkJv3+qFu5zkjynPVc7i33BWa6f/p56srlq880L 75UOHXgVEcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMRKCFYcEO1nD1Wxn9+pw5 67dMnRV76vMefwWG+TkHPn2x3qD7SUKfK+j6M5dJjkdEwwE= 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 use-after-free in ksmbd_session_rpc_open A UAF issue can occur due to a race condition between ksmbd_session_rpc_open() and __session_rpc_close(). Add rpc_lock to the session to protect it. The Linux kernel CVE team has assigned CVE-2025-37926 to this issue. Affected and fixed versions =========================== Fixed in 6.12.28 with commit 8fb3b6c85b7e3127161623586b62abcc366caa20 Fixed in 6.14.6 with commit 6323fec65fe54b365961fed260dd579191e46121 Fixed in 6.15-rc5 with commit a1f46c99d9ea411f9bf30025b912d881d36fc709 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-37926 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/mgmt/user_session.c fs/smb/server/mgmt/user_session.h 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/8fb3b6c85b7e3127161623586b62abcc366caa20 https://git.kernel.org/stable/c/6323fec65fe54b365961fed260dd579191e46121 https://git.kernel.org/stable/c/a1f46c99d9ea411f9bf30025b912d881d36fc709