一、 漏洞 CVE-2025-38321 基础信息
漏洞信息
                                        # smb:在 close_all_cached_dirs 失败时记录错误

## 漏洞概述
在Linux内核中,当内存不足时,`close_all_cached_dirs()`函数无法将dentries移动到单独的列表并`dput()`它们,这会导致“Dentry仍然在使用中”的错误。这个漏洞已通过日志记录错误信息并处理内存分配失败来解决。

## 影响版本
未提供具体影响版本信息。

## 细节
- 当系统内存不足时,`close_all_cached_dirs()`函数无法将dentries移动到单独的列表,以便在释放锁后 `dput()` 它们。
- 这种情况会导致“Dentry仍然在使用中”的错误,并在系统日志中记录错误信息。
- 如果一次内存分配失败,该函数会立即退出循环,不再继续处理其他 tcons,因为后续的 `kmalloc()` 调用很可能也会失败。

## 影响
- 导致“Dentry仍然在使用中”的错误。
- 系统日志中会显示错误信息:
  ```
  [  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
  ```
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
smb: Log an error when close_all_cached_dirs fails
来源:美国国家漏洞数据库 NVD
漏洞描述信息
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.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Linux kernel 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于smb驱动中低内存条件下close_all_cached_dirs失败,可能导致挂载错误。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-38321 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2025-38321 的情报信息