CVE-2025-21887
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability (CVE-2025-21887) was discovered in the Linux kernel's overlayfs functionality, specifically in the ovl_dentry_update_reval function. The vulnerability was disclosed on March 27, 2025, affecting multiple versions of the Linux kernel including versions from 5.10.188 up to 6.14-rc4 (NVD).

Technical details

The vulnerability occurs when dput(upper) is called before ovl_dentry_update_reval(), while upper->d_flags is still being accessed in ovl_dentry_remote(). This timing issue leads to a use-after-free condition in the overlayfs filesystem code. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating local access requirements but high impact potential (NVD).

Impact

The vulnerability could allow an attacker with local access to potentially achieve high levels of confidentiality, integrity, and availability impacts on the affected system. This is particularly concerning for systems utilizing overlayfs, a widely used filesystem in container environments (NVD).

Exploitability

The vulnerability requires local access with low complexity and privileges to exploit. No user interaction is needed for exploitation. The attack vector is local, meaning an attacker must have prior access to the targeted system (NVD).

Mitigation and workarounds

The vulnerability has been fixed by moving the dput(upper) call after its last use to prevent the use-after-free condition. Multiple patches have been released for various kernel versions, and affected distributions are releasing updates (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68427MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-tegra
NoYesAug 10, 2026
CVE-2026-68426MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-tegra-igx
NoYesAug 10, 2026
CVE-2026-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 12, 2026
CVE-2026-68430NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-partner
NoYesAug 12, 2026
CVE-2026-68428NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-ibm-6.8
NoYesAug 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management