CVE-2025-37952 Details
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix UAF in __close_file_table_ids A use-after-free is possible if one thread destroys the file via __ksmbd_close_fd while another thread holds a reference to it. The existing checks on fp->refcount are not sufficient to prevent this. The fix takes ft->lock around the section which removes the file from the file table. This prevents two threads acquiring the same file pointer via __close_file_table_ids, as well as the other functions which retrieve a file from the IDR and which already use this same lock.
A use-after-free vulnerability has been identified in the ksmbd component of the Linux kernel. This issue arises when one thread destroys a file while another thread still holds a reference to it, leading to a potential use-after-free condition. The existing reference count checks are inadequate to prevent this scenario. The vulnerability can be exploited by manipulating file pointers through the __close_file_table_ids function, creating a race condition between threads.
The vulnerability has been addressed by modifying the file closure process to include proper locking, preventing concurrent threads from interfering with each other's file references. Users should apply the latest patches available in the Linux kernel to mitigate this vulnerability.
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/16727e442568a46d9cca69fe2595896de86e120d | kernel.org | Patch |
| https://git.kernel.org/stable/c/21100812657965dd95bc305f6076f62012f34cf4 | kernel.org | |
| https://git.kernel.org/stable/c/36991c1ccde2d5a521577c448ffe07fcccfe104d | kernel.org | Patch |
| https://git.kernel.org/stable/c/9e9841e232b51171ddf3bc4ee517d5d28dc8cad6 | kernel.org | Patch |
| https://git.kernel.org/stable/c/fec1f9e9a650e8e7011330a085c77e7bf2a08ea9 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.15, < 6.6.91 >= 6.7, < 6.12.29 >= 6.13, < 6.14.7 6.15 rc1 6.15 rc2 6.15 rc3 6.15 rc4 6.15 rc5 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 30, 2026 | CVE Modified | kernel.org |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 17, 2025 | Initial Analysis | [email protected] |
| May 20, 2025 | New CVE Received | kernel.org |