Skip to main content
← All vulnerabilities
CVE-2025-40328

smb: client: fix potential UAF in smb2_close_cached_fid()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.6.117, 6.12.58, 6.17.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in smb2_close_cached_fid() find_or_create_cached_dir() could grab a new reference after kref_put() had seen the refcount drop to zero but before cfid_list_lock is acquired in smb2_close_cached_fid(), leading to use-after-free. Switch to kref_put_lock() so cfid_release() is called with cfid_list_lock held, closing that gap.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Linux Linux

    From ebe98f1447bbccf8228335c62d86af02a0ed23f7 · fixed in cb52d9c86d70298de0ab7c7953653898cbc0efd6; From ebe98f1447bbccf8228335c62d86af02a0ed23f7 · fixed in 065bd62412271a2d734810dd50336cae88c54427; From ebe98f1447bbccf8228335c62d86af02a0ed23f7 · fixed in bdb596ceb4b7c3f28786a33840263728217fbcf5; From ebe98f1447bbccf8228335c62d86af02a0ed23f7 · fixed in 734e99623c5b65bf2c03e35978a0b980ebc3c2f8

  • Linux Linux

    6.1

  • KernelLinux

    From 6.1.0 · fixed in 6.6.117; From 6.7.0 · fixed in 6.12.58; From 6.13.0 · fixed in 6.17.8

References 4

git.kernel.org