NONE · 0

CVE-2025-40328

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

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

References

FAQ

What is CVE-2025-40328?

CVE-2025-40328 is a documented vulnerability. 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() ...

How severe is CVE-2025-40328?

CVSS scoring is not yet available for CVE-2025-40328. Check NVD for updates.

Is there a patch for CVE-2025-40328?

Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.