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 1F05830BB82 for ; Thu, 18 Sep 2025 13:36:27 +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=1758202588; cv=none; b=EEcMTTCedy/XyLI6eHmcqo11V2U5kz5wF091me4MTeetV6h0HvDk+2g2XgXOtRNzZN6lZogFdEkQYPyALOyCd8NfKoosqXDsD1ivDCKsz46UpR4M28mLpeWBWZk9bMZK/DrhmKdBPI58RPdiPm87Yrz2v1oQKRBXKz2vkM9RkH4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202588; c=relaxed/simple; bh=qpV4H3By0w8LWnSKGYPgwjGGvRhgSDjslMxrJpKltBg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bOTgP8OLNMVC0tGZ5zL4srNt+Gqyf71ht7LUiUgsSScGCd4+T6wUSTaYZV7W/vUzKE1pgQ6j19hdOodPq3wfaU00gwVJR+2LlhsomnuFa+/a7EhKCb4/Rq9RnOcbMfCHnve++J2n1Tww9kKWpZQovDFtVIeblQHc1btmLHKyQQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qwkHr7ep; 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="qwkHr7ep" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36006C4CEE7; Thu, 18 Sep 2025 13:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202587; bh=qpV4H3By0w8LWnSKGYPgwjGGvRhgSDjslMxrJpKltBg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qwkHr7epapY9qkg4uDRmnVqxibct6FfI7tET5Xv4udrdm/8gGM3UtbXxsb/M3XkNq yC9XV0MokIuzkIAYRqcFYIVwn05Gu7eXxrh2C1e4LOdfGjOqLmws6W1EzL3hnan7a7 AjvTmCPJbsVc6OJdFxNCfAvIB/4VRJOcjcZUvetg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53377: cifs: prevent use-after-free by freeing the cfile later Date: Thu, 18 Sep 2025 15:34:22 +0200 Message-ID: <2025091856-CVE-2023-53377-baaf@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=2550; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CTJluUBNGSvkCp4u9+fmz7Ir7e2bsX721VeQUBaDUfo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuFxmqoXmrD7eG7lVWmYKR4WQZ0P9M5kJ8c6JHGnN0 yff/zSxI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbivZlhfmih1ac8Te2n+R9s diVdEBU73678g2HB5aRnj/aVZssxmjUcC+A8d0ng64tnAA== 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: prevent use-after-free by freeing the cfile later In smb2_compound_op we have a possible use-after-free which can cause hard to debug problems later on. This was revealed during stress testing with KASAN enabled kernel. Fixing it by moving the cfile free call to a few lines below, after the usage. The Linux kernel CVE team has assigned CVE-2023-53377 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 76894f3e2f71177747b8b4763fb180e800279585 and fixed in 6.1.39 with commit 4fe07d55a5461e66a55fbefb57f85ff0facea32b Issue introduced in 6.1 with commit 76894f3e2f71177747b8b4763fb180e800279585 and fixed in 6.3.13 with commit b6353518ef8180816e863aa23b06456f395404d6 Issue introduced in 6.1 with commit 76894f3e2f71177747b8b4763fb180e800279585 and fixed in 6.4.4 with commit d017880782cf71f8820ee4a2002843893176501d Issue introduced in 6.1 with commit 76894f3e2f71177747b8b4763fb180e800279585 and fixed in 6.5 with commit 33f736187d08f6bc822117629f263b97d3df4165 Issue introduced in 6.0.16 with commit 2d046892a493d9760c35fdaefc3017f27f91b621 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-53377 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/smb2inode.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/4fe07d55a5461e66a55fbefb57f85ff0facea32b https://git.kernel.org/stable/c/b6353518ef8180816e863aa23b06456f395404d6 https://git.kernel.org/stable/c/d017880782cf71f8820ee4a2002843893176501d https://git.kernel.org/stable/c/33f736187d08f6bc822117629f263b97d3df4165