CVE-2025-21887

CVSS 3.1 Score 7.8 of 10 (high)

Details

Published Mar 27, 2025
Updated: Apr 1, 2025
CWE ID 416

Summary

CVE-2025-21887 is a use-after-free vulnerability affecting the Linux kernel's OverlayFS file system. The issue was discovered in the 'ovl_dentry_remote' and 'ovl_dentry_update_reval' functions, where 'dput(upper)' was called before updating 'upper->d_flags'. This sequence led to a use-after-free condition, causing memory corruption and potentially leading to arbitrary code execution or denial of service. The vulnerability was identified using the Kernel Address Sanitizer (KASAN) and was reported in the 'ovl_copy_up_one', 'ovl_copy_up_flags', and 'ovl_rename' functions. The issue has been resolved by moving 'dput(upper)' after its last use in the 'ovl_link_up' function.

Ligh bulbPrevent cyber attacks with Recorded Future by prioritizing and patching critical vulnerabilities being exploited by threat actors targeting your industry. Book your demo to learn more.

Share