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 C615931E827 for ; Wed, 24 Jun 2026 16:36:35 +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=1782318998; cv=none; b=ISAjv4WFOlKt5clKNvSkSzPXO8R+H1IfTOOEWJUKNFnoVgqR4Babezcc0GEYalDJgld0Cc46Cb8EC6X/sSrcSjzWkcwXJkMAM6rxIDWGJqp8CtJXYWqBgj7wyIt6XDc60x5O0+53nT9vnxH4h/OnW0GT3Hy3kG/pp2yU6NSAoTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318998; c=relaxed/simple; bh=kP3w0lUtiYl8+6CQKUUw85NGFt6hlVwjBrE4tq9nvuY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P7Xr7KM7h4XqUquxmZMiijf5vc2HreiDi53DvuDFSNpxqbT+u+96zSSwgx2htqbIJ/WTKbA0ktfU5zYKlL7/XqNk2pc0BA4hAuTHtdKfR/DllHau5ZAg1DwOLYWWPaKuFglOVi1ZiyJMgaD8ur2rvlRDMIjwQBftPkArb3CYFU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wo5GvUsI; 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="Wo5GvUsI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10D101F00A3D; Wed, 24 Jun 2026 16:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318995; bh=akLKqoboZZDa5Gj+7YXFUDxt7F0hYKcLunxiT2ZvggA=; h=From:To:Cc:Subject:Date:Reply-To; b=Wo5GvUsIIqEO83ttu8KRrob8NCpU46kvxVouGiQp+WCizPwIm8HbRfPawyfkb7bf1 Q3SEfCCIWDN14kjUlL/WVK+JDXpat1zoj3N3x1t3UzCBeq12NnmDicggmElFRx/qoN YG2BQlVFPF9YDy9RoTYYvELE1GdqIbm6QYANiGx0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53039: ocfs2: validate group add input before caching Date: Wed, 24 Jun 2026 17:31:03 +0100 Message-ID: <2026062456-CVE-2026-53039-a3ac@gregkh> X-Mailer: git-send-email 2.54.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=4822; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WV3MYIaJEqKpbiZOUGOBzMJoelISeipU+0m+D6UjFBI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bCxMG9c93u93+HteTdqB1qsTNN7HszxSedCmHubSr 1NsFy/fEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABORjWGYn1gXfye1/PB0i2vR arcKg9QKfaZ9Y1iwqrRp9Wvd2Drf1XeeTphmnzz5y6cIAA== 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: validate group add input before caching [BUG] OCFS2_IOC_GROUP_ADD can trigger a BUG_ON in ocfs2_set_new_buffer_uptodate(): kernel BUG at fs/ocfs2/uptodate.c:509! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI RIP: 0010:ocfs2_set_new_buffer_uptodate+0x194/0x1e0 fs/ocfs2/uptodate.c:509 Code: ffffe88f 42b9fe4c 89e64889 dfe8b4df Call Trace: ocfs2_group_add+0x3f1/0x1510 fs/ocfs2/resize.c:507 ocfs2_ioctl+0x309/0x6e0 fs/ocfs2/ioctl.c:887 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x197/0x1e0 fs/ioctl.c:583 x64_sys_call+0x1144/0x26a0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x93/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7bbfb55a966d [CAUSE] ocfs2_group_add() calls ocfs2_set_new_buffer_uptodate() on a user-controlled group block before ocfs2_verify_group_and_input() validates that block number. That helper is only valid for newly allocated metadata and asserts that the block is not already present in the chosen metadata cache. The code also uses INODE_CACHE(inode) even though the group descriptor belongs to main_bm_inode and later journal accesses use that cache context instead. [FIX] Validate the on-disk group descriptor before caching it, then add it to the metadata cache tracked by INODE_CACHE(main_bm_inode). Keep the validation failure path separate from the later cleanup path so we only remove the buffer from that cache after it has actually been inserted. This keeps the group buffer lifetime consistent across validation, journaling, and cleanup. The Linux kernel CVE team has assigned CVE-2026-53039 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.25 with commit 7909f2bf835376a20d6dbf853eb459a27566eba2 and fixed in 5.10.258 with commit f7e139d7563f6947ad509fb468903941d0bb7ddd Issue introduced in 2.6.25 with commit 7909f2bf835376a20d6dbf853eb459a27566eba2 and fixed in 5.15.209 with commit 22544ddedf381ed5191cfc783aea8d6c936bc201 Issue introduced in 2.6.25 with commit 7909f2bf835376a20d6dbf853eb459a27566eba2 and fixed in 6.1.175 with commit 76bd722db0a92b84ccd99e03796a0b6f1ae71c31 Issue introduced in 2.6.25 with commit 7909f2bf835376a20d6dbf853eb459a27566eba2 and fixed in 6.6.141 with commit b9ae3942deec4c9e3fa2070521f90910f7490011 Issue introduced in 2.6.25 with commit 7909f2bf835376a20d6dbf853eb459a27566eba2 and fixed in 6.12.91 with commit e7c2cb552e6eb85c0f5aefdd7f0f7c3c8591a6a3 Issue introduced in 2.6.25 with commit 7909f2bf835376a20d6dbf853eb459a27566eba2 and fixed in 6.18.33 with commit aed87e866d1a321edb9703563c2faa8fec89835d Issue introduced in 2.6.25 with commit 7909f2bf835376a20d6dbf853eb459a27566eba2 and fixed in 7.0.10 with commit 6c5e70409c1961fe1278968f038eaaed6cc1145a Issue introduced in 2.6.25 with commit 7909f2bf835376a20d6dbf853eb459a27566eba2 and fixed in 7.1 with commit 70b672833f4025341c11b22c7f83778a5cd611bc 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-53039 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/resize.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/f7e139d7563f6947ad509fb468903941d0bb7ddd https://git.kernel.org/stable/c/22544ddedf381ed5191cfc783aea8d6c936bc201 https://git.kernel.org/stable/c/76bd722db0a92b84ccd99e03796a0b6f1ae71c31 https://git.kernel.org/stable/c/b9ae3942deec4c9e3fa2070521f90910f7490011 https://git.kernel.org/stable/c/e7c2cb552e6eb85c0f5aefdd7f0f7c3c8591a6a3 https://git.kernel.org/stable/c/aed87e866d1a321edb9703563c2faa8fec89835d https://git.kernel.org/stable/c/6c5e70409c1961fe1278968f038eaaed6cc1145a https://git.kernel.org/stable/c/70b672833f4025341c11b22c7f83778a5cd611bc