CVE-2025-38321

CVE-2025-38321

High · published July 10, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
9.4
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

smb: Log an error when close_all_cached_dirs fails

Under low-memory conditions, close_all_cached_dirs() can't move the

dentries to a separate list to dput() them once the locks are dropped.

This will result in a "Dentry still in use" error, so add an error

message that makes it clear this is what happened:

[ 495.281119] CIFS: VFS: \\otters.example.com\share Out of memory while dropping dentries

[ 495.281595] ------------[ cut here ]------------

[ 495.281887] BUG: Dentry ffff888115531138{i=78,n=/} still in use (2) [unmount of cifs cifs]

[ 495.282391] WARNING: CPU: 1 PID: 2329 at fs/dcache.c:1536 umount_check+0xc8/0xf0

Also, bail out of looping through all tcons as soon as a single

allocation fails, since we're already in trouble, and kmalloc() attempts

for subseqeuent tcons are likely to fail just like the first one did.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00200 · 9.4th percentile
Published
2025-07-10T13:15Z
Affected products (5)
ProductVersionsFixed in
linux/linux_kernel< 6.6.956.6.95
linux/linux_kernel≥ 6.7, < 6.12.356.12.35
linux/linux_kernel≥ 6.13, < 6.15.46.15.4
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (4)
EPSS history
Timeline
  • 10 JUL 08:14Z
    smb: Log an error when close_all_cached_dirs fails
    cvelistv5