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 629162EBB8D for ; Tue, 30 Dec 2025 12:21:18 +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=1767097278; cv=none; b=SqyxD3S2O59HWTFGlM58wlECHSGRe+iIeswUQHaKtX5DncaTJ1s8jOD9euQonRTJDLbosOQ0YJr4JyE7veNsNXGzgYipO3/PONyGV7DLC4ryFNNkTTSr8oCMKNaR2PLWh6Kn+dARNR6itfb/cEqyMh1PXy2Gv3nTcEQ52xz6dNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097278; c=relaxed/simple; bh=yHjlNdLHjdJngeme0SnTWYBlDtKlmrOcgpLI9bxxjJk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S3em8lx8mvvz/BAFbNgmeMOkiMq4irTGYRfGDcoI8i1IGJZ5FWbkmb5iUqw8WKo4lnxO0tVBuwikxVZ6Kli1yRoLU8OM95nmgTTgDC+/JDeuxUMmWDdkrKXu4HDPyR3RLK9+fjo+qIo9s4avki+oNMHEIec8pvNrOK09uauOF/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oNQ/m+zw; 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="oNQ/m+zw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1A27C4CEFB; Tue, 30 Dec 2025 12:21:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097278; bh=yHjlNdLHjdJngeme0SnTWYBlDtKlmrOcgpLI9bxxjJk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=oNQ/m+zwse7gCZ7TptaQtW2+NEvM1dZM8QZt0nbmqXJpW0hxMEaq6EmYQihgGu8OB s+Zlg7Id4SkpUqhv4k3nZyOnwcP5terIgzY6RqpyoUZr4TZRH4rP5PyiYujJkB3wWl CxE67TU3R/I9hTa03Hp164N6uX5F/5uC9Y1qtAzc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54250: ksmbd: avoid out of bounds access in decode_preauth_ctxt() Date: Tue, 30 Dec 2025 13:20:16 +0100 Message-ID: <2025123054-CVE-2023-54250-96bc@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=2307; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t3daFKb/tzjTLAyEite/cltBJ5AftjS0fs2fBjgCvJQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBh7O+vv+wkN9NY6eA/HbpSv7m/N21S/Rzj17XkDiR9 2G5zh6djlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI5DkMCxoPnFOdabq5ZJ2Q AX/Znie3jb4bVDMs2L9s7rXnTMvqY66d+/u30GRLRNOcJgA= 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: avoid out of bounds access in decode_preauth_ctxt() Confirm that the accessed pneg_ctxt->HashAlgorithms address sits within the SMB request boundary; deassemble_neg_contexts() only checks that the eight byte smb2_neg_context header + (client controlled) DataLength are within the packet boundary, which is insufficient. Checking for sizeof(struct smb2_preauth_neg_context) is overkill given that the type currently assumes SMB311_SALT_SIZE bytes of trailing Salt. The Linux kernel CVE team has assigned CVE-2023-54250 to this issue. Affected and fixed versions =========================== Fixed in 5.15.145 with commit 39f5b4b313b445c980a2a295bed28228c29228ed Fixed in 6.1.25 with commit a2f6ded41bec1d3be643c80a5eb97f1680309001 Fixed in 6.2.12 with commit f02edb9debbd36f44efa7567031485892c7df60d Fixed in 6.3 with commit e7067a446264a7514fa1cfaa4052cdb6803bc6a2 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-54250 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/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/39f5b4b313b445c980a2a295bed28228c29228ed https://git.kernel.org/stable/c/a2f6ded41bec1d3be643c80a5eb97f1680309001 https://git.kernel.org/stable/c/f02edb9debbd36f44efa7567031485892c7df60d https://git.kernel.org/stable/c/e7067a446264a7514fa1cfaa4052cdb6803bc6a2