CVE-2025-37954

Source
https://cve.org/CVERecord?id=CVE-2025-37954
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37954.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-37954
Downstream
Related
Published
2025-05-20T16:01:48.561Z
Modified
2026-03-20T12:42:35.477375Z
Summary
smb: client: Avoid race in open_cached_dir with lease breaks
Details

In the Linux kernel, the following vulnerability has been resolved:

smb: client: Avoid race in opencacheddir with lease breaks

A pre-existing valid cfid returned from findorcreatecacheddir might race with a lease break, meaning opencacheddir doesn't consider it valid, and thinks it's newly-constructed. This leaks a dentry reference if the allocation occurs before the queued lease break work runs.

Avoid the race by extending holding the cfidlistlock across findorcreatecacheddir and when the result is checked.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37954.json"
}
References

Affected packages

Git / 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 Unknown introduced commit / All previous commits are affected
Last affected
436be190fbf81e5d84040dabf9cb7be06a94dc5d

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37954.json"