CVE-2025-40328
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-12-09

Last updated on: 2025-12-09

Assigner: kernel.org

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-09
Last Modified
2025-12-09
Generated
2026-05-07
AI Q&A
2025-12-09
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a use-after-free (UAF) issue in the Linux kernel's SMB client code. Specifically, in the function smb2_close_cached_fid(), a reference count can drop to zero and the object can be freed, but before a lock (cfid_list_lock) is acquired, another reference might be grabbed. This timing gap can lead to accessing memory that has already been freed, causing undefined behavior or potential exploitation. The fix involves changing the code to hold the lock during the reference count decrement to prevent this race condition.


How can this vulnerability impact me? :

This use-after-free vulnerability could lead to system instability, crashes, or potentially allow an attacker to execute arbitrary code with kernel privileges if exploited. This could compromise the security and reliability of systems running the affected Linux kernel SMB client.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart