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 3FBE2D531 for ; Tue, 9 Dec 2025 00:03:47 +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=1765238627; cv=none; b=ieyX8oznAEn1jgfhxjssChbHfuPR3Z+Vw6wl/iL73IwL3w5VFeahJ+MHOKW/Zw1VNTYTLwraDqt6d/aS3KR2RqOg8doXgkpm+9L/Nvnv3X3qrDqa4cfzRLPTv53KQFZYxdbtFLNhD1hJGMz0OYKuoGK7uDQKElcSmz2S1j2qOjw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765238627; c=relaxed/simple; bh=5NSb9HblFFNadKS8ZygLIg9VlSWwTSm8++UmvzTviGA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LZtHMKzy0HTNFhlLGU+B6PPsQfJRcB/tC0Hw5SVjyPxINJmmVkjPJReatHn6cmnWXvwx4IXecMapdsR1UORE5gTKHV92x186AVOQ+zAhPEvdaNkGfYXW6lxHOc6ld71w63k0geP4V7Hh4/IrU0LUsY52ROR14rVmceNVC3kLVfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HbbRmTM4; 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="HbbRmTM4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F618C4CEF1; Tue, 9 Dec 2025 00:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765238627; bh=5NSb9HblFFNadKS8ZygLIg9VlSWwTSm8++UmvzTviGA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=HbbRmTM4PGm7OCAfheqGiIu+AQHrhU6Fg/DLhW3JNj4zubtbz5PN4Ct9j4JnktXaR dHPwhj+Qm8h2C1Bv9lSQrPc7SIRgaM4MqbaIqn3JarxID2Sc6qWNDuWt3IEC7UjyAZ pzLelSQnlNqCd3yXNNdn3z2UVcrNTs5nDWp9OUJ0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53794: cifs: fix session state check in reconnect to avoid use-after-free issue Date: Tue, 9 Dec 2025 09:02:15 +0900 Message-ID: <2025120941-CVE-2023-53794-8912@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2010; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AuzogyYH1xm9LRp3MTzURGtzE451NXt2s/NTGuGyQUc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmaU+1F26oerz8pQvTpMR36XZ7V2gtXcFhrBcnVnF/6 vcEBbbnHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR5XoMCzb/ObXxUvw0ocP/ g8yDOid9vRIzr4JhFlN0gu4jzhPVBVtDeXmZmh/tSvC/CgA= 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: cifs: fix session state check in reconnect to avoid use-after-free issue Don't collect exiting session in smb2_reconnect_server(), because it will be released soon. Note that the exiting session will stay in server->smb_ses_list until it complete the cifs_free_ipc() and logoff() and then delete itself from the list. The Linux kernel CVE team has assigned CVE-2023-53794 to this issue. Affected and fixed versions =========================== Fixed in 6.1.47 with commit 7e4f5c3f01fb0e51ca438e43262d858daf9a0a76 Fixed in 6.4.12 with commit 759ffc164d95a32c09528766d74d9b4fb054e8f4 Fixed in 6.5 with commit 99f280700b4cc02d5f141b8d15f8e9fad0418f65 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-53794 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/client/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/7e4f5c3f01fb0e51ca438e43262d858daf9a0a76 https://git.kernel.org/stable/c/759ffc164d95a32c09528766d74d9b4fb054e8f4 https://git.kernel.org/stable/c/99f280700b4cc02d5f141b8d15f8e9fad0418f65