PoC Monitor
← All CVEs
CVE-2025-40328published 9 Dec 2025 04:09 UTCData: JSON · API

Linux

smb: client: fix potential UAF in smb2_close_cached_fid()

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by CNA
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < bb3355ce9dcaba1b4a766f98b2ad373cab6cd626
  • >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < cb52d9c86d70298de0ab7c7953653898cbc0efd6
  • >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < 065bd62412271a2d734810dd50336cae88c54427
  • >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < bdb596ceb4b7c3f28786a33840263728217fbcf5
  • >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < 734e99623c5b65bf2c03e35978a0b980ebc3c2f8

Fixed in bb3355ce9dcaba1b4a766f98b2ad373cab6cd626, cb52d9c86d70298de0ab7c7953653898cbc0efd6, 065bd62412271a2d734810dd50336cae88c54427, bdb596ceb4b7c3f28786a33840263728217fbcf5, 734e99623c5b65bf2c03e35978a0b980ebc3c2f8

Linux Linux
  • 6.1

Fixed in 0, 6.1.191, 6.6.117, 6.12.58, 6.17.8, 6.18

Mitigation

Upgrade Linux to bb3355ce9dcaba1b4a766f98b2ad373cab6cd626 or cb52d9c86d70298de0ab7c7953653898cbc0efd6 or 065bd62412271a2d734810dd50336cae88c54427 or bdb596ceb4b7c3f28786a33840263728217fbcf5 or 734e99623c5b65bf2c03e35978a0b980ebc3c2f8 or later.

Upgrade Linux to 0 or 6.1.191 or 6.6.117 or 6.12.58 or 6.17.8 or 6.18 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published9 Dec 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.