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 BD0D4153BD9 for ; Sat, 16 Aug 2025 13:28:14 +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=1755350894; cv=none; b=SYEbzlQF85ogx5gHaYH0ErRPZ8jXy1NYc1kR6GyXyW+DrXcfjHr/FtS3ixalDlbL5d8HB+VNMngt8emrz5AM9lyPUMvWq1qu+GfdSpSk3c+b+osuvU3JmJy/NqRBoFQUdzxnyvvPSk5hO3hM/bZz/OxwGe0laK12BDgTcIvOHyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755350894; c=relaxed/simple; bh=IGdEwf50AyBN90z51rISD4V4OEIO9gYHmdBRwAzUEIM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b/yw5UzXAMZ0X6u4f0ua/ypGizdWyF3QF8EJkIBGU22sg0UbZ+3v2V8S/beMv1g6vgSVpml8XhGmTedGYO2sAcC/hddD+QMHO4HnbgQ5KRXePL6rUy3DuvvCNnDhuUlWVZuwBXzs3rTqHGgmSyDM9uXk/+Cg8airAD+RgKG8QEs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G4YPAY4q; 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="G4YPAY4q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB40AC4CEEF; Sat, 16 Aug 2025 13:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755350894; bh=IGdEwf50AyBN90z51rISD4V4OEIO9gYHmdBRwAzUEIM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=G4YPAY4qwfy9iQKV+joGR+1Q9su21NTRA9p8pwf3AfPB8kjAhTFVj4zHAzcnGbDnS 72WeH8rCs37NR7uxLvRo5X//S36mxjDPB1oecgSHIELyD578aUEFx6OcX01wL+pzwN 94HENcH9hI5zVtSxpNf0JTqPEPbuAVWG3dAm3K7Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-3865: ksmbd: fix out-of-bound read in smb2_write Date: Sat, 16 Aug 2025 15:28:02 +0200 Message-ID: <2025081601-CVE-2023-3865-95e5@gregkh> X-Mailer: git-send-email 2.50.1 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=2082; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dy/i9QN29jfneGRWscdoplzdAt3Z7j6D9yD+wXrLJW4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkL2pMexZTFPf3nefJBf+AJvwcmR1c1NNdW9/Yt/spa0 73rr5h9RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEZyfDgra3QW8b/Or3fb16 ST1pX8SujzqXZBkWrOE6XzlZxn6VXIiaT+ftJieHW3v6AQ== 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 out-of-bound read in smb2_write ksmbd_smb2_check_message doesn't validate hdr->NextCommand. If ->NextCommand is bigger than Offset + Length of smb2 write, It will allow oversized smb2 write length. It will cause OOB read in smb2_write. The Linux kernel CVE team has assigned CVE-2023-3865 to this issue. Affected and fixed versions =========================== Fixed in 5.15.121 with commit 3813eee5154d6a4c5875cb4444cb2b63bac8947f Fixed in 6.1.36 with commit c86211159bc3178b891e0d60e586a32c7b6a231b Fixed in 6.3.10 with commit 58a9c41064df27632e780c5a3ae3e0e4284957d1 Fixed in 6.4 with commit 5fe7f7b78290638806211046a99f031ff26164e1 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-3865 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/smb2misc.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/3813eee5154d6a4c5875cb4444cb2b63bac8947f https://git.kernel.org/stable/c/c86211159bc3178b891e0d60e586a32c7b6a231b https://git.kernel.org/stable/c/58a9c41064df27632e780c5a3ae3e0e4284957d1 https://git.kernel.org/stable/c/5fe7f7b78290638806211046a99f031ff26164e1