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 6A87C25F98D for ; Tue, 20 May 2025 15:24:26 +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=1747754666; cv=none; b=jgufhFwGJ27ZZNfHhv9156XjuvavFK1/D3u2iLuYTNAbo72/+qtFnc0diOhzYrKs4VTA2Bz+YTPlR/GCPxp5bC/hX976MZDviWRcIjE/TkD9Jt2rLXiyyoBHpNuLrNnvaDibE1c8Hse9v9X+ZFYiK+4vKqfZVfNgsKirpRO1iL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754666; c=relaxed/simple; bh=0s0hdp6rXvJ+Sd/iMpnvPoKg9jDWlTlOOnr7OklkYcQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aNyxp4H2Q9x5O790zgjNjBzISltlF25nlHtdXAj/6puB2k5CBS1N2aJiWrseiL09sNH5xgWSNq5tyJpW+Mi9AYyQC+0FFPVTwge3flFUUIgGtt5VQuvo5fNOYCoIK3Zwto/qEJ/RM8bHjTnpbAiZw3EAf1CKDoO0q853Xx5uFak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wkAXFRGz; 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="wkAXFRGz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCD08C4CEE9; Tue, 20 May 2025 15:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747754666; bh=0s0hdp6rXvJ+Sd/iMpnvPoKg9jDWlTlOOnr7OklkYcQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wkAXFRGzAs00m1VlJW0TYgBizbi5qBSo4egcfvH6FRqj2pMkipATyPb2VAEzFL/rP CTOYuS5yDx9Kze8rfanpSekTuZFgZ6dWGOnANKtx7se6kAroqlGfQqOXFqTN854sTr D8EsVfDwbIvvl/4REOmvbInTZ62knb6uGuPT1KGQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37924: ksmbd: fix use-after-free in kerberos authentication Date: Tue, 20 May 2025 17:22:21 +0200 Message-ID: <2025052004-CVE-2025-37924-ec7d@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=2343; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xt/SwlCNymjPRXWa3HhD3UFfScyMx9f9RhWpTIH0/so=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk682TCrgd5xJpUXlg7q45Ve0p2kkV/5MS8+mqropjU/ QKlgT0dsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMBHeTIYFO6d9lOlfYyZjJBrP ZqQXsij/k1c0w4LFuWaCrIdeafu8+VzzmM2z4qDWNS4A 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 use-after-free in kerberos authentication Setting sess->user = NULL was introduced to fix the dangling pointer created by ksmbd_free_user. However, it is possible another thread could be operating on the session and make use of sess->user after it has been passed to ksmbd_free_user but before sess->user is set to NULL. The Linux kernel CVE team has assigned CVE-2025-37924 to this issue. Affected and fixed versions =========================== Fixed in 6.1.138 with commit e34a33d5d7e87399af0a138bb32f6a3e95dd83d2 Fixed in 6.6.90 with commit b447463562238428503cfba1c913261047772f90 Fixed in 6.12.28 with commit e18c616718018dfc440e4a2d2b94e28fe91b1861 Fixed in 6.14.6 with commit 28c756738af44a404a91b77830d017bb0c525890 Fixed in 6.15-rc5 with commit e86e9134e1d1c90a960dd57f59ce574d27b9a124 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-37924 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 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/e34a33d5d7e87399af0a138bb32f6a3e95dd83d2 https://git.kernel.org/stable/c/b447463562238428503cfba1c913261047772f90 https://git.kernel.org/stable/c/e18c616718018dfc440e4a2d2b94e28fe91b1861 https://git.kernel.org/stable/c/28c756738af44a404a91b77830d017bb0c525890 https://git.kernel.org/stable/c/e86e9134e1d1c90a960dd57f59ce574d27b9a124