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 ovldentryupdate_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 ovldentryupdatereval(), while upper->dflags is still being accessed in ovldentryremote(). 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).

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-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-gcp-5.15
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-64k-debug-core
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-debug-kvm
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesDec 09, 2025

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