Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 801FF392817 for ; Tue, 13 Jan 2026 15:30:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318201; cv=none; b=Z2tkomGHCcwfbhA7D1UxpzqYMjOWJ2IjK1GXt0SL3hCFQ8TQDkfj1+fZgTnaSNaVJez8VaoY1eS8myZIT9ZCSU7nfIMKu2LiRLRM6NEMhDAiEzuThEpBvxVk/4UWgJbm4iNc0Atvd4Pm6f9Wxg9cUGrAyyfs5JuwHWnYm1xt+8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318201; c=relaxed/simple; bh=dwj+f+9awOnFhShJc7ag5Yf3v1LF9K8KAkqWz47v1vQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BblbCbnOnEC30M6C3An48Fiqwkk0HaPIja6mym6IVRQAZJ7+apfcYVhzQSBG0DTFkYe/lu1EFi4NBsp2LG+3NOcINMbYX0gPHQvlqHs1QGMuMTCTtXE9YWv/iqs7Q0Fpp+uHLM4gdUYJhJv/hEpFLpAHBf5hBqfttfW1b+BJY3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=muIFPqNo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="muIFPqNo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B291C19422; Tue, 13 Jan 2026 15:30:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318201; bh=dwj+f+9awOnFhShJc7ag5Yf3v1LF9K8KAkqWz47v1vQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=muIFPqNohwLiLkN9c7CHthn9qhf0V2AkawZ6tOs/JrccBRSIpGutM79VwUdKf5KQf +5tZ0qgHNhxQlI5rQstYhstQ/jjVygekWAX4Oov+8U40BIG+Jzle9hr65tDexC8Vlo 0IRuiszAOW2TP9/krVXNBjJ5OlAjsnRuPuhUavcQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68771: ocfs2: fix kernel BUG in ocfs2_find_victim_chain Date: Tue, 13 Jan 2026 16:28:57 +0100 Message-ID: <2026011357-CVE-2025-68771-cf0d@gregkh> X-Mailer: git-send-email 2.52.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=2965; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XiGGArZxAnRJV5fZWQeIjah8r5UQtYvbqmsSGstXZ3g=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKbv2H+wzsj3PvXX953fiGdPOM2sffPrz/xE7K0/G1 o05ScWvOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiad0M8x12CLVF3Jf8L3r/ 1uIkhtPFlowSfgzznax3HDzSotDvZNdV1FtoccK+tiMYAA== 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 kernel BUG in ocfs2_find_victim_chain syzbot reported a kernel BUG in ocfs2_find_victim_chain() because the `cl_next_free_rec` field of the allocation chain list (next free slot in the chain list) is 0, triggring the BUG_ON(!cl->cl_next_free_rec) condition in ocfs2_find_victim_chain() and panicking the kernel. To fix this, an if condition is introduced in ocfs2_claim_suballoc_bits(), just before calling ocfs2_find_victim_chain(), the code block in it being executed when either of the following conditions is true: 1. `cl_next_free_rec` is equal to 0, indicating that there are no free chains in the allocation chain list 2. `cl_next_free_rec` is greater than `cl_count` (the total number of chains in the allocation chain list) Either of them being true is indicative of the fact that there are no chains left for usage. This is addressed using ocfs2_error(), which prints the error log for debugging purposes, rather than panicking the kernel. The Linux kernel CVE team has assigned CVE-2025-68771 to this issue. Affected and fixed versions =========================== Fixed in 6.1.160 with commit b08a33d5f80efe6979a6e8f905c1a898910c21dd Fixed in 6.6.120 with commit 96f1b074c98c20f55a3b23d2ab44d9fb0f619869 Fixed in 6.12.64 with commit e24aedae71652d4119049f1fbef6532ccbe3966d Fixed in 6.18.3 with commit 7acc0390e0dd7474c4451d05465a677d55ad4268 Fixed in 6.19-rc1 with commit 039bef30e320827bac8990c9f29d2a68cd8adb5f 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-2025-68771 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/suballoc.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/b08a33d5f80efe6979a6e8f905c1a898910c21dd https://git.kernel.org/stable/c/96f1b074c98c20f55a3b23d2ab44d9fb0f619869 https://git.kernel.org/stable/c/e24aedae71652d4119049f1fbef6532ccbe3966d https://git.kernel.org/stable/c/7acc0390e0dd7474c4451d05465a677d55ad4268 https://git.kernel.org/stable/c/039bef30e320827bac8990c9f29d2a68cd8adb5f