CVE-2025-37899: Linux kernel · ksmbd: fix use-after-free in session logoff
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 25 Nov 2026, 04:13 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 May 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel. Users and administrators should apply the official kernel updates that include this patch to remediate the issue. Since this is a kernel-level vulnerability, upgrading to a fixed kernel version is the recommended mitigation.
Description
CVE-2025-37899 is a use-after-free vulnerability in the ksmbd component of the Linux kernel related to session logoff handling. The issue arises because the sess->user object may still be accessed by another thread during session teardown, potentially leading to memory corruption. This vulnerability has been resolved in the Linux kernel.
References
- nvd.nist.gov/vuln/detail/CVE-2025-37899 (opens in a new tab)
- git.kernel.org/stable/c/02d16046cd11a5c037b28c12ffb818c56dd3ef43 (opens in a new tab)
- git.kernel.org/stable/c/2fc9feff45d92a92cd5f96487655d5be23fb7e2b (opens in a new tab)
- git.kernel.org/stable/c/70ad6455139e26e85f48f95d0e21f351c1909342 (opens in a new tab)
- git.kernel.org/stable/c/931dc8a3670f71c45c0b1379ea4e92dafbda1aca (opens in a new tab)
- git.kernel.org/stable/c/d5ec1d79509b3ee01de02c236f096bc050221b7f (opens in a new tab)
- news.ycombinator.com/item?id=44081338 (opens in a new tab)
- sean.heelan.io/2025/05/22/how-i-used-o3-to-find-cve-2025-37899-a-remote-zeroday-vulnerability-in-the-linux-kernels-smb-implementation (opens in a new tab)