[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025052004-CVE-2025-37924-ec7d@gregkh>
Date: Tue, 20 May 2025 17:22:21 +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-37924: ksmbd: fix use-after-free in kerberos authentication
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists