Skip to main content
Mallory
HighVulnerability

CVE-2025-21887: Use-after-free in Linux kernel OverlayFS dentry revalidation

Published Mar 27, 2025 · Updated 18 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.31%17th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Linux
IdentifiersCVE-2025-21887CWE-416 · Use After Free

CVE-2025-21887 is a use-after-free vulnerability in the Linux kernel OverlayFS implementation. In ovl_link_up(), dput(upper) releases the upper dentry before ovl_dentry_update_reval() subsequently accesses upper->d_flags through ovl_dentry_remote(). This premature release can result in access to freed kernel memory. A KASAN report identifies a slab-use-after-free during an OverlayFS rename operation involving copy-up. The fix moves dput(upper) after the dentry's final use.

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.

The vulnerability can cause invalid kernel-memory access during OverlayFS copy-up and rename processing, potentially resulting in kernel instability, crashes, and denial of service. The CVE-specific CVSS v3 assessment assigns high confidentiality, integrity, and availability impacts, but concrete privilege-escalation or information-disclosure outcomes are not established. No known exploits are identified in the vulnerability listings.

Mitigation

If you can’t patch tonight, do this now.

No CVE-specific workaround is established. Until patched, restrict untrusted local access and execution of untrusted applications to reduce exposure to the vulnerable OverlayFS operations. For affected Siemens devices, restrict the additional GNU/Linux subsystem's interactive shell to trusted personnel, run only trusted applications, and apply the vendor's network-access and operating-environment security controls.

Remediation

Patch, then assume compromise.

Install a vendor-supported kernel update containing the fix that moves dput(upper) after the final use of the upper dentry in ovl_link_up(), then reboot into the updated kernel. Applicable fixes include Echo linux packages version 6.1.133-1 or later; Google ChromeOS csql-kernel-6_1 and lakitu-kernel-6_1 packages version 17800.436.99 or later; and RHEL updates RHSA-2025:9079, RHSA-2025:10379, or RHSA-2025:11810, depending on the release. RHSA-2025:11810 supplies kernel version 5.14.0-427.79.1.el9_4 for applicable RHEL 9.4 channels. For affected Siemens SIMATIC devices, no fixed firmware is identified in advisory V1.0; monitor for a vendor-provided 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
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2025-21887 exploited in the wild?
As of Nov 10, 2026, Mallory has no reports of CVE-2025-21887 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-21887?
As of Nov 10, 2026, Mallory has found no public exploit for CVE-2025-21887.
Is there a patch for CVE-2025-21887?
Install a vendor-supported kernel update containing the fix that moves dput(upper) after the final use of the upper dentry in ovl_link_up(), then reboot into the updated kernel. Applicable fixes include Echo linux packages version 6.1.133-1 or later; Google ChromeOS csql-kernel-6_1 and lakitu-kernel-6_1 packages version 17800.436.99 or later; and RHEL updates RHSA-2025:9079, RHSA-2025:10379, or RHSA-2025:11810, depending on the release.
What products are affected by CVE-2025-21887?
Linux Kernel.
How severe is CVE-2025-21887?
CVE-2025-21887 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.31% (17th percentile) as of Nov 10, 2026.
Activity feed

Recent activity

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

View more in app →
+4 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 activityCommunity discussion across Reddit, Mastodon, and other social sources.