Use-After-Free Vulnerability in Linux Kernel - CVE-2025-37952
Summary
CVE-2025-37952: 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 refe... Affects linux versions 6.1.106-1 – 6.9.9-1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of many operating systems, including various distributions of Debian. It manages system resources and hardware communication, providing essential services for software applications. The kernel is designed to be robust and secure, but like any software, it can have vulnerabilities. CVE-2025-37952 is a critical vulnerability that affects the file handling mechanism within the kernel, specifically in the ksmbd (Kernel SMB) module, which facilitates file sharing over the SMB protocol.
Vulnerability Detail
CVE-2025-37952 is a use-after-free vulnerability that occurs when one thread destroys a file while another thread still holds a reference to it. This can lead to undefined behavior, including potential system crashes or exploitation by malicious actors. The existing reference count checks in the kernel are insufficient to prevent this race condition, making it a serious security concern.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
Currently, there are no specific workarounds provided for this vulnerability. It is recommended to apply the patch as soon as it becomes available.
Conclusion
CVE-2025-37952 is a significant vulnerability in the Linux kernel that poses serious risks to system security. Users are urged to update their systems promptly to mitigate potential threats. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for linux →
FAQ
CVE-2025-37952 is a use-after-free vulnerability in the Linux kernel's ksmbd module, which can lead to system instability or exploitation.
If exploited, this vulnerability can allow unauthorized access to system resources, potentially leading to data breaches or system crashes.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
While there are no specific workarounds, it is crucial to monitor your system closely and apply the patch as soon as it is available.
Detailed information about CVE-2025-37952 can be found in the official security advisories and on vulnerability databases.
Related vulnerabilities
Recent vulnerabilities recorded for linux.