CVE-2025-40286: Linux kernel · smb/server: fix possible memory leak in smb2_read()
Source GCVE Database
Not known to be exploited.
Data as of 25 Nov 2026, 04:13 UTC
Rated Low by Threat Radar's AI analysis · No CVSS score from NVD or the CNA
Exploitation evidence
Disclosed: evidence found.
CVE published 7 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
AI-suggested
A fix has been implemented to address the memory leak by adding the missing kvfree() call. Users should apply the updated Linux kernel version containing this fix once it is available. No additional mitigation steps are indicated.
Description
A memory leak vulnerability in the Linux kernel's SMB server component (smb2_read function) was fixed. The issue occurred when the ksmbd_vfs_read() call failed, leading to missing memory deallocation. The fix involved adding the missing kvfree() call to properly free allocated memory.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40286 (opens in a new tab)
- git.kernel.org/stable/c/0797c6cf3b857cc229ab2bc69552938dcd738d78 (opens in a new tab)
- git.kernel.org/stable/c/63d8706a2c09a0c29b8b0e8a44bc7a1339685de9 (opens in a new tab)
- git.kernel.org/stable/c/6fced056d2cc8d01b326e6fcfabaacb9850b71a4 (opens in a new tab)
- git.kernel.org/stable/c/bfda5422a16651d0bf864ec468b1c216e1b10d91 (opens in a new tab)
- git.kernel.org/stable/c/f1305587731886da37a214cda812ade246c653b0 (opens in a new tab)