From mboxrd@z Thu Jan 1 00:00:00 1970 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 0FADE1E5218 for ; Wed, 16 Apr 2025 14:15:44 +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=1744812944; cv=none; b=YF/cW/hm3BNXQSVXZQtHI7eJLXNtAITZCdDQNL0Lcxcy4F5gJdNsH8KGrX9QeaBS09twKxvp36vAOLoYFuV+DtX5BPTYUuGwRFnVTpvjs2sLfeQ194Z/srl09e1mwyh3RPZiVJsYbGGs3hStlCgsUWshIVLCfsig1tp71BfEhvs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812944; c=relaxed/simple; bh=xxDCwisH2GWxhan3XS9QiiXPNCoBxIJgTWbtImhoP5o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CyyZfe0UUcaAyKk7kr86Ow5s8B/UYJRpFbTH30YE1x8Qc9+8Z5lNBAsXgLYxn1M359S5777j+EG3Ylf1cYOFS0NoAb8vP9OtVT7KbuB9+zv5VNz6kwqSYSLkLHTNPyA9DJ7pqsLUV6/DXRNIBztQilVWyakIDsb5zgt8zx10etw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hBPxIFGk; 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="hBPxIFGk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 725F0C4CEE2; Wed, 16 Apr 2025 14:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812943; bh=xxDCwisH2GWxhan3XS9QiiXPNCoBxIJgTWbtImhoP5o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hBPxIFGkH8u/Q0mxtQ/hNohIIn58QB5WkZHnOfDOal1ZETkEnY0WxyYmE3bFfciB+ yZTCT2Ix37w6E0yzl5uzqWhULTT1UHrCM7YPVM8zrQ3+Rz/SybOtG4zMWffq0SBU4e h8XLg5Lz1+pMyp2WaHTbf8U5eKSo1cS9F5vrW+PE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22037: ksmbd: fix null pointer dereference in alloc_preauth_hash() Date: Wed, 16 Apr 2025 16:12:08 +0200 Message-ID: <2025041658-CVE-2025-22037-d1bb@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=2281; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xxDCwisH2GWxhan3XS9QiiXPNCoBxIJgTWbtImhoP5o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d60LU9qxSVDObrYi4321ydHTbR/FvrBK/z/tqnVZT VLuea+YjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIWR3DHB6V0qnPg08sXtoV nv3xM2/2wsVHXjPM01/1seP/4XNrJlx76l1WpyY45d+NXQA= 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 null pointer dereference in alloc_preauth_hash() The Client send malformed smb2 negotiate request. ksmbd return error response. Subsequently, the client can send smb2 session setup even thought conn->preauth_info is not allocated. This patch add KSMBD_SESS_NEED_SETUP status of connection to ignore session setup request if smb2 negotiate phase is not complete. The Linux kernel CVE team has assigned CVE-2025-22037 to this issue. Affected and fixed versions =========================== Fixed in 6.12.23 with commit ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad Fixed in 6.13.11 with commit 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d Fixed in 6.14.2 with commit b8eb243e670ecf30e91524dd12f7260dac07d335 Fixed in 6.15-rc1 with commit c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780 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-2025-22037 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/connection.h fs/smb/server/mgmt/user_session.c fs/smb/server/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/ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad https://git.kernel.org/stable/c/8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d https://git.kernel.org/stable/c/b8eb243e670ecf30e91524dd12f7260dac07d335 https://git.kernel.org/stable/c/c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780