CVE-2025-21887: Use-after-free in Linux kernel OverlayFS dentry revalidation
- Vendor
- Linux
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.
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.
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-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.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.