CVE-2025-21887Use After Free in Linux

CWE-416Use After Free54 documents7 sources
Severity
7.8HIGHNVD
OSV8.8OSV5.5
EPSS
0.0%
top 91.28%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMar 27
Latest updateOct 8

Description

In the Linux kernel, the following vulnerability has been resolved: ovl: fix UAF in ovl_dentry_update_reval by moving dput() in ovl_link_up The issue was caused by dput(upper) being called before ovl_dentry_update_reval(), while upper->d_flags was still accessed in ovl_dentry_remote(). Move dput(upper) after its last use to prevent use-after-free. BUG: KASAN: slab-use-after-free in ovl_dentry_remote fs/overlayfs/util.c:162 [inline] BUG: KASAN: slab-use-after-free in ovl_dentry_update_reval+0

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 1.8 | Impact: 5.9

Affected Packages10 packages

Patches

🔴Vulnerability Details

25
OSV
linux-azure-nvidia vulnerabilities2025-10-08
OSV
linux-azure, linux-azure-6.8 vulnerabilities2025-10-02
OSV
linux-ibm, linux-ibm-6.8 vulnerabilities2025-09-25
OSV
linux-gcp-6.8, linux-gke, linux-gkeop, linux-hwe-6.8, linux-nvidia, linux-nvidia-6.8, linux-nvidia-lowlatency, linux-raspi vulnerabilities2025-09-02
OSV
linux-realtime, linux-raspi-realtime vulnerabilities2025-08-28

📋Vendor Advisories

28
Ubuntu
Kernel Live Patch Security Notice2025-10-08
Ubuntu
Linux kernel (Azure, N-Series) vulnerabilities2025-10-08
Ubuntu
Linux kernel (Azure) vulnerabilities2025-10-02
Ubuntu
Linux kernel (IBM) vulnerabilities2025-09-25
Ubuntu
Linux kernel vulnerabilities2025-09-02
CVE-2025-21887 — Use After Free in Linux | cvebase