| From bippy-1.2.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2025-37899: ksmbd: fix use-after-free in session logoff |
| |
| 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 |
| =========================== |
| |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.12.28 with commit d5ec1d79509b3ee01de02c236f096bc050221b7f |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.14.6 with commit 02d16046cd11a5c037b28c12ffb818c56dd3ef43 |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.15 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 |