From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796025180; b=mYCT/g86ggfFDgxyiqk7+7PdbEnBwxXuBby2D5wAFvUx/pKxbXxmGADWqV/RwgnogmLp gpSzp/4DkrjSRS4UKQx2XJSf8Q2sH+RRkchWuVMqLgW7Cecl2FBHYHNkpr5A3IWMdHrhR cV160J6sbM/Z5Wf140n4hQNYjeX75SI9O7SDrwMHcS+42Zl0f8ePdxroOnC2hjxQOfjIe cvH8SdSFvUywrP5e8HjFctdJ7DwNSLgkmxlN3AVrxOdFSsLqwXZoTeFbe2xNajJ1fjkb2 0MVaGfG5CgduvDfe/poCHlFcJX2zXnPoZV1HfstuuEOE4eY8M8Sqjd4qY78tUIgetfA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796025180; 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=Q7kgbu3QtKggCw9Mp5huadObvL3eQmtL73PAsj4XeJU=; b=DmpF0uWcZ95Wj6tmfH7K5IrkOhkmhGHaF12pH2dfD/iAdAc8fiZEFH7e1sPdhsXfkVUN BKxr3V8RxpfKQ4qtiVrbFxiSo+x/9IBHKWtBnlaBkWFKFX2qvjJ98lSszdnvDpKpf1ZkS j0fa+j0Obtwfjm5d6Bie4QGV9YXX6muPx3yiyS7T5NjwStX77oMHlWDXBPlEw0ozE+/Ay NWbkA/wNjwgWAEl4L9lfwpJscvSDd/WVxDj5fFrD9nVWQUNxgCMmVAmb8OHloqIcR3pwY olUcb6xADElsqUSd12PvpccZrCb8RtSe7ohEeTcVUAYoFozFKOjpokeGJm+CGWn2zjg== 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=FJhxJNMz; 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 21280606A320 for ; Mon, 30 Nov 2026 07:53:00 +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=FJhxJNMz Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12D451F00898; Mon, 30 Nov 2026 07:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796025179; bh=Q7kgbu3QtKggCw9Mp5huadObvL3eQmtL73PAsj4XeJU=; h=From:To:Cc:Subject:Date:Reply-To; b=FJhxJNMzX/30cihfyuM1pYQoru/TfQVIESybjb6eopqTrv5o7tuuACkHWGObLl70p 5xZiyZhPbTWe3y5jBoRDYn6d0EjtMQm4sekB6Hq7IasldXpfEEwEzJJin8kFTViqPu ubErY4PUrv3KFgK45IJvPfiQCsKKg2TTCL37rc3A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99820: ocfs2: fix array out of bound access in __ocfs2_find_path() Date: Mon, 30 Nov 2026 08:52:34 +0100 Message-ID: <2026113029-CVE-2026-99820-4e2a@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=4487; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sZeYyDzTavgPX6FJ0ShWt5rKUANBQ9DoCUcIS25Bn60=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm82rZCZ23aY6X1yzbdr+52LP8jE3mhbt6n+H33nLLMj u9ayzy3I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSsZdhQW99VWPvhhXbN09u zGf/wn/q92/bXoYFa3MunRFbdUYpZYpeg3rEC4b/ljuVAA== 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: ocfs2: fix array out of bound access in __ocfs2_find_path() __ocfs2_find_path() walks down the extent tree and records path by calling find_path_ins(), which appends entry to path->p_node[]. It only has 5 spots. A corrupted ocfs2 image whose extent block is pointing to itself causes __ocfs2_find_path() descent endlessly, writing past the end of path->p_node[] array. UBSAN: array-index-out-of-bounds in fs/ocfs2/alloc.c:677:14 index 5 is out of range for type 'ocfs2_path_item [5]' Call Trace: find_path_ins (fs/ocfs2/alloc.c:677 fs/ocfs2/alloc.c:1914) __ocfs2_find_path.constprop.0 (fs/ocfs2/alloc.c:1882) ocfs2_commit_truncate (fs/ocfs2/alloc.c:1924 fs/ocfs2/alloc.c:7286) ocfs2_truncate_file (fs/ocfs2/file.c:515) ocfs2_setattr (fs/ocfs2/file.c:1224) notify_change (fs/attr.c:556) do_truncate (fs/open.c:68) do_ftruncate (fs/open.c:194 (discriminator 1)) ksys_ftruncate (fs/open.c:206) __x64_sys_ftruncate (fs/open.c:211 fs/open.c:209 fs/open.c:209) Commit a406aff8c051 ("ocfs2: validate l_tree_depth to avoid out-of-bounds access") already restricts el->l_tree_depth to be less than OCFS2_MAX_PATH_DEPTH, which is equal to 5. However, does not handle the infinite descent case. Check if the el->l_tree_depth decreases on each descent. Maximum descents are restricted to 4 and the path->p_node[] array does not overflow. The Linux kernel CVE team has assigned CVE-2026-99820 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.22 with commit dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 and fixed in 5.10.275 with commit 825e31b1dd0711d3e611b0e53c43d905471b15b5 Issue introduced in 2.6.22 with commit dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 and fixed in 5.15.226 with commit 3f777a202b58927d2b9b79c500ae1c8b89b8d436 Issue introduced in 2.6.22 with commit dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 and fixed in 6.1.193 with commit 3d608a953dc4bdd39516a79b6ffb8924736bb000 Issue introduced in 2.6.22 with commit dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 and fixed in 6.6.163 with commit cf8e485c3e76c8caad3bb91539b08bc11252676a Issue introduced in 2.6.22 with commit dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 and fixed in 6.12.118 with commit 7c07e14de49ec2e0080e2d6bfc5709502f88ed34 Issue introduced in 2.6.22 with commit dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 and fixed in 6.18.64 with commit f254281e111578ec90f4434f34a7264521173359 Issue introduced in 2.6.22 with commit dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 and fixed in 7.3.4 with commit bf8a21fb049f55804d9a5ad7cf864e71697df0cc Issue introduced in 2.6.22 with commit dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 and fixed in 7.4-rc1 with commit 6193ce7896afb52a321a0063c8b6a45e477a84e2 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-99820 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/ocfs2/alloc.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/825e31b1dd0711d3e611b0e53c43d905471b15b5 https://git.kernel.org/stable/c/3f777a202b58927d2b9b79c500ae1c8b89b8d436 https://git.kernel.org/stable/c/3d608a953dc4bdd39516a79b6ffb8924736bb000 https://git.kernel.org/stable/c/cf8e485c3e76c8caad3bb91539b08bc11252676a https://git.kernel.org/stable/c/7c07e14de49ec2e0080e2d6bfc5709502f88ed34 https://git.kernel.org/stable/c/f254281e111578ec90f4434f34a7264521173359 https://git.kernel.org/stable/c/bf8a21fb049f55804d9a5ad7cf864e71697df0cc https://git.kernel.org/stable/c/6193ce7896afb52a321a0063c8b6a45e477a84e2