CVE-2025-40328 Details
Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in smb2_close_cached_fid() find_or_create_cached_dir() could grab a new reference after kref_put() had seen the refcount drop to zero but before cfid_list_lock is acquired in smb2_close_cached_fid(), leading to use-after-free. Switch to kref_put_lock() so cfid_release() is called with cfid_list_lock held, closing that gap.
A use-after-free vulnerability has been identified in the Linux kernel's SMB client directory caching mechanism. This issue arises in the 'smb2_close_cached_fid()' function, where a reference count could drop to zero, creating a window for a new reference to be improperly acquired. The vulnerability affects the Linux kernel stable tree and has been addressed by modifying the reference counting mechanism to prevent the use-after-free condition.
Users can upgrade to the latest version of the Linux kernel stable tree, where this vulnerability has been fixed. Instructions for downloading the patched version are available on the Linux kernel official website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 9, 2025CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/065bd62412271a2d734810dd50336cae88c54427 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/734e99623c5b65bf2c03e35978a0b980ebc3c2f8 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/bb3355ce9dcaba1b4a766f98b2ad373cab6cd626 | kernel.org | |
| https://git.kernel.org/stable/c/bdb596ceb4b7c3f28786a33840263728217fbcf5 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/cb52d9c86d70298de0ab7c7953653898cbc0efd6 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 30, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Oct 15, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 9, 2025 | New CVE Received | kernel.org |
Volerion