CVE-2025-40328
Last modified
CVE-2025-40328 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < cb52d9c86d70298de0ab7c7953653898cbc0efd6; >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < 065bd62412271a2d734810dd50336cae88c54427; >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < bdb596ceb4b7c3f28786a33840263728217fbcf5; >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < 734e99623c5b65bf2c03e35978a0b980ebc3c2f8 |
| Linux | Linux | 6.1 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40328?
How severe is CVE-2025-40328?
How do I fix CVE-2025-40328?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40322In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-40323In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40324In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-40325In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-40326In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-40327In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40329In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4033A vulnerability classified as critical has been found in PHP…9.8
- CVE-2025-40330In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40331In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40332In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40333In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-40328?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
