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 D59D133595D for ; Wed, 17 Sep 2025 14:59:28 +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=1758121168; cv=none; b=b2oszwyZ/8zmPLroLKRajxBZrGmw4rTZJ5lYV7GN7TroImpIFHeobyNu4IWfrH72NfsznGThJnilDySEBNof243JEAKbBTc4aQ904x7NCYyaL/wSeM3hobP09EncoVufyakaGfId7P/WjDTRz2q9Yown9b2Yd2pS9Nbbp6fuaGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758121168; c=relaxed/simple; bh=e58G12JLqnXNH3bmsDr9zq3Y8CjoNiQE1wFrYZs99lc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ckszuhwvD2/7SfThL//fRxM8lSR+OzAkFIp8JZpiBVNBiFR8nKSZhQEvbi/PUZQIa225c/tHGpPW5+Ueij5PIzNgQiPb6CjhLQpATLGhYfVBazUlDvMFP+7EkmbnIdz4lfFtNVTPRRiWBEjwW4xVGSf20TYUF3xzppdwi+dWDUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qA5bxGY7; 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="qA5bxGY7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 851DEC4CEE7; Wed, 17 Sep 2025 14:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758121168; bh=e58G12JLqnXNH3bmsDr9zq3Y8CjoNiQE1wFrYZs99lc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qA5bxGY7xVvpXSVMpv5GOejT0dV901OXJjoiY/3T2L2r4veE76mP4pBUQfYajwyNG 4ARD45yVxfCHzDSibU9bqMC8wlpy24BlQqIu5vNJGJrL+O7Vr+DAEP1VK8F4Coq292 lcbErrAaIH6S3wK1qwyR2EeglyNT9RmF+VVsBj7Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53358: ksmbd: fix racy issue under cocurrent smb2 tree disconnect Date: Wed, 17 Sep 2025 16:56:57 +0200 Message-ID: <2025091721-CVE-2023-53358-29d3@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=2234; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QJcr8optdFodtF3UTfoKB7nITbJoZ+iO7q2xlFMsN5s=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmnzoi6f4q7cF7nOCPzaTnnS7nXio5l3iiYdmZzXck03 n77Jx6tHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR8k6GuWLP+3LOrJ842fiR PMumjJB8X3Oedob5UadTk6sS9ywT33Xn2rpTb79cP3M7CgA= 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 racy issue under cocurrent smb2 tree disconnect There is UAF issue under cocurrent smb2 tree disconnect. This patch introduce TREE_CONN_EXPIRE flags for tcon to avoid cocurrent access. The Linux kernel CVE team has assigned CVE-2023-53358 to this issue. Affected and fixed versions =========================== Fixed in 5.15.145 with commit b36295c17fb97424406f0c3ab321b1ccaabb9be8 Fixed in 6.1.28 with commit bd80d35725a0cf4df9307bfe2f1a3b2cb983d8e6 Fixed in 6.2.15 with commit dc1c17716c099c90948ebb83e2170dd75a3be6b6 Fixed in 6.3.2 with commit 39366b47a59d46af15ac57beb0996268bf911f6a Fixed in 6.4 with commit 30210947a343b6b3ca13adc9bfc88e1543e16dd5 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-53358 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/ksmbd/mgmt/tree_connect.c fs/ksmbd/mgmt/tree_connect.h fs/ksmbd/smb2pdu.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/b36295c17fb97424406f0c3ab321b1ccaabb9be8 https://git.kernel.org/stable/c/bd80d35725a0cf4df9307bfe2f1a3b2cb983d8e6 https://git.kernel.org/stable/c/dc1c17716c099c90948ebb83e2170dd75a3be6b6 https://git.kernel.org/stable/c/39366b47a59d46af15ac57beb0996268bf911f6a https://git.kernel.org/stable/c/30210947a343b6b3ca13adc9bfc88e1543e16dd5