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 C3A2B2571B0 for ; Tue, 20 May 2025 15:23:23 +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=1747754603; cv=none; b=beJaN1cYryd7SG1FCmLS4f9DUJaefBhPFUzOfCUWDLgMR2ITHZ7tRpyoGRskqmiZIA+DLea5LlNG+YUVKx5s5HOxexIhXGVLTJg6x3fVB8AJUL/J1f81sv23ybk+OYB1c/Cof1w/vQ2AAF9n9S+sf13HCJXt/6vqRIl9UB3h144= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754603; c=relaxed/simple; bh=ldWCR/Yo3u8S9HHXD8n5n+DnrRSakosGqmf9xjCt7dI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DCOeIllvEUHT5dSVddAq5tBktiIZBayGq17W79uj9K9qRm9nYrHSFwkt+BTF1/vQC3Bovv/dmFoqxuZSeZInz+dI7jOMq4fnw9mGxpJ022zfV1jw1WIABA3uGk2+h3EhVyUrMzMb/zZm9bpYQidormnfe8mdjLvTicvqx8GLHak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y8JHsV5R; 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="Y8JHsV5R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12AEEC4CEE9; Tue, 20 May 2025 15:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747754603; bh=ldWCR/Yo3u8S9HHXD8n5n+DnrRSakosGqmf9xjCt7dI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Y8JHsV5R1fGEJVEB0T7rAU3m/XhKkGSFmNW5ZO3q81AlRVEEy4/Xq7fTAT3H+BW/h 7OXz2o721TZv0NW+l9eZYZYSPFtjHfFHarZBtzrmRvqtufmwpYdvZ7VVH9yRcDQMph acMztSzp0E4S3JOTVzvUA29oLwe0YD4Lk2oBcaOI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37899: ksmbd: fix use-after-free in session logoff Date: Tue, 20 May 2025 17:21:56 +0200 Message-ID: <2025052055-CVE-2025-37899-7366@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=2012; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hLDTy7yAmf6OJpr6+5O03dpG4+32M6+EqvwySszYMhw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk684SDLtXHzzn65pPMkY39GqZFXq9kt5gHPSm9emHGC k7D0rdbOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiZ90Y5vB27JtpLxNr/Yvr 5/v/Cj/eNnPqpDDMr9934/POD2a3rE6+mKB+wOhoDofSFAA= 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 session logoff The sess->user object can currently be in use by another thread, for example if another connection has sent a session setup request to bind to the session being free'd. The handler for that connection could be in the smb2_sess_setup function which makes use of sess->user. The Linux kernel CVE team has assigned CVE-2025-37899 to this issue. Affected and fixed versions =========================== Fixed in 6.12.28 with commit d5ec1d79509b3ee01de02c236f096bc050221b7f Fixed in 6.14.6 with commit 02d16046cd11a5c037b28c12ffb818c56dd3ef43 Fixed in 6.15-rc5 with commit 2fc9feff45d92a92cd5f96487655d5be23fb7e2b 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-37899 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/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/d5ec1d79509b3ee01de02c236f096bc050221b7f https://git.kernel.org/stable/c/02d16046cd11a5c037b28c12ffb818c56dd3ef43 https://git.kernel.org/stable/c/2fc9feff45d92a92cd5f96487655d5be23fb7e2b