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 B7A2B368D78 for ; Sun, 18 Oct 2026 15:30:55 +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=1792337456; cv=none; b=nj4NrJbD9plTYmV1EeiBsXNUEozP+PEVTkfGrjk7SPhPQVi4nKMvfuY/ZVdsUprdmNHoTPyQy8knOAD3I/5CH4eAA+B6jsxidgoOKu403SzBFCQv3rRXKS+TRahS/LlWncmM83vQNNCaZdxVyuQSUDsAxwvDPfXNgdeQjEKqp1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337456; c=relaxed/simple; bh=Vk7x4cxgK8BLqxnedczrf7JGm2Z5bIeImuBzg14PayA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KMyeDRZ9y67I6iDkJyqj75rjAmwXEuGUzvoHdJBcokp7RxfKa9xGre/QIpaTq0tA0ppwufveYJDFktu/oujlFAw+p2SYfF0nXWW4uhdSGBgUAVXHfdF+YSfn+TCv4aRJMb2at6XgxKeTXjZYP9oPMUOxdORgjI/VuJDaLkqwZ64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0hbId0CZ; 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="0hbId0CZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00FAB1F000C4; Sun, 18 Oct 2026 15:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337455; bh=JDqO1XnmkjlVQOGJhC8OiT7JnyeTOhGOd1tP7CGQGNU=; h=From:To:Cc:Subject:Date:Reply-To; b=0hbId0CZP9pmlMsz6WV3KPXMVWFi5jUMdOWLxisQZj4KjrJ07HKXGHW9IMId6Lx8q s5IwQ7hdtUIdA6fSaclXrUQdmBP5orHvI5N+uzP7ITGlE3BEBa7bDOik3xXymXOaAg F/V+4MKRMOYPbnsSBRCxyalsCFEVsNd7MYzmEauE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98536: writeback: report a Tasks-RCU quiescent state per cgwb drain pass Date: Sun, 18 Oct 2026 17:16:40 +0200 Message-ID: <2026101825-CVE-2026-98536-b514@gregkh> X-Mailer: git-send-email 2.56.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=4384; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rLxDFh4g+vJ6aw3tmz5c4OSssDTAxw+XrCMOFPR2uLE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHvWWeFnblPFHndq4tPHR09lOkha3I+zziiSqRY42v ly9/9fajlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIkyrDghVXS+bIzItV2Tdt 5n/ujIAbreUHPBgWHMp32XtkBdeFqpknWJK9bNguXtn5FAA= 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: writeback: report a Tasks-RCU quiescent state per cgwb drain pass cleanup_offline_cgwbs_workfn() drains a dying cgwb by calling cleanup_offline_cgwb() until it returns false, with a cond_resched() between passes. On a CONFIG_PREEMPTION kernel that cond_resched() does nothing: _cond_resched() is a plain "return 0", and under PREEMPT_DYNAMIC the full and lazy modes disable it. Since commit 7dadeaa6e851 ("sched: Further restrict the preemption modes") those are the only two models on the architectures with PREEMPT_LAZY support, arm64 and x86 among them, so the drain loop never reports a Tasks-RCU quiescent state. A worker draining a cgwb with millions of attached inodes runs for minutes. On a 6.18 arm64 host in lazy mode the cgwb worker drained one dying cgroup's writeback domain for over 11 minutes. A BPF program unlink (bpf_trampoline_unlink_prog -> bpf_trampoline_update -> unregister_ftrace_direct -> ftrace_shutdown -> synchronize_rcu_tasks()) waited on that grace period while holding the trampoline mutex, 42 tasks queued behind it in D state, and the hung task detector fired at 614 s and panicked the host. Any BPF or ftrace detach during a long drain inherits the drain's length. Fix this by calling cond_resched_tasks_rcu_qs() so we do not stall out anybody who calls sycnrhonize_rcu_tasks(). We put this in a do { } while loop because if we have many small cgroups cleanup_offline_cgwb() will return false and we will never call cond_resched_tasks_rcu_qs(), creating the same problem. The Linux kernel CVE team has assigned CVE-2026-98536 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit c22d70a162d3cc177282c4487be4d54876ca55c8 and fixed in 5.15.222 with commit 863049b4018237d1590cd13b16e9fe9c0faad2c6 Issue introduced in 5.14 with commit c22d70a162d3cc177282c4487be4d54876ca55c8 and fixed in 6.1.189 with commit 42462b5bb0dec57db7f85d0f77655c737d45754d Issue introduced in 5.14 with commit c22d70a162d3cc177282c4487be4d54876ca55c8 and fixed in 6.6.158 with commit ebf1555ad2821be06f87a88ffd9a2cab8d2200e1 Issue introduced in 5.14 with commit c22d70a162d3cc177282c4487be4d54876ca55c8 and fixed in 6.12.112 with commit 4eb889649eaf65f4a5727b04ba1c017b7d05bb16 Issue introduced in 5.14 with commit c22d70a162d3cc177282c4487be4d54876ca55c8 and fixed in 6.18.55 with commit fd3bf32279df98751364b3609eb100a3e42f253b Issue introduced in 5.14 with commit c22d70a162d3cc177282c4487be4d54876ca55c8 and fixed in 7.2.9 with commit 260f586a80e7f624dd7f069898a75a904f34d373 Issue introduced in 5.14 with commit c22d70a162d3cc177282c4487be4d54876ca55c8 and fixed in 7.3-rc5 with commit 407a5d205179a4ab186571b0e16ec42725dc77bc 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-98536 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: mm/backing-dev.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/863049b4018237d1590cd13b16e9fe9c0faad2c6 https://git.kernel.org/stable/c/42462b5bb0dec57db7f85d0f77655c737d45754d https://git.kernel.org/stable/c/ebf1555ad2821be06f87a88ffd9a2cab8d2200e1 https://git.kernel.org/stable/c/4eb889649eaf65f4a5727b04ba1c017b7d05bb16 https://git.kernel.org/stable/c/fd3bf32279df98751364b3609eb100a3e42f253b https://git.kernel.org/stable/c/260f586a80e7f624dd7f069898a75a904f34d373 https://git.kernel.org/stable/c/407a5d205179a4ab186571b0e16ec42725dc77bc