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=1795099576; b=I/b7R+9B8augoMe06T7POotSngO3pfMVBQRqtieJNRN/Qx9mU1nMFVtk8TBgukkxGfCN w+qESIEXg5LNvg1co68EZUfg+JJrEzymt1V7HkP11cx4mT9kyq+xkCEyFFEM3sgA3K8aH usL+i5qOZrx0G6tD8NJE3xqT1V4LEJxpBOJ5GAnwf8bR16hhvM/RrjZ+AFYpyaCBc8bTi l5E4MMnsdV0XT3SwE5rVlmwwx57lGDKk95uLPrZ9Sr9BCmRU5kbnwz8HifH5mIwvDf5NW 3YoaurUUFpUj3q4+L+A+O24xA2nmqRe6iAqYEMED9YEVWValL/mmEIUfWK9ZAUrfajQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099576; 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=aJVy8lOYQDBBsAiqhptZM4Hg03ncDtyNGAdvHF7PKMw=; b=x+7ozDTl1UH4eJYe7Yge/yWfmrCA8uh2voHqbVIzcsL/H6aejgTEK39pAQ7B1KmKNGuc ZtxLM/6YrbGSic9zUItxz+zhVuXKu/nR8dKx+kDl7ArFeN6/sOCW0hEoOImk4dyKtuEv8 XmasA6thGwDSmWuX+PO1MT0QqWVttJht/nUmMFAoJjJxbXCnBMn7JEiU+iZQi4gYCxujw NCG6FAeGA1K1aOTwLot+TKBNLJo5nUe3Nu5MWtIl48j893JtS8kgZD+WLA48xMFA6EBQ/ J2TR4ia0MKfKgqk/ui0G0RQoj54rAo8e4KJpLDPb0RoGmFkvJaztEt4opK5vlOZsj9w== 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="StCl2v/3"; 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 07C1B606A325 for ; Thu, 19 Nov 2026 14:46:16 +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=StCl2v/3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0B961F000C6; Thu, 19 Nov 2026 14:46:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099575; bh=aJVy8lOYQDBBsAiqhptZM4Hg03ncDtyNGAdvHF7PKMw=; h=From:To:Cc:Subject:Date:Reply-To; b=StCl2v/3gM54LENrO5TqbCRTHfpk0SB8fxY0pZbdkMey4cJtu/fg00hT15IP6bQfK FYrcqctnjIFqfk16q8W56UgB07jrvk+4m/xWQwJ04k0S3lcbZ4RuuMXVOcoibAOVTA qAsYbuIy0PswOor+v9Y/o1lwGnYukM1Bayvew++s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99425: ovl: hold a reference on the parent in readdir Date: Thu, 19 Nov 2026 15:25:23 +0100 Message-ID: <2026111902-CVE-2026-99425-8659@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=3131; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nkHHkE+ttwjdyM0MWX9xbpULtlzFeqs0LpT4Otk0Y8I=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Zpusj6/X/bpSNy2yfHPdwf9fiWie+Tg1Nsq4tVL1 n+wM5Nu74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJZFUxLFhtu7V8xvdp3I7J xtVt3w2crTf6rWCYnz/n7oqv75wWX/ThimG+9+S7/ekbXQA= 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: hold a reference on the parent in readdir Listing a directory on an overlay uses a freed dentry and crashes the kernel when a lookup moves the directory at the same time. Code that can sleep may only use d_parent without a reference while something stops a move of the dentry. ovl_iterate_real(), ovl_need_adjust_d_ino() and ovl_cache_update() use the d_parent of the listed directory and hold only the lock of that directory. When a lookup finds the directory under another parent after a change to a layer, d_splice_alias() moves it without that lock and drops its reference on the old parent. With a delay in ovl_iterate_real(), getdents64 on an overlay directory raced a rename in the lower layer and a lookup that moved its dentry, and after an rmdir of the old parent KASAN reported a use-after-free in security_inode_getattr(). Fix this by using dget_parent() in the three functions. [amir: fix comments in ovl_need_adjust_d_ino()] The Linux kernel CVE team has assigned CVE-2026-99425 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit b5efccbe0a12a9d5c65c1a60b4270837c7fdb900 and fixed in 6.12.117 with commit 862804fc1d8e6d11652d01f84451a0c9396d10cd Issue introduced in 4.14 with commit b5efccbe0a12a9d5c65c1a60b4270837c7fdb900 and fixed in 6.18.61 with commit 0759376aa01168edeec9319f9cc8e5e9b9388c5c Issue introduced in 4.14 with commit b5efccbe0a12a9d5c65c1a60b4270837c7fdb900 and fixed in 7.3.2 with commit 73aae2a6b5b34b4ee5dbc7b008fc658c2a16fcea Issue introduced in 4.14 with commit b5efccbe0a12a9d5c65c1a60b4270837c7fdb900 and fixed in 7.4-rc1 with commit 16d319e12328acafeafd3eecdf09c46d7fb43452 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-99425 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/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/862804fc1d8e6d11652d01f84451a0c9396d10cd https://git.kernel.org/stable/c/0759376aa01168edeec9319f9cc8e5e9b9388c5c https://git.kernel.org/stable/c/73aae2a6b5b34b4ee5dbc7b008fc658c2a16fcea https://git.kernel.org/stable/c/16d319e12328acafeafd3eecdf09c46d7fb43452