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=1795154245; b=rLXCVpSoKZluuKDHY9/kjF51/OWM8T1xT5X8b01VfMdL6LNNSU/qJoujg5EO37PZVHn+ bxFcmnRls+p/SFlTVOZpGocsLqM85mpDeBf3sYc/lBr2mDPPdg48jCqfPH3gpC6C7ClA8 QlAZQnXTiSLSlY0y14Rfc4TBjXXlzFqJ9Af85mOPXQ8znyFGPCefq6cQO8n9+xmSm40lC WnmTi/0p/Y7MtVFxXkC49NzafVbw7my+7Vqp4fg7mPfJOeK2paUtEr6sfM6y9iUHXbz2z CsYgwZw2FZHPUlg4FMtvsRuZIa8Nl3lRFmiXv+Zgy00IkWbhsDbm5I9dXGGP6ibBr2Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154245; 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=mMBLuKFoYSJnlnIVhn2aCZtOM6CX0igTqoL9pgYjI1w=; b=xL3Cn+opG+O03toQIfdEy9hjh624PLlJFZS0NIoLjF81yqGWNzGmTKKncQR6fQcRmCZf 16GnVMKFpIi602th/Pbgv1ePIxv6FO4WL25wtewyuaB7ruyGrCC3MhJb1UUl13nL7unnc mf9H5qeO5XMqBjGft7b/cRA8zCiaQiGSByJdCGEf8rKJCfBfQ6WvcDs+XQxpAcRBM5vXJ +n49edV+EtXhqPYLm93/K+Ke+jgomyJsJoJouOR3Dcgi3GzKf0r/1ao8XT3jNdGRbgNVA xydpJiaclme6b5p90UWYRqdBLOH1QoqOAcG6mSjV5bmYNxTu3iZd2eXkgnOy1gSj7Uw== 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=uAqbCMme; 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 9B3CB60A2605 for ; Fri, 20 Nov 2026 05:57:25 +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=uAqbCMme Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97B851F000CF; Fri, 20 Nov 2026 05:57:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154245; bh=mMBLuKFoYSJnlnIVhn2aCZtOM6CX0igTqoL9pgYjI1w=; h=From:To:Cc:Subject:Date:Reply-To; b=uAqbCMmeJWmKOIsZ5N5Ay18NoUuE/sSfzJg0c7hBLt2VNUP5ep7iiI+GXBDx3uO3N j8gI6HF+y8LNo30Rub9/v04DQ/14EAwJj1byDOJnGD5BIka4qhi+AEY/7FYJPD0nK5 z58Pum7QnrGD7ElMxWdAzAQn5vQt6pJAzKhfHYqY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99639: ovl: fix whiteout creation in casefolded directories Date: Fri, 20 Nov 2026 06:50:25 +0100 Message-ID: <2026112039-CVE-2026-99639-2b03@gregkh> X-Mailer: git-send-email 2.56.1 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=3744; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AOCXOg9xoRF+nwkRj9tYVnYh6vURcco9Jt2Reji/42o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/75f4rpH8+Vej3Pbl9xU3ebhV05aK3r3ELce8Zq/g9 WsLHJ/f7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJMM1mWLBU9N3v6ev861YE tu1ii7LVy1jOn8Awm+3WTbavre17Xv2wPnPlpJFWiM+vPAA= 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: fix whiteout creation in casefolded directories unlink and rmdir fail with EINVAL on an overlay with casefolded (case-insensitive) layers, if the name exists in a lower layer. Casefolded layers need CONFIG_UNICODE. Root can mount such an overlay, and so can an unprivileged user in a user namespace, with tmpfs layers. Overlayfs does not change a lower layer. To remove a name that exists there, it hides the name with a marker file, a whiteout. It creates the whiteout in the work directory, a scratch directory on the upper filesystem, and renames it over the name in the upper directory: - ovl_whiteout() creates the whiteout with mknod, or as a hard link to an earlier whiteout. - ovl_cleanup_and_whiteout() then prepares the rename with start_renaming_two_dentries(), which returns -EINVAL if the source or the target dentry is unhashed, that is, not in the dentry hash table. With casefolded directories, both dentries can be unhashed: - The target. Lookup in a casefolded directory leaves a negative dentry unhashed, so the rename target is unhashed if the name does not exist in the upper directory. - The source, which is the new whiteout. tmpfs hashes a dentry when mknod or link makes it positive, but ext4 does not, so on ext4 the source is unhashed as well. The cleanup after the failure also refuses an unhashed dentry, so on ext4 the whiteout is left behind in the work directory. Reproduced with rm and rmdir on casefolded tmpfs and ext4 layers, also as uid 1000 in a user namespace. Fix this by creating the whiteout with ovl_create_temp(), which repeats the lookup if the new dentry is unhashed. Prepare the rename with start_renaming_dentry(), which looks up the target name with the directories locked. The caller looked the name up without a lock, so return -ESTALE if the name now refers to a different inode. [amir: pass the name used for lookup instead of taking a name snapshot] The Linux kernel CVE team has assigned CVE-2026-99639 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa and fixed in 7.3.5 with commit 48bd1823237fb076db6e109e35c59b1bc08f550a Issue introduced in 6.19 with commit 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa and fixed in 7.4-rc2 with commit e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4 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-99639 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 fs/overlayfs/overlayfs.h fs/overlayfs/readdir.c fs/overlayfs/util.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/48bd1823237fb076db6e109e35c59b1bc08f550a https://git.kernel.org/stable/c/e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4