{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-40328","id":"CVE-2025-40328","title":"smb: client: fix potential UAF in smb2_close_cached_fid()","description":"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_lo","descriptionLong":"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.","published":"2025-12-09T04:09:44.876Z","updated":"2026-11-01T02:31:08.276858317Z","reserved":"2025-04-16T07:20:57.186Z","status":"Deferred","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ebe98f1447bbccf8228335c62d86af02a0ed23f7","lessThan":"bb3355ce9dcaba1b4a766f98b2ad373cab6cd626","status":"affected","versionType":"git"},{"version":"ebe98f1447bbccf8228335c62d86af02a0ed23f7","lessThan":"cb52d9c86d70298de0ab7c7953653898cbc0efd6","status":"affected","versionType":"git"},{"version":"ebe98f1447bbccf8228335c62d86af02a0ed23f7","lessThan":"065bd62412271a2d734810dd50336cae88c54427","status":"affected","versionType":"git"},{"version":"ebe98f1447bbccf8228335c62d86af02a0ed23f7","lessThan":"bdb596ceb4b7c3f28786a33840263728217fbcf5","status":"affected","versionType":"git"},{"version":"ebe98f1447bbccf8228335c62d86af02a0ed23f7","lessThan":"734e99623c5b65bf2c03e35978a0b980ebc3c2f8","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","lessThan":"6.1","status":"unaffected","versionType":"semver"},{"version":"6.1.191","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.117","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.58","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.17.8","lessThanOrEqual":"6.17.*","status":"unaffected","versionType":"semver"},{"version":"6.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/bb3355ce9dcaba1b4a766f98b2ad373cab6cd626","tags":["web"]},{"url":"https://git.kernel.org/stable/c/cb52d9c86d70298de0ab7c7953653898cbc0efd6","tags":["web"]},{"url":"https://git.kernel.org/stable/c/065bd62412271a2d734810dd50336cae88c54427","tags":["web"]},{"url":"https://git.kernel.org/stable/c/bdb596ceb4b7c3f28786a33840263728217fbcf5","tags":["web"]},{"url":"https://git.kernel.org/stable/c/734e99623c5b65bf2c03e35978a0b980ebc3c2f8","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40328.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40328","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00494,"epssPercentile":0.43105,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-40328","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40328","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-40328","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-40328","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}