CVE Catalog

CVE-2025-40328

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.40%

33th percentile - higher than 33% of all known CVEs

Summary

In the Linux kernel, a potential use-after-free (UAF) vulnerability was found in the SMB client's smb2_close_cached_fid() function. The issue arises because find_or_create_cached_dir() could grab a new reference after kref_put() saw the refcount drop to zero but before cfid_list_lock is acquired. The fix switches to kref_put_lock() so cfid_release() is called with cfid_list_lock held, closing that gap.

Risk Assessment

This vulnerability could lead to kernel memory corruption, potentially allowing a local attacker to escalate privileges or cause a denial of service (DoS).

Recommendation

Immediately update the Linux kernel to a version containing the fix (commit using kref_put_lock).

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS