CVE-2026-99415: ovl: set the revalidate flags after d_instantiate()

Published Nov 19, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ovl: set the revalidate flags after dinstantiate()

stat() of a file on an overlayfs mount triggers a kernel warning and fails with ECHILD if another task is creating that file at the same time. This happens on an overlay with a FUSE upper layer, which is the layer where overlayfs creates new files. Write access to a directory on such an overlay is all a user needs to run the two tasks.

The revalidate flags are DCACHEOPREVALIDATE and DCACHEOPWEAKREVALIDATE. They tell path walk to call ->drevalidate() or ->dweakrevalidate() on a dentry, so that the filesystem can check that the cached dentry is still valid. An overlay dentry only has one of these flags if a dentry in one of its layers has it. FUSE dentries have the first one.

When a flag is set on an overlay dentry, path walk calls ovldentryrevalidatecommon(). That function only expects a dentry without an inode in RCU walk, while the dentry is being destroyed. For such a dentry outside of RCU walk, it hits a WARNON() and returns -ECHILD. So a negative overlay dentry must never have the flags set.

ovlinstantiate() breaks this rule. When a task creates a file, the overlay dentry for the new name is hashed but still negative. ovlinstantiate() then works in this order:

- It copies the flags from the new upper dentry to the overlay dentry. - It calls ovlgetinode(), which can sleep in a getxattr request to the FUSE server. - Only then does it call dinstantiate().

A second task that looks up the name between the first step and the last finds a negative dentry with the flags set and revalidates it.

Reproduced with a FUSE server that delays its getxattr reply: stat() of a name that was being created hit the WARNON() and failed with ECHILD.

Fix this by setting the flags after dinstantiate().

Affected Software

3 affected componentsFixes available
linux/kernel>=5.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.61
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2
  4. Compensating control

    In overlayfs, set the revalidate flags only after calling d_instantiate() in ovl_instantiate().

Event History

Nov 19, 2026
CVE Published
via MITRE·02:40 PM
Data Sourced
via MITRE·02:40 PM
Description
Data Sourced
via NVD·03:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203