CVE Database›Document archive›CVE-2025-21887

CVE-2025-21887

kernel: ovl: fix UAF in ovl_dentry_update_reval by moving dput() in ovl_link_up

Loading…

Severity

Moderate

Red Hat Product Security

7.1

CVSS 3.1

Review impact separately from score.

Published · March 27, 2025

Updated · June 30, 2026

Description

A use after free vulnerability exists in the linux kernel such that dput(upper) is being called before ovl_dentry_update_reval(), while upper->d_flags was still accessed in ovl_dentry_remote().

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

CWE-416 · Use After Free