Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31D8A35C69E for ; Sat, 15 Aug 2026 06:14:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774460; cv=none; b=HZVuvKPP24LNTBmArvc+PpiPsst0NglzTAxDeiQ2MLqNgQs01Pam575vintF3pqKWRy62IGi2fScKDYuRow9qN4sHURx0npyFJ+10LBsgEyjKOHkwtT5itl9hhfpXx0b5c8jv32rF0UhDv0Tck02zF/NO64EMgPYigYFBsAFC70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774460; c=relaxed/simple; bh=RR3m/pVRHngTPG6wAFI3KSImBoe6a/JTB/IzRujK3K0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=toBWPFqUIp9Y3Kw3ugBs3t2mV6CcDX3WeHlgQisTS5h+ia02roLg75G3l9//JUV19RvgASxGS1gjMZNqWx5uHtwPL7XsqW4M1jRb42CnpVynA00KBNN9criGJJWlywGlvB3QtfspaqpXQqAwZowaHrukId31BKSAUFIinFDUUVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cY42M3iN; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cY42M3iN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 882C61F000E9; Sat, 15 Aug 2026 06:14:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774459; bh=Y0lrCPkd56SSunuDd7OeaL72i6OfyowYK4C/DVRhNKU=; h=From:To:Cc:Subject:Date:Reply-To; b=cY42M3iNCjMsJIRLjz3Ueol5daacE5BBayovv4M+jI3GKFN0ghFDZdizJL7sYqISI Jq+fmE7r1Vk/Tl8Nc1cufzraIGa+shm5fdchhMARv3K0GmfDp5vekbKU+KqlEDTuUg fDYJN7T9gPqaNxSFsP9DTQgnunJ1wkH7V2+AZspU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72160: ocfs2: reject dinodes with non-canonical i_mode type Date: Sat, 15 Aug 2026 15:03:59 +0900 Message-ID: <2026081536-CVE-2026-72160-725e@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=5050; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x2oVPVDZBSPUaztOTvUVVvj8q/wj1p9VAnL4yVN2Wew=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDAeiFO5l1XHMmX6saOmHnPyIeSkTape5pgkYz9H8e 0znl9XjjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI/FyG+RFcrzl6Tz2f/vG0 8MrEgNjMua93r2CYXy6yWy1PdD0jw8kmn4lPnwfu9NrvCgA= 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: reject dinodes with non-canonical i_mode type Patch series "ocfs2: harden inode validators against forged metadata", v2. This series adds three structural checks to OCFS2 dinode validation so malformed on-disk fields are rejected before ocfs2_populate_inode() copies them into the in-core inode. The checks cover: - i_mode values whose type bits do not name a canonical POSIX file type; - non-device dinodes whose id1.dev1.i_rdev field is non-zero; and - non-inline dinodes that claim non-zero i_size while i_clusters is zero, covering directories unconditionally and regular files on non-sparse volumes. The normal read path reports these through ocfs2_error(), matching the existing suballoc-slot, inline-data, chain-list, and refcount checks. The online filecheck path uses the same structural predicates but keeps its own reporting contract, returning OCFS2_FILECHECK_ERR_INVALIDINO instead of calling ocfs2_error(). This patch (of 3): ocfs2_validate_inode_block() currently accepts any non-zero i_mode value. ocfs2_populate_inode() then copies that mode verbatim into inode->i_mode and dispatches on i_mode & S_IFMT to the file/dir/symlink/special_file iops; an unrecognised type falls through to ocfs2_special_file_iops and init_special_inode(). Reject dinodes whose type bits do not name one of the seven canonical POSIX file types. Use fs_umode_to_ftype(), the same generic file-type conversion helper OCFS2 already uses for directory entries, so the accepted inode type set matches the kernel file-type vocabulary instead of open-coding a local switch. Apply the same structural check to the online filecheck read path. filecheck keeps its own error namespace, so it reports malformed i_mode through the filecheck logger and OCFS2_FILECHECK_ERR_INVALIDINO instead of calling ocfs2_error(), but it must not allow a malformed dinode to proceed into ocfs2_populate_inode(). The Linux kernel CVE team has assigned CVE-2026-72160 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.29 with commit b657c95c11088d77fc1bfc9c84d940f778bf9d12 and fixed in 5.10.261 with commit 2e3aac33988ef4e4170141db8e995693ea38357c Issue introduced in 2.6.29 with commit b657c95c11088d77fc1bfc9c84d940f778bf9d12 and fixed in 5.15.212 with commit fb024ea29f6cb1f01745e5f2e31646f3acb9aa6f Issue introduced in 2.6.29 with commit b657c95c11088d77fc1bfc9c84d940f778bf9d12 and fixed in 6.1.178 with commit 157d31ef45038d89cd19620105e082d43c8e41e0 Issue introduced in 2.6.29 with commit b657c95c11088d77fc1bfc9c84d940f778bf9d12 and fixed in 6.6.145 with commit a5b555bcabbb0aff8745ad181768eaf9d964c1ee Issue introduced in 2.6.29 with commit b657c95c11088d77fc1bfc9c84d940f778bf9d12 and fixed in 6.12.97 with commit 82afe13558354390d8a592a5334d5f4fd72c0e5c Issue introduced in 2.6.29 with commit b657c95c11088d77fc1bfc9c84d940f778bf9d12 and fixed in 6.18.40 with commit 4db3b6a2a8ecf2a89d26a4090ace4072c6fad050 Issue introduced in 2.6.29 with commit b657c95c11088d77fc1bfc9c84d940f778bf9d12 and fixed in 7.1.5 with commit b858f2d57cfc9d57ce61b86051d603dc0ebccd40 Issue introduced in 2.6.29 with commit b657c95c11088d77fc1bfc9c84d940f778bf9d12 and fixed in 7.2-rc1 with commit 5366a017099c6a3c443be908a05f26fd72af12a1 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-72160 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/inode.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/2e3aac33988ef4e4170141db8e995693ea38357c https://git.kernel.org/stable/c/fb024ea29f6cb1f01745e5f2e31646f3acb9aa6f https://git.kernel.org/stable/c/157d31ef45038d89cd19620105e082d43c8e41e0 https://git.kernel.org/stable/c/a5b555bcabbb0aff8745ad181768eaf9d964c1ee https://git.kernel.org/stable/c/82afe13558354390d8a592a5334d5f4fd72c0e5c https://git.kernel.org/stable/c/4db3b6a2a8ecf2a89d26a4090ace4072c6fad050 https://git.kernel.org/stable/c/b858f2d57cfc9d57ce61b86051d603dc0ebccd40 https://git.kernel.org/stable/c/5366a017099c6a3c443be908a05f26fd72af12a1