
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40286 is a memory leak vulnerability in the Linux kernel's SMB server implementation, specifically within the smb2_read() function in the ksmbd subsystem. The flaw occurs when ksmbd_vfs_read() fails and the previously allocated memory is not freed due to a missing kvfree() call. It was published on December 6, 2025, and affects Linux kernel versions prior to the patched releases 6.1.159, 6.6.117, 6.12.59, 6.17.9, and 6.18. The CVSS category is estimated as Medium, with an EPSS score of approximately 0.018% (Red Hat CVE, MSRC).
The root cause is a missing memory deallocation (CWE-401: Missing Release of Memory after Effective Lifetime) in the smb2_read() function within the Linux kernel's ksmbd SMB server module. When ksmbd_vfs_read() encounters an error and returns early, the buffer allocated prior to the call is not released via kvfree(), resulting in a kernel memory leak. The fix, applied across multiple stable kernel branches, adds the missing kvfree() call on the error path to ensure proper cleanup (Red Hat CVE, EUVD). No public proof-of-concept exploit code has been identified.
Successful exploitation of this vulnerability could lead to gradual memory exhaustion on Linux systems running the ksmbd SMB server. Repeated failed SMB read operations would cause kernel memory to be leaked without being reclaimed, potentially resulting in performance degradation, increased memory pressure, and in severe cases, system instability or denial of service. The vulnerability does not appear to enable code execution or privilege escalation, limiting its primary impact to availability (Red Hat CVE, EUVD).
There is no known public proof-of-concept exploit for CVE-2025-40286, and no evidence of active in-the-wild exploitation has been reported. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.018%, reflecting a very low probability of exploitation in the near term (Red Hat CVE, MSRC).
The Linux kernel maintainers have released patches across multiple stable branches. Administrators should update to kernel version 6.1.159, 6.6.117, 6.12.59, 6.17.9, or 6.18 or later, depending on their distribution's supported kernel series. As a temporary workaround, restricting network-level access to SMB (TCP port 445) can reduce exposure on systems where ksmbd is enabled. Distributions such as Debian have also issued advisories and updated packages (Red Hat CVE, Debian LTS).
The vulnerability received routine coverage as part of the December 2025 Linux kernel security update cycle, with mentions in Rapid7's Patch Tuesday summary and Lansweeper's December 2025 patch roundup. No significant researcher commentary or notable social media discussion beyond automated CVE tracking has been observed (Rapid7 Blog, Lansweeper Blog).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."