CVE-2025-38051
BaseFortify
Publication date: 2025-06-18
Last updated on: 2026-01-12
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| debian | debian_linux | 11.0 |
| linux | linux_kernel | From 2.6.27.4 (inc) to 5.4.294 (exc) |
| linux | linux_kernel | From 5.5 (inc) to 5.10.238 (exc) |
| linux | linux_kernel | From 5.11 (inc) to 5.15.185 (exc) |
| linux | linux_kernel | From 5.16 (inc) to 6.1.141 (exc) |
| linux | linux_kernel | From 6.2 (inc) to 6.6.93 (exc) |
| linux | linux_kernel | From 6.7 (inc) to 6.12.31 (exc) |
| linux | linux_kernel | From 6.13 (inc) to 6.14.9 (exc) |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-416 | The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a use-after-free bug in the Linux kernel's SMB client code, specifically in the cifs_fill_dirent function. It arises from a race condition during the directory reading (readdir) concurrency process, where the response buffer (rsp) may be accessed after it has already been freed. This improper access triggers a Kernel Address Sanitizer (KASAN) warning indicating a slab-use-after-free error, which can lead to instability or crashes in the kernel.
How can this vulnerability impact me? :
The vulnerability can cause kernel crashes or instability due to the use-after-free condition in the SMB client code. This may affect systems using the CIFS/SMB protocol for network file sharing, potentially leading to denial of service or unexpected behavior when accessing directories over the network.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring for KASAN (Kernel Address Sanitizer) slab-use-after-free warnings related to the cifs_fill_dirent function in the Linux kernel logs. You can check the kernel log for such messages using the command: dmesg | grep -i 'cifs_fill_dirent' or dmesg | grep -i 'KASAN'. Additionally, running workloads that trigger CIFS readdir operations and observing for crashes or KASAN warnings can help detect the issue.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves updating the Linux kernel to a version where this use-after-free vulnerability in cifs_fill_dirent has been fixed. Until an update is applied, avoid running workloads that heavily use CIFS readdir operations concurrently to reduce the chance of triggering the race condition.