CVE-2025-40328
Description
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.
How to fix
- Linux Linuxbb3355ce9dcaba1b4a766f98b2ad373cab6cd626, cb52d9c86d70298de0ab7c7953653898cbc0efd6, 065bd62412271a2d734810dd50336cae88c54427, bdb596ceb4b7c3f28786a33840263728217fbcf5, 734e99623c5b65bf2c03e35978a0b980ebc3c2f8 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Linux Linux | ebe98f1447bbccf8228335c62d86af02a0ed23f7 ≤ v < bb3355ce9dcaba1b4a766f98b2ad373cab6cd626, ebe98f1447bbccf8228335c62d86af02a0ed23f7 ≤ v < cb52d9c86d70298de0ab7c7953653898cbc0efd6, ebe98f1447bbccf8228335c62d86af02a0ed23f7 ≤ v < 065bd62412271a2d734810dd50336cae88c54427, ebe98f1447bbccf8228335c62d86af02a0ed23f7 ≤ v < bdb596ceb4b7c3f28786a33840263728217fbcf5, ebe98f1447bbccf8228335c62d86af02a0ed23f7 ≤ v < 734e99623c5b65bf2c03e35978a0b980ebc3c2f8, 6.1 | bb3355ce9dcaba1b4a766f98b2ad373cab6cd626, cb52d9c86d70298de0ab7c7953653898cbc0efd6, 065bd62412271a2d734810dd50336cae88c54427, bdb596ceb4b7c3f28786a33840263728217fbcf5, 734e99623c5b65bf2c03e35978a0b980ebc3c2f8 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.