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 F3D9E3C9456 for ; Mon, 10 Aug 2026 12:02:41 +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=1786363363; cv=none; b=kXvySvhZA5SrGZxjE2qPsi01slS6YbS5TEbaAXPR3g4+H9Q77+bVBxxtVDyjMV83ryfZqaLf3mmwZU5710KTv//Lfobr9p6Hi1lfYFEYCNodvANf92VmbjjW84677GBPoXDE4quCzg5iRH3+grksHzBWUP03aDwg7zUuHihTp9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363363; c=relaxed/simple; bh=O0vbPgrzFfAbC8K4V3K361TBLeoO28m2Wy/UjWSAnms=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sTPPDwaXh9zL4hhddhXrSh1gIYGt2BcnfdQ9ieThpiBIjd/YrUvxqcVWROFV7AxHvG4RYKZYV1Mhj9G2e26B6CutRUg692sbh8L/3+heXUOwCvDKgGJFPNm6B6CtQm1Dt0fYVRXx3vG36GRHF1hGQIN6Hwx+e602LXFQBnGmDN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1Az9j4gV; 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="1Az9j4gV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DF281F000E9; Mon, 10 Aug 2026 12:02:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363361; bh=KesH99pkT5i349ctRpjR06WnZFLUKRmWLPe/mVZjX+Q=; h=From:To:Cc:Subject:Date:Reply-To; b=1Az9j4gV3o0Z564d3hdAnH6OPeAYwyGyuy4A0eukaKItpFec0KbZfCK0C+NEntWzu hL/xQLS7HL0WCrNjPn/tbE7dlfkBHS0QMG5ZOcq0obtpK8vMrPJzokownM9sRzz8Ee D45XhAFW0G5yq9jNjpIxIEnni9a9izQgKsmJ8Cn0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68132: super: fix emergency thaw deadlock on frozen block devices Date: Mon, 10 Aug 2026 13:57:29 +0200 Message-ID: <2026081058-CVE-2026-68132-aaa0@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=5335; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7oWsXJnpWTZOLInOHjGUbi3tfOEh0R5KURv09bebUiI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe7oE1j2uWXUwcZdD55NnXp+3HDukHPa4cL5OZ/Zc7 o8zpmbkd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEvnxjmJ+9SyJHglF0xrt4 D6a5eZ13L+4p1GNYsPJF7s0rxvfbH+4TWcx2xKmyYb9uFgA= 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: super: fix emergency thaw deadlock on frozen block devices do_thaw_all_callback() calls bdev_thaw() while holding sb->s_umount exclusively. If the block device was frozen via bdev_freeze() dropping the last block layer freeze reference calls fs_bdev_thaw() which reacquires s_umount: do_thaw_all_callback(sb) super_lock_excl(sb) # holds sb->s_umount bdev_thaw(sb->s_bdev) mutex_lock(&bdev->bd_fsfreeze_mutex) # bd_fsfreeze_count drops 1 -> 0 bd_holder_ops->thaw == fs_bdev_thaw get_bdev_super(bdev) bdev_super_lock(bdev, true) super_lock(sb, true) down_write(&sb->s_umount) # same task: deadlock The emergency thaw worker deadlocks against itself holding both s_umount and bd_fsfreeze_mutex. That fscks any subsequent unmount, freeze, or thaw of that filesystem and block device. [ 81.878470] sysrq: Show Blocked State [ 81.880140] task:kworker/0:1 state:D stack:0 pid:11 tgid:11 ppid:2 task_flags:0x4208060 flags:0x00080000 [ 81.884876] Workqueue: events do_thaw_all [ 81.886656] Call Trace: [ 81.887759] [ 81.888763] __schedule+0x579/0x1420 [ 81.890372] schedule+0x3a/0x100 [ 81.891794] schedule_preempt_disabled+0x15/0x30 [ 81.893848] rwsem_down_write_slowpath+0x1ea/0x900 [ 81.895191] ? __pfx_do_thaw_all_callback+0x10/0x10 [ 81.896528] down_write+0xbd/0xc0 [ 81.897505] super_lock+0x91/0x180 [ 81.898457] ? __mutex_lock+0xa99/0x1140 [ 81.900748] ? __mutex_unlock_slowpath+0x1f/0x400 [ 81.902069] bdev_super_lock+0x5b/0x150 [ 81.903132] get_bdev_super+0x10/0x60 [ 81.904042] fs_bdev_thaw+0x23/0xf0 [ 81.904755] bdev_thaw+0x82/0x100 [ 81.905484] do_thaw_all_callback+0x2c/0x50 [ 81.906298] __iterate_supers+0x5d/0x130 [ 81.907067] do_thaw_all+0x20/0x40 [ 81.907739] process_one_work+0x206/0x5e0 [ 81.908545] worker_thread+0x1e2/0x3c0 [ 81.909339] ? __pfx_worker_thread+0x10/0x10 [ 81.910171] kthread+0xf4/0x130 [ 81.910799] ? __pfx_kthread+0x10/0x10 [ 81.911528] ret_from_fork+0x2e2/0x3b0 [ 81.912259] ? __pfx_kthread+0x10/0x10 [ 81.913010] ret_from_fork_asm+0x1a/0x30 [ 81.913806] bdev_super_lock() even documents the violated requirement with lockdep_assert_not_held(&sb->s_umount). Acquiring bd_fsfreeze_mutex under s_umount also inverts the bd_fsfreeze_mutex vs. s_umount ordering established by bdev_{freeze,thaw}() and can thus ABBA against a concurrent block-layer freeze even when the recursive path isn't hit. Fix this by not holding s_umount around the bdev_thaw() loop at all. Pin the superblock with an active reference instead as filesystems_freeze_callback() does. The active reference keeps the superblock from being shut down and so ->s_bdev stays valid without holding s_umount. The block-layer-held freeze is dropped by fs_bdev_thaw() with FREEZE_MAY_NEST | FREEZE_HOLDER_USERSPACE exactly as a regular unfreeze would and thaw_super_locked() handles filesystem-level freezes as before. The emergency thaw path has deadlocked like this in one form or another for a long long time but the current exclusively-held shape dates back to commit [1] where thaw_bdev() already ended in thaw_super() with s_umount held by do_thaw_all_callback(). The Linux kernel CVE team has assigned CVE-2026-68132 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit 08fdc8a0138afaf324296a342f32ad26ec465e43 and fixed in 6.18.42 with commit 63d78b546eefc38ad9898dc839bfc94811ede547 Issue introduced in 4.17 with commit 08fdc8a0138afaf324296a342f32ad26ec465e43 and fixed in 7.1.6 with commit 4c483644d1a7709efe7d1be7dbf88cf4008a7864 Issue introduced in 4.17 with commit 08fdc8a0138afaf324296a342f32ad26ec465e43 and fixed in 7.2-rc5 with commit 749d7aa0377aae32af8c0a4ad43371e7bf830ab5 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-68132 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/super.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/63d78b546eefc38ad9898dc839bfc94811ede547 https://git.kernel.org/stable/c/4c483644d1a7709efe7d1be7dbf88cf4008a7864 https://git.kernel.org/stable/c/749d7aa0377aae32af8c0a4ad43371e7bf830ab5