CVE-2025-38051: Use-after-free in Linux kernel SMB/CIFS cifs_fill_dirent
- Vendors
- Debian ProjectLinux
CVE-2025-38051 is a use-after-free vulnerability in the Linux kernel SMB/CIFS client's directory-reading path. A race between concurrent cifs_readdir operations can release an SMB response buffer while cifs_fill_dirent subsequently accesses pointers into that buffer. The vulnerable path includes directory-query failures, such as smb2_query_dir_next returning -ERESTARTSYS when a fatal signal is pending, followed by use of stale search-information pointers. KASAN detected a four-byte read from freed memory. The flaw can cause a system crash and potentially disclose kernel information.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A local attacker can trigger a kernel use-after-free during CIFS directory enumeration, potentially crashing the affected system and causing denial of service. Kernel information disclosure is also possible. Arbitrary code execution, privilege escalation, and attacker-controlled memory writes are not established.
Mitigation
If you can’t patch tonight, do this now.
No validated vulnerability-specific workaround is identified. Red Hat states that no mitigation meets its criteria for ease of deployment, broad applicability, and stability. Restricting untrusted local access can reduce exposure but does not correct the buffer-lifetime defect.
Remediation
Patch, then assume compromise.
Update to a current supported kernel containing the fix and reboot into the updated kernel. Fixed upstream releases include 5.4.294, 5.10.238, 5.15.185, 6.1.141, 6.6.93, 6.12.31, 6.14.9, and 6.15. The fix checks the directory-query return code before using pointers held in srch_inf. For distribution kernels, install the applicable vendor security update rather than relying solely on upstream version comparisons; fixes are available for affected RHEL and SUSE releases. The Linux kernel CVE team recommends upgrading to the latest stable release rather than cherry-picking an individual fix.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-38051 exploited in the wild?
- As of Oct 3, 2026, Mallory has no reports of CVE-2025-38051 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-38051?
- As of Oct 3, 2026, Mallory has found no public exploit for CVE-2025-38051.
- Is there a patch for CVE-2025-38051?
- Update to a current supported kernel containing the fix and reboot into the updated kernel. Fixed upstream releases include 5.4.294, 5.10.238, 5.15.185, 6.1.141, 6.6.93, 6.12.31, 6.14.9, and 6.15.
- What products are affected by CVE-2025-38051?
- Linux Kernel and Debian Project Debian Linux.
- How severe is CVE-2025-38051?
- CVE-2025-38051 has a CVSS v3.1 score of 7.0 (High) and an EPSS score of 0.31% (16th percentile) as of Oct 3, 2026.
Recent activity
28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.