CVE-2025-21887: Linux kernel · ovl: fix UAF in ovl_dentry_update_reval by moving dput() in ovl_link_up
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 5.15.0-1084.91~20.04.1 : patch Linux kernel soon.
Data as of 12 Nov 2026, 19:32 UTC
Sources agree
| CNA (Linux) | CVSS 3.1 | 7.8 |
|---|---|---|
| CISA-ADP | CVSS 3.1 | 7.8 |
- Patch
- Available – fixed in 5.15.0-1084.91~20.04.1, 5.15.0-1089.98~20.04.1, 5.15.0-1083.92~20.04.1 +64
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-7510-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7511-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7511-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7512-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7521-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-7511-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7521-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-6 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-nvidiapkg:deb/ubuntu/linux-azure-nvidia?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and included in multiple updated Linux kernel versions as listed in the vendor advisory. Users should apply the official kernel updates and reboot their systems to ensure the vulnerability is fully mitigated. No additional mitigation steps are required beyond applying the official fixes.
Description
CVE-2025-21887 is a use-after-free vulnerability in the Linux kernel's overlay filesystem (ovl) component. The flaw occurs because a dput() call on an upper dentry was made before its last use, leading to a use-after-free condition. This issue was fixed by moving the dput() call to after the last access to prevent the vulnerability. The flaw was detected by KASAN and affects various Linux kernel versions prior to the fixed releases. The vulnerability has a high severity score and could allow an attacker with local privileges to compromise system confidentiality, integrity, and availability.
References
- ubuntu.com/security/CVE-2025-21887 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-21887 (opens in a new tab)
- git.kernel.org/linus/c84e125fff2615b4d9c259e762596134eddd2f27 (opens in a new tab)
- git.kernel.org/stable/c/3594aad97e7be2557ca9fa9c931b206b604028c8 (opens in a new tab)
- git.kernel.org/stable/c/4b49d939b5a79117f939b77cc67efae2694d9799 (opens in a new tab)
- git.kernel.org/stable/c/60b4b5c1277fc491da9e1e7abab307bfa39c2db7 (opens in a new tab)
- git.kernel.org/stable/c/64455c8051c3aedc71abb7ec8d47c80301f99f00 (opens in a new tab)
- git.kernel.org/stable/c/a7c41830ffcd17b2177a95a9b99b270302090c35 (opens in a new tab)
- git.kernel.org/stable/c/c84e125fff2615b4d9c259e762596134eddd2f27 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7511-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7511-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7512-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7521-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7510-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-7511-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7521-2 (opens in a new tab)