Skip to main content
Mallory
HighVulnerability

CVE-2025-38051: Use-after-free in Linux kernel SMB/CIFS cifs_fill_dirent

Published Jun 18, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.0High · v3.1
EPSS0.31%16th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendors
Debian ProjectLinux
IdentifiersCVE-2025-38051CWE-416 · Use After Free

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
Debian ProjectDebian Linuxoperating_system
LinuxLinux Kerneloperating_system
FAQ

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.
Activity feed

Recent activity

28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+15 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.