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 C3A07409E14 for ; Wed, 27 May 2026 13:06:39 +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=1779887200; cv=none; b=ROf0J1wVajfVyK/wAWcEAC6G2GdNN/2qLiNfTm3JJNyYyL/igpMduDkAiXiZUPalFnD4F7D0SDogtq85hqJeoWC8GcZx0jJRhBFMLcqlXkiEZSLjo5C3UWsIRBpgEeBErRxgSUSH80zcdFLXMkVysyboyHCKfSx6h6trvNw/JVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887200; c=relaxed/simple; bh=ZvZFOQ5tds5eO0D/jiwu/EvVMjfuK+ee7wRPh5Zl4Ls=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tWGcu0ExuKP+7brswoqrSfi2Pre0GfwAtLNeroR7KTwzwb2f2lE3ACgEXCMD4HKKDVKLPHwCZXQZWXFySEKE8TReY5Z9Litx31E7uCi643fBOpwyyZ6WLOGbc4rHOpODEH9knD9Q721l9TvVN1SFIkaVyvRKth5uDmsSceksY6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NzjoBHZj; 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="NzjoBHZj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED57E1F00A3A; Wed, 27 May 2026 13:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887199; bh=7XPiRr0saaTFAlIVgRJcSPqQeCPpYEGdWQdUWZQ1LSA=; h=From:To:Cc:Subject:Date:Reply-To; b=NzjoBHZjPtH/QGIQgwNGUWSLZ+mdMVnYHn5CkHOXCDYEleJU/lTVLlrZjVlTZwRvw SQZH0qKQAVvqumPqwRnbhtCJ7rkQsbgBbO9EOzmg/MoDFfy5AzHINSkkipjvXKSLea BvA33LlWAudosxqH8Y/D8EbJJT7dxN9/oa8vUSo4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46080: ocfs2: split transactions in dio completion to avoid credit exhaustion Date: Wed, 27 May 2026 15:00:11 +0200 Message-ID: <2026052700-CVE-2026-46080-bbd7@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=3168; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2kGvTFizmEHer7Bt70nJGUnyL6i24TYzlc1hma+W73k=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir6aEGQReOP5E4frtxMtXN6dfjHO9oXz40Pwcs9hla RoqKR3fOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAihhkMC45uf/bPuC3lwVnG A/V121nTs0rOfWKYH2UmdV75+iLTjpcO9pGvnd/sY+zMAAA= 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: split transactions in dio completion to avoid credit exhaustion During ocfs2 dio operations, JBD2 may report warnings via following call trace: ocfs2_dio_end_io_write ocfs2_mark_extent_written ocfs2_change_extent_flag ocfs2_split_extent ocfs2_try_to_merge_extent ocfs2_extend_rotate_transaction ocfs2_extend_trans jbd2__journal_restart start_this_handle output: JBD2: kworker/6:2 wants too many credits credits:5450 rsv_credits:0 max:5449 To prevent exceeding the credits limit, modify ocfs2_dio_end_io_write() to handle extents in a batch of transaction. Additionally, relocate ocfs2_del_inode_from_orphan(). The orphan inode should only be removed from the orphan list after the extent tree update is complete. This ensures that if a crash occurs in the middle of extent tree updates, we won't leave stale blocks beyond EOF. This patch also changes the logic for updating the inode size and removing orphan, making it similar to ext4_dio_write_end_io(). Both operations are performed only when everything looks good. Finally, thanks to Jans and Joseph for providing the bug fix prototype and suggestions. The Linux kernel CVE team has assigned CVE-2026-46080 to this issue. Affected and fixed versions =========================== Fixed in 6.6.140 with commit 886f97fa59d0bbfa9859fb1a66dd9e014b522d89 Fixed in 6.12.86 with commit ea5bb1d20da756e4f41a48dad42b2e7d6e73f71e Fixed in 6.18.27 with commit 3c636a3edca9c3f180b3079f94fe7e115730d9c6 Fixed in 7.0.4 with commit 069c3fb310e9336cf48cfdf8748a32c29fd0193d Fixed in 7.1-rc1 with commit d647c5b2fbf81560818dacade360abc8c00a9665 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-46080 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/aops.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/886f97fa59d0bbfa9859fb1a66dd9e014b522d89 https://git.kernel.org/stable/c/ea5bb1d20da756e4f41a48dad42b2e7d6e73f71e https://git.kernel.org/stable/c/3c636a3edca9c3f180b3079f94fe7e115730d9c6 https://git.kernel.org/stable/c/069c3fb310e9336cf48cfdf8748a32c29fd0193d https://git.kernel.org/stable/c/d647c5b2fbf81560818dacade360abc8c00a9665