{"id":"CVE-2026-99415","aliases":["CVE-2026-99415"],"related":[],"kind":"vulnerability","state":"published","title":"ovl: set the revalidate flags after d_instantiate()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: set the revalidate flags after d_instantiate()\n\nstat() of a file on an overlayfs mount triggers a kernel warning and\nfails with ECHILD if another task is creating that file at the same\ntime. This happens on an overlay with a FUSE upper layer, which is the\nlayer where overlayfs creates new files. Write access to a directory on\nsuch an overlay is all a user needs to run the two tasks.\n\nThe revalidate flags are DCACHE_OP_REVALIDATE and\nDCACHE_OP_WEAK_REVALIDATE. They tell path walk to call ->d_revalidate()\nor ->d_weak_revalidate() on a dentry, so that the filesystem can check\nthat the cached dentry is still valid. An overlay dentry only has one of\nthese flags if a dentry in one of its layers has it. FUSE dentries have\nthe first one.\n\nWhen a flag is set on an overlay dentry, path walk calls\novl_dentry_revalidate_common(). That function only expects a dentry\nwithout an inode in RCU walk, while the dentry is being destroyed. For\nsuch a dentry outside of RCU walk, it hits a WARN_ON() and\nreturns -ECHILD. So a negative overlay dentry must never have the flags\nset.\n\novl_instantiate() breaks this rule. When a task creates a file, the\noverlay dentry for the new name is hashed but still negative.\novl_instantiate() then works in this order:\n\n- It copies the flags from the new upper dentry to the overlay dentry.\n- It calls ovl_get_inode(), which can sleep in a getxattr request to the\n  FUSE server.\n- Only then does it call d_instantiate().\n\nA second task that looks up the name between the first step and the last\nfinds a negative dentry with the flags set and revalidates it.\n\nReproduced with a FUSE server that delays its getxattr reply: stat() of\na name that was being created hit the WARN_ON() and failed with ECHILD.\n\nFix this by setting the flags after d_instantiate().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: set the revalidate flags after d_instantiate()\n\nstat() of a file on an overlayfs mount triggers a kernel warning and\nfails with ECHILD if another task is creating that file at the same\ntime. This happens on an overlay with a FUSE upper layer, which is the\nlayer where overlayfs creates new files. Write access to a directory on\nsuch an overlay is all a user needs to run the two tasks.\n\nThe revalidate flags are DCACHE_OP_REVALIDATE and\nDCACHE_OP_WEAK_REVALIDATE. They tell path walk to call ->d_revalidate()\nor ->d_weak_revalidate() on a dentry, so that the filesystem can check\nthat the cached dentry is still valid. An overlay dentry only has one of\nthese flags if a dentry in one of its layers has it. FUSE dentries have\nthe first one.\n\nWhen a flag is set on an overlay dentry, path walk calls\novl_dentry_revalidate_common(). That function only expects a dentry\nwithout an inode in RCU walk, while the dentry is being destroyed. For\nsuch a dentry outside of RCU walk, it hits a WARN_ON() and\nreturns -ECHILD. So a negative overlay dentry must never have the flags\nset.\n\novl_instantiate() breaks this rule. When a task creates a file, the\noverlay dentry for the new name is hashed but still negative.\novl_instantiate() then works in this order:\n\n- It copies the flags from the new upper dentry to the overlay dentry.\n- It calls ovl_get_inode(), which can sleep in a getxattr request to the\n  FUSE server.\n- Only then does it call d_instantiate().\n\nA second task that looks up the name between the first step and the last\nfinds a negative dentry with the flags set and revalidates it.\n\nReproduced with a FUSE server that delays its getxattr reply: stat() of\na name that was being created hit the WARN_ON() and failed with ECHILD.\n\nFix this by setting the flags after d_instantiate().","source":"cvelist"}],"published":"2026-11-19T14:40:13.532Z","modified":"2026-11-23T08:17:44.857Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bccece1ead368149f90e05ad104dfbfda4422f5d","fixed":"b4364e6841b41a6dae250b351d539ed258c77972","status":"affected"},{"type":"git","introduced":"bccece1ead368149f90e05ad104dfbfda4422f5d","fixed":"d05ab44d355770e20eabd3be06ad1edaaf4bf18c","status":"affected"},{"type":"git","introduced":"bccece1ead368149f90e05ad104dfbfda4422f5d","fixed":"e876482d955476d0c066afda8273bfd38e0f65be","status":"affected"},{"type":"git","introduced":"bccece1ead368149f90e05ad104dfbfda4422f5d","fixed":"7ecbeb1a84f2d099012ccd95a8a7588e1306cc46","status":"affected"},{"type":"git","introduced":"bccece1ead368149f90e05ad104dfbfda4422f5d","fixed":"3d92153206cebe95dc873a4b2b3d506ddf2271e7","status":"affected"},{"type":"git","introduced":"bccece1ead368149f90e05ad104dfbfda4422f5d","fixed":"75e89c0055c1d7f7eeb462995f11253ca5864f79","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.7","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b4364e6841b41a6dae250b351d539ed258c77972","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d05ab44d355770e20eabd3be06ad1edaaf4bf18c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e876482d955476d0c066afda8273bfd38e0f65be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7ecbeb1a84f2d099012ccd95a8a7588e1306cc46","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3d92153206cebe95dc873a4b2b3d506ddf2271e7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/75e89c0055c1d7f7eeb462995f11253ca5864f79","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99415","url":"https://www.cve.org/CVERecord?id=CVE-2026-99415","licence":"CVE Terms of Use","modified":"2026-11-23T08:02:27.143Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99415","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99415","licence":"Public domain","modified":"2026-11-23T08:17:44.857Z"}],"updatedAt":"2026-11-25T22:59:52.060Z","epss":{"score":0.00197,"percentile":0.09885,"date":"2026-12-01T12:00:22.000Z"}}