| 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-37924: ksmbd: fix use-after-free in kerberos authentication |
| |
| 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 |
| =========================== |
| |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.1.138 with commit e34a33d5d7e87399af0a138bb32f6a3e95dd83d2 |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.6.90 with commit b447463562238428503cfba1c913261047772f90 |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.12.28 with commit e18c616718018dfc440e4a2d2b94e28fe91b1861 |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.14.6 with commit 28c756738af44a404a91b77830d017bb0c525890 |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.15 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 |