{"id":"CVE-2025-40328","published":"2025-12-09T04:09:44Z","modified":"2026-10-30T12:23:02Z","title":"smb: client: fix potential UAF in smb2_close_cached_fid()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix potential UAF in smb2_close_cached_fid()\n\nfind_or_create_cached_dir() could grab a new reference after kref_put()\nhad seen the refcount drop to zero but before cfid_list_lock is acquired\nin smb2_close_cached_fid(), leading to use-after-free.\n\nSwitch to kref_put_lock() so cfid_release() is called with\ncfid_list_lock held, closing that gap.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00494,"percentile":0.4332,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/bb3355ce9dcaba1b4a766f98b2ad373cab6cd626","tags":[]},{"url":"https://git.kernel.org/stable/c/cb52d9c86d70298de0ab7c7953653898cbc0efd6","tags":[]},{"url":"https://git.kernel.org/stable/c/065bd62412271a2d734810dd50336cae88c54427","tags":[]},{"url":"https://git.kernel.org/stable/c/bdb596ceb4b7c3f28786a33840263728217fbcf5","tags":[]},{"url":"https://git.kernel.org/stable/c/734e99623c5b65bf2c03e35978a0b980ebc3c2f8","tags":[]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":8.66},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < bb3355ce9dcaba1b4a766f98b2ad373cab6cd626",">= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < cb52d9c86d70298de0ab7c7953653898cbc0efd6",">= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < 065bd62412271a2d734810dd50336cae88c54427",">= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < bdb596ceb4b7c3f28786a33840263728217fbcf5",">= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < 734e99623c5b65bf2c03e35978a0b980ebc3c2f8"]},{"vendor":"Linux","product":"Linux","versions":["6.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:59:26.611635Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-201874","exploited":false,"provenance":"source"}}