---
id: CVE-2025-37954
title: |-
  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 o…
summary: |-
  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 o…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: linux
product: linux_kernel
affected:
  - linux_kernel < 6.6.91
  - 'linux_kernel >= 6.7, < 6.12.29'
  - 'linux_kernel >= 6.13, < 6.14.7'
  - linux_kernel = 6.15
patched:
  - linux_kernel 6.14.7
published: '2025-05-20'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:18:22.667'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-37954'
references:
  - url: 'https://git.kernel.org/stable/c/2407265dc32bc8cc45b62a612c2a214ba9038e8b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2ed98e89ebc2e1bc73534dc3c18cb7843a889ff9'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3ca02e63edccb78ef3659bebc68579c7224a6ca2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/571dcf3d27b24800c171aea7b5e04ff06d10e2e9'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
epss: 0.00368
epssPercentile: 0.3087
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-15T21:46:24.590387Z'
ingestedAt: '2026-10-15T22:48:25.486Z'
---

## Overview

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.

## Affected

- `linux_kernel < 6.6.91`
- `linux_kernel >= 6.7, < 6.12.29`
- `linux_kernel >= 6.13, < 6.14.7`
- `linux_kernel = 6.15`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.14.7`
