Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795099484; b=mjFexE25NqTm8+oRewyEtZn/jZb8hyTmBUtyJFEr2/C2NVJH3uA93fnc+ICAkLLhAmya D7nr6DzTQ0JWlpyok33N4RjClZabV8ytEHP3o09lDYmllB84zTNRWcBCxATWa7As5GxGv gHArQ+HURe2FozRn5mucPfHz2C1qL6FeTQC3xb1T4s7PJwF+1fvy3ylTNw8GV+omH1XSR OZTECbZhe1JHxDtFVPYpbIPO73kRtBzl1zpH6pkGxmuZD1wFHQohThnC3DPxv5n7Q7pYk al7gtrYG8E9OyDitoJu39VrlN6GdIUZCUFQEalD3loNN0ouFRm9nodH62ip6P8dql9A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099484; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=7y3DvOW7OxhAr+7iK2w33e//A/9Fvv0ouXflHWHnraM=; b=kN1eSIERt/zBNYPZ+X7DYqZx5DfOGG9klCfXcUqLurmzAUdyYx+tLgsBtuHlQFHizb6x jlC3903hPtMkXVqccQf5el7Mtpd+DtUmYEs0rP0NyFhzfnWjQeepzBrnmPSXNycMrYAsu vKVH0J17xkEb1oI3gAuFHy8wvcDDmFYNf202MkQi/Pkff7FZ0kGf4HEYh6Taut1xmxWUc tRCuNHevzx3FvQFZfvNPLjdZjwyofmrtfztgAriRDEOWFAmCPMklLT4Q71wIBgoJjp/Jx CG2tCDg2gAEXKlqAmdjQZsf+WS1bY3qoTYG2YKY3QuORi5MsklngWirkWzRmQ8ZVPjw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=A10mBkjY; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A06C9606A325 for ; Thu, 19 Nov 2026 14:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=A10mBkjY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33DCB1F000C5; Thu, 19 Nov 2026 14:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099484; bh=7y3DvOW7OxhAr+7iK2w33e//A/9Fvv0ouXflHWHnraM=; h=From:To:Cc:Subject:Date:Reply-To; b=A10mBkjYxEmGOFIjmPZzAptK4Qc4L4u0Lqaf9E7nB1PtvDLb9pLTxdPovLDtQrFWr MJ+TcBf54OKLthuAzZIBzUPG/QJurt5PV/oWt0/XdvOtAusIpuUCsRA+9zGhwuN10n 2QyOfv6XMJdiReo5EMWCQ2AHqUQtUQmIXt/uFQVc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99415: ovl: set the revalidate flags after d_instantiate() Date: Thu, 19 Nov 2026 15:25:13 +0100 Message-ID: <2026111900-CVE-2026-99415-97b0@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3982; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KVvbkGz8f0rgIbkKhF2pWMCo9A99NUkFpoTUk0g4BeE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2RrUH70uWTE99fH8tafOHWjfL2m/qEKYf037xl2rY uelpFwW6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJbO9jWHBgTfJdjVv3DixS n+G/frHo3WU71ScwzGQ8Xv1CL/711OSNYVNnSijHWG/gCQYA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ovl: set the revalidate flags after d_instantiate() 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 DCACHE_OP_REVALIDATE and DCACHE_OP_WEAK_REVALIDATE. They tell path walk to call ->d_revalidate() or ->d_weak_revalidate() 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 ovl_dentry_revalidate_common(). 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 WARN_ON() and returns -ECHILD. So a negative overlay dentry must never have the flags set. ovl_instantiate() breaks this rule. When a task creates a file, the overlay dentry for the new name is hashed but still negative. ovl_instantiate() then works in this order: - It copies the flags from the new upper dentry to the overlay dentry. - It calls ovl_get_inode(), which can sleep in a getxattr request to the FUSE server. - Only then does it call d_instantiate(). 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 WARN_ON() and failed with ECHILD. Fix this by setting the flags after d_instantiate(). The Linux kernel CVE team has assigned CVE-2026-99415 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit bccece1ead368149f90e05ad104dfbfda4422f5d and fixed in 6.12.117 with commit e876482d955476d0c066afda8273bfd38e0f65be Issue introduced in 5.7 with commit bccece1ead368149f90e05ad104dfbfda4422f5d and fixed in 6.18.61 with commit 7ecbeb1a84f2d099012ccd95a8a7588e1306cc46 Issue introduced in 5.7 with commit bccece1ead368149f90e05ad104dfbfda4422f5d and fixed in 7.3.2 with commit 3d92153206cebe95dc873a4b2b3d506ddf2271e7 Issue introduced in 5.7 with commit bccece1ead368149f90e05ad104dfbfda4422f5d and fixed in 7.4-rc1 with commit 75e89c0055c1d7f7eeb462995f11253ca5864f79 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99415 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/overlayfs/dir.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/e876482d955476d0c066afda8273bfd38e0f65be https://git.kernel.org/stable/c/7ecbeb1a84f2d099012ccd95a8a7588e1306cc46 https://git.kernel.org/stable/c/3d92153206cebe95dc873a4b2b3d506ddf2271e7 https://git.kernel.org/stable/c/75e89c0055c1d7f7eeb462995f11253ca5864f79