CVE-2025-37899 Details
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.
A use-after-free vulnerability has been identified in the Linux kernel's ksmbd component, which implements the SMB3 protocol in kernel space. This vulnerability occurs in the session logoff handler, where the 'user' object of a session can be freed while still being accessed by another thread. This flaw can lead to kernel memory corruption and potentially allow arbitrary code execution in kernel context.
The vulnerability has been fixed in the official Linux Git repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/02d16046cd11a5c037b28c12ffb818c56dd3ef43 | kernel.org | Patch |
| https://git.kernel.org/stable/c/2fc9feff45d92a92cd5f96487655d5be23fb7e2b | kernel.org | Patch |
| https://git.kernel.org/stable/c/70ad6455139e26e85f48f95d0e21f351c1909342 | kernel.org | |
| https://git.kernel.org/stable/c/931dc8a3670f71c45c0b1379ea4e92dafbda1aca | kernel.org | |
| https://git.kernel.org/stable/c/d5ec1d79509b3ee01de02c236f096bc050221b7f | kernel.org | Patch |
| https://news.ycombinator.com/item?id=44081338 | CVE | ExploitIssue TrackingThird Party Advisory |
| https://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/ | CVE | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.15, < 6.12.28 >= 6.13, < 6.14.6 6.15 rc1 6.15 rc2 6.15 rc3 6.15 rc4 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 6, 2025 | CVE Modified | kernel.org |
| Nov 19, 2025 | Initial Analysis | [email protected] |
| May 24, 2025 | CVE Modified | CVE |
| May 20, 2025 | New CVE Received | kernel.org |