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 40FA035F172 for ; Sat, 15 Aug 2026 06:14:25 +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=1786774466; cv=none; b=lhrlxNEV9yuRXWP3EtOu5RpDlvRTon2U8oq6zcnwHGR4/jtigrex+a6qYpFdAUELRoONxV1Jznq15CDHoxmHFiuj+D2jmhEUMtjN5wSwzMkz/ZEgnZ2JZXTWxvCfsrwsrWJsjlRMtqAkkhmstcQETSRTJQFM+vdkFC6tG/r5Nac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774466; c=relaxed/simple; bh=hxr0sxTsJYmFNZjQUXgYphgP+9vjkC00GX2uF4qcY0Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JoaKOr2KDsbNG/z1pPANYTtPgJkBbewRZpgT3CVdZH5M2twllBj0OjwIkMNS8XmenW3ipVPtat9vpxG/5Br6hA6zzBUayiLsugk5SSR0YT4coypMFAOkRw95Np+KV4plPk26NPUZ4twKRMeLNQZtGYA03EyDoFXMcnyzRP9Rv00= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RX8LJbvg; 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="RX8LJbvg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59D0A1F000E9; Sat, 15 Aug 2026 06:14:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774464; bh=khHevjGgpYHNQoCEkitTIVOXWt6RN7vfWIiEZmRGxMs=; h=From:To:Cc:Subject:Date:Reply-To; b=RX8LJbvgP1mNE5Jx4BX/Y6TXjO5TsnsqFq/mWDQxk3uhRo5bUu3460XqMDhtiib8m Q9FHxdBnY62caD9EwvPrmFSxevH9OO8hC2Ph4OmPwCuRTrSovffGcATl/MmHnZi+yO /uoI4YSiyEc/h0afKHBvAeVwP6UWGv6P71BWP2wk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72162: ocfs2: fix UBSAN array-index-out-of-bounds in ocfs2_sum_rightmost_rec Date: Sat, 15 Aug 2026 15:04:01 +0900 Message-ID: <2026081536-CVE-2026-72162-da60@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=2574; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tG3FmAYCs9EiTpEOZnLdZ6q+872lNfVzUq+9IK2cVVI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDAeWhNXcVEs52l1yy+GW5gHGCakF88VLK4/PcX3kZ +nhvt+uI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACby7j/DgiUPzFiMis86107y 7LpsslL56+YvqxgWTArYHGJ51nKRf8J1p8lLklQ3N/DfBwA= 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 UBSAN array-index-out-of-bounds in ocfs2_sum_rightmost_rec [BUG] On-disk corruption setting l_next_free_rec to 0 in an inode's embedded extent list triggers a UBSAN panic on the next write to that file. [CAUSE] ocfs2_sum_rightmost_rec() computes i = le16_to_cpu(el->l_next_free_rec) - 1 and accesses el->l_recs[i] without validating i. When l_next_free_rec is 0, i becomes -1; when l_next_free_rec exceeds l_count, i falls past the end of the array. Either case violates the __counted_by_le(l_count) annotation on l_recs[] and triggers UBSAN. [FIX] Validate the inode's embedded extent list when the inode is read, in ocfs2_validate_inode_block(): l_count must be non-zero and no larger than the inode block can hold, and l_next_free_rec must not exceed l_count. A corrupt list is rejected at read time, before the b-tree code can index l_recs[] out of bounds. The Linux kernel CVE team has assigned CVE-2026-72162 to this issue. Affected and fixed versions =========================== Fixed in 6.18.40 with commit 671889c553ea55e2da6a4f3b15f4c0fa40f2f0d1 Fixed in 7.1.5 with commit 858aa4965ffa8c0d4bb5dd835ac4f1c9a1dcab85 Fixed in 7.2-rc1 with commit 452a8467be8143747292218212671deeb186d2ae 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-72162 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/671889c553ea55e2da6a4f3b15f4c0fa40f2f0d1 https://git.kernel.org/stable/c/858aa4965ffa8c0d4bb5dd835ac4f1c9a1dcab85 https://git.kernel.org/stable/c/452a8467be8143747292218212671deeb186d2ae