Vendors › Linux

CVE-2025-21887

High (7.8) EPSS 0.3% Linux · fs

Linux kernel: ovl: fix UAF in ovl_dentry_update_reval by moving dput() in ovl_link_up

A vulnerability in the Linux kernel fs subsystem (fs/overlayfs/copy_up.c), assigned CVE-2025-21887. The issue was introduced in kernel 5.10.188 and is fixed in 5.10.247, 5.15.179, 6.1.130, 6.6.81, 6.12.18, 6.13.6, 6.14. Updating to a fixed stable release resolves it.

Published2025-03-27
Updated2026-08-05
AffectedLinux kernel 5.10.188 and later, before the fix (fixed in 5.10.247, 5.15.179, 6.1.130, 6.6.81, 6.12.18, 6.13.6, 6.14)
FixUpdate to kernel 5.10.247, 5.15.179, 6.1.130, 6.6.81, 6.12.18, 6.13.6, 6.14 or later
Vendor advisoryhttps://cve.org/CVERecord/?id=CVE-2025-21887

CVEs (1)

CVECWETypeImpactLinks
CVE-2025-21887CWE-416Memory CorruptionCode ExecutionNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.