Back to CVE records
High 8.8Published Dec 9, 2025

CVE-2025-40328smb: client: fix potential UAF in smb2_close_cached_fid()

Updated under an hour ago ()

Does this affect you?

It affects Linux. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
8.8 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness (CWE)
Not given
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Linux
NVD analysis
Deferred
Record last updated
Oct 15, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
Linux Linux
linux:linux (from the name)
from ebe98f1447bbccf8228335c62d86af02a0ed23f7 before cb52d9c86d70298de0ab7c7953653898cbc0efd6; from ebe98f1447bbccf8228335c62d86af02a0ed23f7 before 065bd62412271a2d734810dd50336cae88c54427; from ebe98f1447bbccf8228335c62d86af02a0ed23f7 before bdb596ceb4b7c3f28786a33840263728217fbcf5; from ebe98f1447bbccf8228335c62d86af02a0ed23f7 before 734e99623c5b65bf2c03e35978a0b980ebc3c2f8
CNA record

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.