CVE-2025-40286
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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.

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Community reactions

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68454HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 13, 2026
CVE-2026-68452HIGH7.8
  • Linux Kernel logoLinux Kernel
  • kernel-headers
NoYesAug 13, 2026
CVE-2026-68451HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-oracle-5.15
NoYesAug 13, 2026
CVE-2026-68453HIGH7.1
  • Linux Kernel logoLinux Kernel
  • kernel-uki-virt-addons
NoYesAug 13, 2026
CVE-2026-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fips
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management