CVE-2025-40328: Linux kernel · smb: client: fix potential UAF in smb2_close_cached_fid()
Affects Linux kernelSource CVE Database V5
Not known to be exploited · CVSS 8.8 High · fixed in cb52d9c86d70298de0ab7c7953653898cbc0efd6 : patch Linux kernel soon.
Data as of 30 Oct 2026, 12:49 UTC
Thin evidence
One scorer or none| CNA (Linux) | CVSS 3.1 | 8.8 |
|---|
- CISA SSVC
- Exploitation
- No evidence of active exploitation and no public proof of concept
- Automatable
- Attackers cannot reliably automate steps 1–4 of the kill chain
- Technical impact
- Total control over the software or total information disclosure
CISA SSVC assessment, 2026-10-15.
- Patch
- Available – fixed in cb52d9c86d70298de0ab7c7953653898cbc0efd6, bdb596ceb4b7c3f28786a33840263728217fbcf5, bb3355ce9dcaba1b4a766f98b2ad373cab6cd626 +2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 9 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 30 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in– |
AI-suggested
A fix is available in the Linux kernel as indicated by the fixed commit versions. Users and administrators should update their Linux kernel to a version that includes the fix identified by the provided commit hashes. No additional mitigation steps are specified by the vendor advisory.
Description
CVE-2025-40328 is a high-severity use-after-free vulnerability in the Linux kernel's SMB client implementation. The flaw occurs in the smb2_close_cached_fid() function, where a reference count handling race condition can lead to use-after-free. This issue has been fixed by changing the reference count release mechanism to ensure proper locking. The vulnerability affects Linux kernel version 6.1.
References
- git.kernel.org/stable/c/bb3355ce9dcaba1b4a766f98b2ad373cab6cd626 (opens in a new tab)
- git.kernel.org/stable/c/cb52d9c86d70298de0ab7c7953653898cbc0efd6 (opens in a new tab)
- git.kernel.org/stable/c/065bd62412271a2d734810dd50336cae88c54427 (opens in a new tab)
- git.kernel.org/stable/c/bdb596ceb4b7c3f28786a33840263728217fbcf5 (opens in a new tab)
- git.kernel.org/stable/c/734e99623c5b65bf2c03e35978a0b980ebc3c2f8 (opens in a new tab)