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 1F187409115 for ; Wed, 27 May 2026 13:04:02 +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=1779887044; cv=none; b=PkU43F2ybc0lKAxRH7tMCmdDKidQPkCXSjo+FrVR5PnlX94sF2dmuqN7T++E2V8NiJ1mnC74lGSKULk9DxxuUzKsP1fe7G24UfKSUr3I9SFQCMxv2yb1G7ol7bxF8YbDxxKVRqRpnkk4BngA0yCnopZePSokFybipjEnpJe843c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887044; c=relaxed/simple; bh=tg/RuxDAQsp+nKUBay5Y5i6XAtrIIvQuzDnPytR6ppg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rNoXLv0D+w7iZWFw1B+w/Dwas8sIhKsSy2c7whcmfTuQTOP2yKArkL9o2tSfaDfNmq4Qt2wlGEqeZaGfdTKjsqIq3Kbj7BInwZNhIj49NH/EcFckycJVRrSWy6lxX1a3Wrdk7XqYEvPMRlgdU27Luo+f5Qa+CXJdRt3qek1afOU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zizz8r4l; 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="Zizz8r4l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29BC81F000E9; Wed, 27 May 2026 13:04:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887042; bh=SwBxLjujD9lprdAb7dFsOUOepft7s/5siIJrhFSqnHM=; h=From:To:Cc:Subject:Date:Reply-To; b=Zizz8r4lcMQ8zHNuV7iv46oUAejWg5g6PfwWP7GwQXRVQzb/tFq8vI6SJGNJr6JME XHg444M3RJor3hQ7lAqHdf6/9QwrmIS6olJy/A55HAH3375L3Al55TvgPCrrW8SM6h 70ENpc4TZX4CTxapcqkCcyDkf+nMY/VsLnOYvO9Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46061: jbd2: fix deadlock in jbd2_journal_cancel_revoke() Date: Wed, 27 May 2026 14:59:52 +0200 Message-ID: <2026052756-CVE-2026-46061-c3d0@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=3633; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jgVvppAylIfRWdAbmr2L2KvBevcy58b1RgpI3UG1so4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliryaE69UEz/m35+DMZy19Bh4i006KHv38JI9HSnvXG 0PO+ZHNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR1jiG+SGn93r8PBS7yyXg 9AP2CPaFuQf7yhhms/tnv0zfuaKi+N63mTozFyiumSzRBAA= 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: jbd2: fix deadlock in jbd2_journal_cancel_revoke() Commit f76d4c28a46a ("fs/jbd2: use sleeping version of __find_get_block()") changed jbd2_journal_cancel_revoke() to use __find_get_block_nonatomic() which holds the folio lock instead of i_private_lock. This breaks the lock ordering (folio -> buffer) and causes an ABBA deadlock when the filesystem blocksize < pagesize: T1 T2 ext4_mkdir() ext4_init_new_dir() ext4_append() ext4_getblk() lock_buffer() <- A sync_blockdev() blkdev_writepages() writeback_iter() writeback_get_folio() folio_lock() <- B ext4_journal_get_create_access() jbd2_journal_cancel_revoke() __find_get_block_nonatomic() folio_lock() <- B block_write_full_folio() lock_buffer() <- A This can occasionally cause generic/013 to hang. Fix by only calling __find_get_block_nonatomic() when the passed buffer_head doesn't belong to the bdev, which is the only case that we need to look up its bdev alias. Otherwise, the lookup is redundant since the found buffer_head is equal to the one we passed in. The Linux kernel CVE team has assigned CVE-2026-46061 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.31 with commit f1c5aa614b5c251f93a6a4c8c26001d5e9e53fd6 and fixed in 6.12.86 with commit dff07cc98fdf6af57a7c054dc09b2050a9d5c287 Issue introduced in 6.15 with commit f76d4c28a46a9260d85e00dafc8f46d369365d33 and fixed in 6.18.27 with commit 2b2fee890250ab647a601124471a334bb01a0790 Issue introduced in 6.15 with commit f76d4c28a46a9260d85e00dafc8f46d369365d33 and fixed in 7.0.4 with commit bbd943d6a2d566428324b516a37f98328dfb802d Issue introduced in 6.15 with commit f76d4c28a46a9260d85e00dafc8f46d369365d33 and fixed in 7.1-rc1 with commit 981fcc5674e67158d24d23e841523eccba19d0e7 Issue introduced in 6.14.9 with commit 1bb7a4b6b3d7dd8da6f5a9d0529d42c22a359e71 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-46061 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/jbd2/revoke.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/dff07cc98fdf6af57a7c054dc09b2050a9d5c287 https://git.kernel.org/stable/c/2b2fee890250ab647a601124471a334bb01a0790 https://git.kernel.org/stable/c/bbd943d6a2d566428324b516a37f98328dfb802d https://git.kernel.org/stable/c/981fcc5674e67158d24d23e841523eccba19d0e7