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=1795099531; b=bjvOpQ/t8sndq/Sppqpcuk6F7ShVtiAf0JAi4Bi1X/q+bI2mW1zGNNYBElDA1UR3mGMW 68prB5Bnp4doHaYNSJ6UG9edbdhLpfujPb0FK4qhh7imcTWiS1vpktloDYsuOyn5F0oay GvreNDAwTYJlBZx0VJm2QZEmDaKCAJpjZxYZBi9ZxhLleR7N71PEYK53IKigI/Hz4wgYS k2TON5Ie5+wQl3P+Sh/UOo0BA0UFDa3HMHg5fBjd7ej+xT76JI9FfWZqUx11hJS5cmdLs 9fl7RpFA/9U82zqJKngJHm9X7X1aaf/3Ck5RIu1i8nOohhzjbH5tC9RZGf6YEzxoNuA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099531; 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=mQah/Wt0vbjXuzqLT+fg1tfJu55DMjJyjFXLJCdVDP8=; b=uaFw8EMa8afUvnnUEEdFHB2eCiQl8BY1Q68GMELuld2/aBQuStoB30qoePdGgY2+w+hY eE3jEAHUN0gb9HhxRovM2x+w5j/ftjtZUhh9U7SNR6Q4NGnk6uLGoh2KlYKLRsPPwIv8V 4/4puFrLAAa0bipmzu+ott/IBB3QTd3sylP/LLzIBQV2CloaGZCXPNTu5i03UViuOr5T0 KqKAvDWSKMzp+mYahrqORCG7L7R8VKR02PMlTsUyfNd7bTuCxeuO6jmQDsR5G0wkXfPuu q+Pr7KY4mAuuHa5AqLA3Xz9EyDGbNC7kQoiyiHtSfYKUArwL34PjiY/AGW7lVzdTWnA== 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=rrUQieQo; 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 29DC5606A324 for ; Thu, 19 Nov 2026 14:45:30 +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=rrUQieQo Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBC6C1F000C5; Thu, 19 Nov 2026 14:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099530; bh=mQah/Wt0vbjXuzqLT+fg1tfJu55DMjJyjFXLJCdVDP8=; h=From:To:Cc:Subject:Date:Reply-To; b=rrUQieQozlzueUISVCYy4AOqnlPrsSivy2S85Nmc1FPWQAtv9fYaGcdpE7a80a8Js Qh9tz5Uor5rNU6+HbivhYBi5k8FnGbUvyxL7vGrojGc5hv2yYZefhgKkm8fBVpeutT oBYk/vNYP9sjgl+g8+ji0EZsYj77ic6CZuaHHx0Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99419: ovl: do not copy up a dentry that was removed Date: Thu, 19 Nov 2026 15:25:17 +0100 Message-ID: <2026111900-CVE-2026-99419-2267@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=3198; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zDhIZ6kpLr8OR+pLZ1oK73Eiggaol8J/EHtAZmOv9Po=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2RqWX0m9ohXlcbvzse4Ko2+erOf4P83LLtDT1ejqt BIM6DPuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImYVTEsOOpUJVi24ZZcZuH9 t5rcOTpSU2M4GeaKbYz+eUA7+A1j2Quh4uAHFhstXnUCAA== 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: do not copy up a dentry that was removed A change to a removed file through an open descriptor replaces whatever has its old name in the upper layer. Copy up must only create a name in the upper directory, never replace one. After an unlink, an rmdir or a rename over a lower dentry, a dentry that an open file keeps alive still has its old parent and name, but in the upper directory that name is now a whiteout or a new object. ovl_copy_up_workdir() renames the copy over it, which brings back the removed object and destroys whatever took its name. An unprivileged user opened a lower FIFO and unlinked it, root created a file at that name, and fchmod on the old descriptor replaced the file of root with the FIFO. Fix this by looking up the target name of the rename in ovl_copy_up_workdir() with LOOKUP_EXCL, so that copy up fails with -EEXIST if the name is taken, as copy up with O_TMPFILE already does when it links the copy to the name. [amir: use LOOKUP_EXCL instead of relying on d_unhashed()] The Linux kernel CVE team has assigned CVE-2026-99419 to this issue. Affected and fixed versions =========================== Issue introduced in 3.18 with commit e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c and fixed in 6.12.117 with commit 383a883cf71525752a3092bba3c22aa1ab04df37 Issue introduced in 3.18 with commit e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c and fixed in 6.18.61 with commit 1d9706fb79a9499f5a0f7d7f755b6bb9b14cc426 Issue introduced in 3.18 with commit e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c and fixed in 7.3.2 with commit 0defa3e443bbdd38628f0b594809c52295836dec Issue introduced in 3.18 with commit e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c and fixed in 7.4-rc1 with commit f635192ad223d2009ee640b63adf5ce3198aa338 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-99419 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/copy_up.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/383a883cf71525752a3092bba3c22aa1ab04df37 https://git.kernel.org/stable/c/1d9706fb79a9499f5a0f7d7f755b6bb9b14cc426 https://git.kernel.org/stable/c/0defa3e443bbdd38628f0b594809c52295836dec https://git.kernel.org/stable/c/f635192ad223d2009ee640b63adf5ce3198aa338