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=1795099568; b=pZagnQ3PnYJYnlUr3wiosWUTz8XJDG20ZdY7m/qCoHoN1IriFdwLKXvdDaB0GyAZk85Y kDIgpuR7hNB+qKkV871960YmCxWTLDSPvd93AbsxAnEX9K62uqAl0XmV3KOG7d4ItRLtN zbvZq3oY0pEO5w44ulanl0Z7SAxMJ129cL5g0XOBhDmVGLMvDjv8gaNxBoOiEuMzZIgmF BeAJQaXlk05s6H8etqTnOiSHf1p6lK2ZnnNKUk3o6l4ojRKW3D5qrEyDDgR1BqUb/RPO4 qj6/ybZCkYUQqD3KlZgyWg6wXTvDPs/4zKedo1LZWo7hCFdPlW/W3I0HNrbClvq7v9Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099568; 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=//TO9xjoPaVOQaYR0xNDo8dct7RQ11wts78HGyXCAXA=; b=wkQg2SCzdeTQ8E6sjMTibv7eP7h1SCSPz/Bn6gZTIxxChZ84w7sl1gvh2RMvOrJSAlyH Lz1Quc2+63khhtt9cGHp9vre559P0E/T+ZlPcIpeu0OKOr+kEdI0IRcpOgphmEcFmEiu1 RLYoopQa4UUUBHYkLGSbCueYiA7kJ6HzLl+mVnz9lzXTFQgGyTfa0+CV7ob4Ec9Gi/tuN PYl2UgqyMq2PJ25zM2sotIf8n6VKWid8Wjn8Jqp4pA9DyRSzavHFPK/ALLfRYLNgEUhDo uEnqZ5OaFa5trdhXZVxlpxCAMAxDs+Kzcx9w7KuZtdlQwqDShhPKtqajxCRqZJL0lgw== 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=yYJ7Rfg1; 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 D6F0B60A2618 for ; Thu, 19 Nov 2026 14:46:08 +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=yYJ7Rfg1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF4711F000C9; Thu, 19 Nov 2026 14:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099568; bh=//TO9xjoPaVOQaYR0xNDo8dct7RQ11wts78HGyXCAXA=; h=From:To:Cc:Subject:Date:Reply-To; b=yYJ7Rfg1SZELjAQ3jY0+xJkm4AJ0azPLZZCg6vhjDLcEOsurDscuYM+fJMRHywaxq byOhCMf5KNPXp5IM7RUvgHCckz0F+V/R3npTHEjOGPLNPAaCWzn2pJSYI/MJ00yX4V lrWdKN+x86CSWs3OoD2hrWvH20BGszC2YZm9LHUI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99424: ovl: set OVL_WHITEOUTS before publishing the upper dir Date: Thu, 19 Nov 2026 15:25:22 +0100 Message-ID: <2026111901-CVE-2026-99424-4239@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=3362; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rr5u+8AUBnVDobowbDwffCGJYka966ZAhTZBKVB5cPk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2RrvlhqdcbGV3/Vx1aKlilVvnDPU1h4/lRfAWP05e VtYj3l0RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzky3SGOfz//lqvulXd/uQ2 a0toZqfk9zB/HoYFS1+U3IvO2L8xqNGqt1tQvSLS+tcWAA== 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 OVL_WHITEOUTS before publishing the upper dir Listing a directory while it is copied up causes a use-after-free of the readdir cache. A merge directory must never be iterated as a real upper directory: that mode frees the cache in OVL_I(inode)->cache without looking at its refcount, while files opened in merged mode still use it. ovl_copy_up_workdir() publishes the upper dentry before it sets OVL_WHITEOUTS, and ovl_dir_open() samples both without a lock, so an open between the two stores finds the upper directory and takes it for a real one. With a delay between the two stores, an unprivileged process that listed a directory during its copy-up saw only "." and "..", and its next getdents freed the readdir cache of another descriptor. Fix this by setting OVL_WHITEOUTS before ovl_inode_update(), so that ovl_dir_reset() agrees with ovl_dir_open(), and by testing OVL_TYPE_MERGE() of the path type in ovl_dir_open(), so that an open that observes the upper dentry never iterates a merge dir as a real dir, regardless of the order in which it observes the flag. [amir: test OVL_TYPE_MERGE() instead of smp_rmb() in ovl_dir_open()] The Linux kernel CVE team has assigned CVE-2026-99424 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit b79e05aaa166755fafbf02db275175edb5175df8 and fixed in 6.12.117 with commit 43ad4a3090e1c2a0c34e9802882b42c5c078d556 Issue introduced in 4.15 with commit b79e05aaa166755fafbf02db275175edb5175df8 and fixed in 6.18.61 with commit 7805739ce4577f2c53f5a30be2d48e83e91c63bc Issue introduced in 4.15 with commit b79e05aaa166755fafbf02db275175edb5175df8 and fixed in 7.3.2 with commit ea5327a9228bfd1609e54f1fca50786e8f963da5 Issue introduced in 4.15 with commit b79e05aaa166755fafbf02db275175edb5175df8 and fixed in 7.4-rc1 with commit cbec8610ec5aaf35df50094ff639febc23f20773 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-99424 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 fs/overlayfs/readdir.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/43ad4a3090e1c2a0c34e9802882b42c5c078d556 https://git.kernel.org/stable/c/7805739ce4577f2c53f5a30be2d48e83e91c63bc https://git.kernel.org/stable/c/ea5327a9228bfd1609e54f1fca50786e8f963da5 https://git.kernel.org/stable/c/cbec8610ec5aaf35df50094ff639febc23f20773