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 DE09C2147F4 for ; Thu, 27 Mar 2025 16:46:23 +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=1743093983; cv=none; b=i7uNDyzl6oCQenPJkSfXCLOKrDIe3W3u534IRja4ogWVAPqWdyNr6PEHFHZCIqK0EnNKItVEC9nMlAQ5YkrECO1JFR64WckdGgMWs+lKzQaGigQf/t9ToelO/xGdhZBYop7Cn8n+jpGUu5s7LBgSkAHSZ+xSkguWy1igi9J/91c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093983; c=relaxed/simple; bh=/3pexH3mbnGEymjouPQmYcJnP2Gp6Yd5aTlJh6HBZbU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SE1puIBxIiwxCjm5p0ydtopnXULSZJ3VKMn6Un6T32V1CelBGobA0Mqd7/oUSebBjZk+bgfhGs6A3j5GnxjIf31Lo5okR+tf1IpfncUmoZbtoy9BNLvFiSNi72ocfk2BXbsyBF1AKQDa6cwgNMUr9z1/9XO7lUQAxW7wSYmOs40= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pEOkhzk4; 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="pEOkhzk4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E489C4CEDD; Thu, 27 Mar 2025 16:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093983; bh=/3pexH3mbnGEymjouPQmYcJnP2Gp6Yd5aTlJh6HBZbU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pEOkhzk4fxJGTKSq3OPOBwK7EOxRHSXYRPcV6jT85WgJ0ZTJlAVZWIamUTAiDDy27 Kt+/YTi4hNjOR3bcj1nmbZHRzC1EzyJyFGbP2tnxaQvmaSEMagD+RucBMWkL0KR4e5 wPJDnjtR8Qpc4f8ugkjjiQU3L2LDSNTASzkz0KhU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53006: cifs: Fix oops due to uncleared server->smbd_conn in reconnect Date: Thu, 27 Mar 2025 17:43:53 +0100 Message-ID: <2025032713-CVE-2023-53006-209f@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=2839; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/3pexH3mbnGEymjouPQmYcJnP2Gp6Yd5aTlJh6HBZbU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPGxTfz5ixUeSV0Cs//T2njJb+37jxMpfdnVVxD7pnb mD+b+D8pCOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmsu43wzw151iGE3PzN+i2 /uANn7InMKmYNZxhvvOpSc0xFXIzChpPzUq6GzbN5N3lPgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: cifs: Fix oops due to uncleared server->smbd_conn in reconnect In smbd_destroy(), clear the server->smbd_conn pointer after freeing the smbd_connection struct that it points to so that reconnection doesn't get confused. The Linux kernel CVE team has assigned CVE-2023-53006 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 8ef130f9ec27973f7b49e20c5a3b9134ca33026c and fixed in 4.19.272 with commit a9640c0b268405f2540e8203a545e930ea88bb7d Issue introduced in 4.16 with commit 8ef130f9ec27973f7b49e20c5a3b9134ca33026c and fixed in 5.4.231 with commit 91be54849d5392050f5b847b42bd5e6221551ac8 Issue introduced in 4.16 with commit 8ef130f9ec27973f7b49e20c5a3b9134ca33026c and fixed in 5.10.166 with commit e037baee16e0b9ace7e730888fcae9cec11daff2 Issue introduced in 4.16 with commit 8ef130f9ec27973f7b49e20c5a3b9134ca33026c and fixed in 5.15.91 with commit 4b83bc6f87eedab4599b0123e572a422689444be Issue introduced in 4.16 with commit 8ef130f9ec27973f7b49e20c5a3b9134ca33026c and fixed in 6.1.9 with commit 5109607a4ece7cd8536172bf7549eb4dce1f3576 Issue introduced in 4.16 with commit 8ef130f9ec27973f7b49e20c5a3b9134ca33026c and fixed in 6.2 with commit b7ab9161cf5ddc42a288edf9d1a61f3bdffe17c7 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-53006 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/cifs/smbdirect.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/a9640c0b268405f2540e8203a545e930ea88bb7d https://git.kernel.org/stable/c/91be54849d5392050f5b847b42bd5e6221551ac8 https://git.kernel.org/stable/c/e037baee16e0b9ace7e730888fcae9cec11daff2 https://git.kernel.org/stable/c/4b83bc6f87eedab4599b0123e572a422689444be https://git.kernel.org/stable/c/5109607a4ece7cd8536172bf7549eb4dce1f3576 https://git.kernel.org/stable/c/b7ab9161cf5ddc42a288edf9d1a61f3bdffe17c7