CVE-2025-38400
BaseFortify
Publication date: 2025-07-25
Last updated on: 2025-11-03
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel's NFS subsystem where, if the function nfs_fs_proc_net_init() fails, the /proc/net/rpc/nfs directory is not properly removed. This leads to a warning because later cleanup code tries to remove the /proc/net/rpc directory but finds it not empty due to the leftover nfs directory. Essentially, the error handling in nfs_fs_proc_net_init() is incomplete, causing resource leakage and warnings during cleanup.
How can this vulnerability impact me? :
The impact of this vulnerability is primarily related to resource leakage and potential instability in the kernel's proc filesystem related to NFS. It may cause warnings and leftover entries in /proc/net/rpc, which could lead to confusion in system monitoring or management tools. However, there is no indication from the provided information that this leads to privilege escalation, data corruption, or remote code execution.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring kernel logs for warnings related to the removal of non-empty directories in /proc/net/rpc, specifically warnings about 'remove_proc_entry: removing non-empty directory 'net/rpc', leaking at least 'nfs''. You can check the kernel log using the command: dmesg | grep 'remove_proc_entry' or dmesg | grep 'net/rpc'. Additionally, inspecting the presence and state of /proc/net/rpc/nfs may help identify if the cleanup failed.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include updating the Linux kernel to a version where this issue is fixed, as the vulnerability is resolved by properly handling the error in nfs_fs_proc_net_init(). Until an update is applied, monitoring kernel logs for the described warnings and avoiding fault injection or operations that trigger nfs_fs_proc_net_init() failures may reduce exposure.