{"id":"CVE-2025-37954","summary":"smb: client: Avoid race in open_cached_dir with lease breaks","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: Avoid race in open_cached_dir with lease breaks\n\nA pre-existing valid cfid returned from find_or_create_cached_dir might\nrace with a lease break, meaning open_cached_dir doesn't consider it\nvalid, and thinks it's newly-constructed. This leaks a dentry reference\nif the allocation occurs before the queued lease break work runs.\n\nAvoid the race by extending holding the cfid_list_lock across\nfind_or_create_cached_dir and when the result is checked.","modified":"2026-04-16T04:31:48.441433769Z","published":"2025-05-20T16:01:48.561Z","related":["SUSE-SU-2025:01964-1","SUSE-SU-2025:01965-1","SUSE-SU-2025:02000-1","SUSE-SU-2025:02254-1","SUSE-SU-2025:02307-1","SUSE-SU-2025:02333-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:20408-1","SUSE-SU-2025:20413-1","SUSE-SU-2025:20419-1","SUSE-SU-2025:20421-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37954.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2407265dc32bc8cc45b62a612c2a214ba9038e8b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2ed98e89ebc2e1bc73534dc3c18cb7843a889ff9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ca02e63edccb78ef3659bebc68579c7224a6ca2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/571dcf3d27b24800c171aea7b5e04ff06d10e2e9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37954.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37954"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"81ba10959970d15c388bf29866b01b62f387e6a3"},{"fixed":"2ed98e89ebc2e1bc73534dc3c18cb7843a889ff9"},{"fixed":"571dcf3d27b24800c171aea7b5e04ff06d10e2e9"},{"fixed":"2407265dc32bc8cc45b62a612c2a214ba9038e8b"},{"fixed":"3ca02e63edccb78ef3659bebc68579c7224a6ca2"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"436be190fbf81e5d84040dabf9cb7be06a94dc5d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37954.json"}}],"schema_version":"1.7.5"}