[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025052055-CVE-2025-37899-7366@gregkh>
Date: Tue, 20 May 2025 17:21:56 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-37899: ksmbd: fix use-after-free in session logoff
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists