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 D21023CF68 for ; Wed, 21 Feb 2024 07:26:13 +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=1708500373; cv=none; b=louqgzjElW/2ITWAX8SXBwiC/1jUujEPb6XNIuy8/MWEptZhXXSZplGF1+xRJgoj0YR+YLr0r2Lg5QE1dbKeTQ9ue+F1r9CfjbbonRrNfXZBGuPjHk+/Yi6MHQ1gbDIPbXDsIxl6d677lgB/pJJo5j7Bf5Mc9v38TqMdJbS5kO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708500373; c=relaxed/simple; bh=nMNLAr8Gk+U0r7BLbFeNoWVAB1QftHwdCT8JdFY9NfI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TInzqu6BTmBVSbKAZnyM0tw9hZIjaYRH9J1MbcuO6meOL85eTp8KcSm51NDblRrvXlHCtkNLlwHe+0fF94c3re5qUDWnHrBQbNpU8q4ye8wIBp5VT/aIILF3Dp3EQY4WRDh6T5VwTdjuAbx3PDzDDYnIeGuypldow1jhR2EhoAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tMIjkuzh; 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="tMIjkuzh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1FEAC43390; Wed, 21 Feb 2024 07:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708500373; bh=nMNLAr8Gk+U0r7BLbFeNoWVAB1QftHwdCT8JdFY9NfI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tMIjkuzhYgLP5T1BdFGQLRNxbeOgK4AJ3vGiOJABDf6gCPhc4YKlQYDVuVrg857DQ oCa1u15cyhNod2eCuNoz4KgwA551bohxaRHQOCwggdUbQq15kPsCZjvW27mRhFfrcW J6NsOzI9Vo4qk1PiYEgYJ/k7FezQbHYeqBhRAJbE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52440: ksmbd: fix slub overflow in ksmbd_decode_ntlmssp_auth_blob() Date: Wed, 21 Feb 2024 08:25:22 +0100 Message-ID: <2024022123-glance-wrinkle-26c1@gregkh> X-Mailer: git-send-email 2.43.2 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=2096; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nMNLAr8Gk+U0r7BLbFeNoWVAB1QftHwdCT8JdFY9NfI=; b=owGbwMvMwCRo6H6F97bub03G02pJDKlXlya72W5T17hv3LfFLPaV7QOvn4aRHhxnuz36l09wd bl1RrW8I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayYwXDgstGZ/OD/1qs3/d9 3aJvXfu6HrLcmMIwvzr/HsNyo9tauxzmvRRa9dv4+ME5zwE= 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: ksmbd: fix slub overflow in ksmbd_decode_ntlmssp_auth_blob() If authblob->SessionKey.Length is bigger than session key size(CIFS_KEY_SIZE), slub overflow can happen in key exchange codes. cifs_arc4_crypt copy to session key array from SessionKey from client. The Linux kernel CVE team has assigned CVE-2023-52440 to this issue. Affected and fixed versions =========================== Fixed in 5.15.145 with commit bd554ed4fdc3 Fixed in 6.1.52 with commit 30fd6521b2fb Fixed in 6.4.15 with commit 7f1d6cb0eb6a Fixed in 6.5.2 with commit ecd7e1c562cb Fixed in 6.6 with commit 4b081ce0d830 Please see https://www.kernel.org or 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-52440 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/auth.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/bd554ed4fdc3d38404a1c43d428432577573e809 https://git.kernel.org/stable/c/30fd6521b2fbd9b767e438e31945e5ea3e3a2fba https://git.kernel.org/stable/c/7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4 https://git.kernel.org/stable/c/ecd7e1c562cb08e41957fcd4b0e404de5ab38e20 https://git.kernel.org/stable/c/4b081ce0d830b684fdf967abc3696d1261387254