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=1795099554; b=noya/SKB/dVM5JJo3yZQVtEWBlajgADOCsAYvX7UAAChUHuTmVagD2ybJI5D5pnwnDnN fINqtT/7IU6SsN2YFDFn9qkHMuqBhGbZMSsgE1B4QhrgwCv18ptWGNjYAt6aicwqEJppX udOzKFsq+lj9VbSP8P4pyT6z683BTKicnhP+slf9Ogm5RBU9WVXVHVI0ZiI+/zTlqokPg urK2RQtueNdZ6xRkBfu2NqFj1GDOIY73uavsboHolTLNoSyBk6zi0hishTa6lgynxTzPJ w9jDsSbcZU+KwZYGt07SaQyitK5DhahoS4X26YWa/i/40HY0IrDSnuvdY1QagF8RSzg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099554; 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=fRM7EuoU2nI0BwOqcCXw4jb2WErMt3FXZ6WWz5GIOR0=; b=xAUzhcmu7fvg/TbKtA0VLnvMiahRWMHyOok6RMDAA3/fKWbk0dDioYyGRFs1nejX8uda f+aCtbojq+VfMCyD2BTJ3CTO7xyQCmt09zaU4Nqwr/ItdRBMHKSv6hIFzfcf0ncYYe9nW hhHEc7AXU3Pywa4M2qK2KQGJ7rsuf2czUzVDtiqLC0tyhtYagrxHtgVzQMGixBLP/wNNm jph+IHtW5zbHS5GBdClY1ZS9d04xlPSGEgHOPszUCI47Xq2IcItfgbnanvZIML6XrC80R SEsHwgb5To7LIlU3A3xzWCyOnZ7dr/QkblBJdBHKl02i8QhtwUp+7rKRe8+QCJUmT0A== 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=H+TQTDVa; 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 87922606A324 for ; Thu, 19 Nov 2026 14:45:54 +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=H+TQTDVa Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3387A1F000C5; Thu, 19 Nov 2026 14:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099554; bh=fRM7EuoU2nI0BwOqcCXw4jb2WErMt3FXZ6WWz5GIOR0=; h=From:To:Cc:Subject:Date:Reply-To; b=H+TQTDVaH+L2I6RJ0uX8dDRitZ0Jcf8MLjB1ExlYvNGetB2LaLOoKUTzlsasXtblb xCBlTYzA8y3Fb4EC86msmaBXc2CyVxX6moJKwNEBMknOjTSox/sIVcBqnGy/aOzQVj SDY5AY+EpOinG6Xth8OXAejUbpXkmKeel7wlY57c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99422: ovl: use the pinned upper dir in ovl_fix_origin() Date: Thu, 19 Nov 2026 15:25:20 +0100 Message-ID: <2026111901-CVE-2026-99422-7651@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=3008; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OAMPUxxrSWQB5tMrfrt1GFK54ljyRFuxA/45OJpJGP8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2RrZC666B2z4G3tpU3mlnNharUv9/sJWZfX7NjWwm c59d5S9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSrcMwV6j90LZqqyP+izXr Pc53TZnoyZK3gmGeqo9qMeuJw6kcyvZp95OqTYKSuAUB 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: use the pinned upper dir in ovl_fix_origin() Renames made directly on the upper filesystem during a lookup crash the kernel. A dentry that is passed to vfs_setxattr() must be pinned. ovl_fix_origin() passes upper->d_parent to ovl_set_impure() without a reference, and the lookup holds no lock of the upper directory. A rename on the upper filesystem changes d_parent, and only the child pins the new parent, so a second rename and an rmdir free it. With delays in ovl_fix_origin() and ovl_set_impure(), renaming the upper directory twice and removing the intermediate parent during the lookup of a merge directory without an origin xattr gave a KASAN use-after-free in vfs_setxattr(). Fix this by passing the upper dentry that the overlay parent holds. [amir: add helper ovl_set_impure_dir()] The Linux kernel CVE team has assigned CVE-2026-99422 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 9678e630305724487f1fc101d6b83c383ff9cc90 and fixed in 6.12.117 with commit 17a540e65e567c8e4dd165a3ce5b592842ba5ab5 Issue introduced in 4.16 with commit 9678e630305724487f1fc101d6b83c383ff9cc90 and fixed in 6.18.61 with commit b219cdaea16b2f3e8e13a63662d462addd8a2cd0 Issue introduced in 4.16 with commit 9678e630305724487f1fc101d6b83c383ff9cc90 and fixed in 7.3.2 with commit 77c9b481faacf46b9d9282ffaa71afbac7acf819 Issue introduced in 4.16 with commit 9678e630305724487f1fc101d6b83c383ff9cc90 and fixed in 7.4-rc1 with commit 4f61ff2ebfb3d2967b83b6a4d456242244d5a61f 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-99422 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/namei.c fs/overlayfs/overlayfs.h 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/17a540e65e567c8e4dd165a3ce5b592842ba5ab5 https://git.kernel.org/stable/c/b219cdaea16b2f3e8e13a63662d462addd8a2cd0 https://git.kernel.org/stable/c/77c9b481faacf46b9d9282ffaa71afbac7acf819 https://git.kernel.org/stable/c/4f61ff2ebfb3d2967b83b6a4d456242244d5a61f