CVE-2025-37954

smb: client: Avoid race in open_cached_dir with lease breaks

State
Published
Severity
7.5 High
Published
May 20, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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

smb: client: Avoid race in open_cached_dir with lease breaks

A pre-existing valid cfid returned from find_or_create_cached_dir might race with a lease break, meaning open_cached_dir 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 cfid_list_lock across find_or_create_cached_dir and when the result is checked.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 81ba10959970d15c388bf29866b01b62f387e6a3 to before 2ed98e89ebc2e1bc73534dc3c18cb7843a889ff9Affected
  • 81ba10959970d15c388bf29866b01b62f387e6a3 to before 571dcf3d27b24800c171aea7b5e04ff06d10e2e9Affected
  • 81ba10959970d15c388bf29866b01b62f387e6a3 to before 2407265dc32bc8cc45b62a612c2a214ba9038e8bAffected
  • 81ba10959970d15c388bf29866b01b62f387e6a3 to before 3ca02e63edccb78ef3659bebc68579c7224a6ca2Affected
  • 436be190fbf81e5d84040dabf9cb7be06a94dc5dAffected
  • 6.5.10 to before 6.6Affected
LinuxLinux
  • 6.6Affected
  • before 6.6Not affected
  • 6.6.91 through 6.6.*Not affected
  • 6.12.29 through 6.12.*Not affected
  • 6.14.7 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.