CVE-2025-40328

CVE-2025-40328

High · published December 9, 2025

CVSS v3.1
8.8
EPSS
0%
Percentile
39.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00461 · 39.0th percentile
Published
2025-12-09T21:17Z
References (4)
EPSS history
Timeline
  • 09 DEC 04:09Z
    smb: client: fix potential UAF in smb2_close_cached_fid()
    cvelistv5