CVE-2025-38321
kernel: smb: Log an error when close_all_cached_dirs fails
Overview
Description
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.
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 62 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | kernel | 0:6.6.96.1-1.azl3 |
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | kernel-uek +34 | 6.12.0-103.40.4.1.el9uek |
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | bpftool +106 | affected |
SUSE Linux Enterprise 3 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.6 | kernel-livepatch-6-4-0-150600-23-84-default | 1-150600.13.3.1 | SUSE-SU-2026:0293-1 |
| 15.6 | cluster-md-kmp-default +17 | 6.4.0-150600.23.84.1 | SUSE-SU-2026:0293-1 |
| 15.6 | kernel-default-base | 6.4.0-150600.23.84.1.150600.12.38.1 | SUSE-SU-2026:0293-1 |
| 15.7 | kernel-livepatch-6-4-0-150700-7-28-rt | 1-150700.1.3.1 | SUSE-SU-2026:0278-1 |
| 15.7 | kernel-livepatch-6-4-0-150700-53-28-default | 1-150700.15.3.1 | SUSE-SU-2026:0315-1 |
| 15.7 | kernel-azure +4 | 6.4.0-150700.20.24.1 | SUSE-SU-2026:0281-1 |
4 more rows
SUSE Linux Enterprise Micro 3 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 6.0 | kernel-default +5 | 6.4.0-39.1 | SUSE-SU-2026:20477-1 |
| 6.0 | kernel-default-base | 6.4.0-39.1.21.16 | SUSE-SU-2026:20477-1 |
| 6.0 | kernel-devel-rt +3 | 6.4.0-40.1 | SUSE-SU-2026:20845-1 |
| 6.1 | kernel-default +6 | 6.4.0-39.1 | SUSE-SU-2026:20498-1 |
| 6.1 | kernel-default-base | 6.4.0-39.1.21.16 | SUSE-SU-2026:20498-1 |
| 6.1 | kernel-devel-rt +4 | 6.4.0-40.1 | SUSE-SU-2026:20876-1 |
2 more rows
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | kernel-livepatch-6-12-35-55-103 | 1.0-0.amzn2023 |
| 2023 | bpftool +20 | 6.12.35-55.103.amzn2023 |
debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 13 | linux | 6.12.35-1 |
| 14 | linux | 6.12.35-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 1 |
openSUSE Leap 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | cluster-md-kmp-64kb +64 | 6.12.0-160000.8.1 | openSUSE-SU-2025:20172-1 |
| 16.0 | kernel-default-base | 6.12.0-160000.8.1.160000.2.5 | openSUSE-SU-2025:20172-1 |
root.io debian 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux +1 | 5.10.251-5.root.io.85 |
| 12 | linux +1 | 6.1.172-1.root.io.132 |
| 13 | rootio-linux | 6.12.35-1 |
root.io ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | linux +1 | 5.15.0-179.189.root.io.88 |
| 24.04 | linux +1 | 6.8.0-100.100 |
ubuntu 2 releases · 29 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | linux-lowlatency-hwe-6-8 | 6.8.0-100.100.1~22.04.1 |
| 22.04 | linux-hwe-6-8 +1 | 6.8.0-100.100~22.04.1 |
| 22.04 | linux-oracle-6-8 | 6.8.0-1043.44~22.04.1 |
| 22.04 | linux-ibm-6-8 | 6.8.0-1044.44~22.04.1 |
| 22.04 | linux-aws-6-8 +1 | 6.8.0-1046.49~22.04.1 |
| 22.04 | linux-azure-fde-6-8 | 6.8.0-1046.53~22.04.1 |
23 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-38321
- git.kernel.org https://git.kernel.org/linus/a2182743a8b4969481f64aec4908ff162e8a206c (6.16-rc3)
- git.kernel.org https://git.kernel.org/stable/c/43f26094d6702e494e800532c3f1606e7a68eb30
- git.kernel.org https://git.kernel.org/stable/c/4479db143390bdcadc1561292aab579cdfa9f6c6
- git.kernel.org https://git.kernel.org/stable/c/a2182743a8b4969481f64aec4908ff162e8a206c
- git.kernel.org https://git.kernel.org/stable/c/b8ced2b9a23a1a2c1e0ed8d0d02512e51bdf38da
- linux.oracle.com https://linux.oracle.com/cve/CVE-2025-38321.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-20551.html
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2025071031-CVE-2025-38321-25aa@gregkh/T
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-38321
Show all 33 references
- ubuntu.com https://ubuntu.com/security/notices/USN-7833-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7833-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7833-3
- ubuntu.com https://ubuntu.com/security/notices/USN-7833-4
- ubuntu.com https://ubuntu.com/security/notices/USN-7834-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7856-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-4
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-5
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-6
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-7
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-8
- ubuntu.com https://ubuntu.com/security/notices/USN-8031-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8031-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8031-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8052-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8052-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8074-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8074-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8126-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-38321
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.