# CVE-2025-37954: smb: client: Avoid race in open_cached_dir with lease breaks

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2025-05-20T16:01:48.561Z
- Modified: 2026-10-15T22:18:22.667Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 81ba10959970d15c388bf29866b01b62f387e6a3 before 2ed98e89ebc2e1bc73534dc3c18cb7843a889ff9; from 81ba10959970d15c388bf29866b01b62f387e6a3 before 571dcf3d27b24800c171aea7b5e04ff06d10e2e9; from 81ba10959970d15c388bf29866b01b62f387e6a3 before 2407265dc32bc8cc45b62a612c2a214ba9038e8b; from 81ba10959970d15c388bf29866b01b62f387e6a3 before 3ca02e63edccb78ef3659bebc68579c7224a6ca2; 436be190fbf81e5d84040dabf9cb7be06a94dc5d; from 6.5.10 before 6.6; 6.6 (not affected: before 6.6; from 6.6.91 up to 6.6.*; from 6.12.29 up to 6.12.*; from 6.14.7 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: before 6.6.91; from 6.7 before 6.12.29; from 6.13 before 6.14.7; 6.15

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2ed98e89ebc2e1bc73534dc3c18cb7843a889ff9> (patch)
- <https://git.kernel.org/stable/c/571dcf3d27b24800c171aea7b5e04ff06d10e2e9> (patch)
- <https://git.kernel.org/stable/c/2407265dc32bc8cc45b62a612c2a214ba9038e8b> (patch)
- <https://git.kernel.org/stable/c/3ca02e63edccb78ef3659bebc68579c7224a6ca2> (patch)

## Sources

- CVE List: [CVE-2025-37954](https://www.cve.org/CVERecord?id=CVE-2025-37954), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-37954](https://nvd.nist.gov/vuln/detail/CVE-2025-37954), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-37954 · Whole record: https://cve.day/CVE-2025-37954.json · Rebuilt by cve.day 2026-11-25T22:58:58.305Z
