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 6063349E15F for ; Fri, 11 Sep 2026 20:06:12 +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=1789157177; cv=none; b=SecLxFmLS4C7LDF9klgc37RudWhBNWshVcholLFz2512b3EI1bQcVotppoS7QOC0ro0OmPBBi3AeRKx8btMs3j8usfDrLgJDVoI2WOMj0oNEj+tUsSrgyUfU7jhBwMFWQEMOPH6wt0a/xZGrFsBivtBq6B8eewf3zuDaoAhFm0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789157177; c=relaxed/simple; bh=d2BmK04w/uekpuaH+OEovh1wPORZ0VcY/3du01cItuc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XWq7HOY8NAsaKw7h+lQ1CSDCvhP1+LTq6dLrOT7B4hZ9vLyqmMg9XaW2ggYjH5BTsRq/bV75vRxac0LzwsyWCFbUbFWHhyJYvOGoLx7MLHK4C54o0FAxpGQbkZdRCOjT7aXK8iCFywlhgQmewyGYJNDbRanrE5bmOFmAH0QVeuU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0foDGZWR; 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="0foDGZWR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ED491F000FF; Fri, 11 Sep 2026 20:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789157169; bh=Kbb7wEg5OYGcKvnl+0+xqCBXPjrQdAztkDoVw8D7/r8=; h=From:To:Cc:Subject:Date:Reply-To; b=0foDGZWR+IPAa5S/Bx/R1eZGEQfvEqMfJdEgjTBKKcfQOxavJRAzYDGgpuRdHigXy mqS6buWWOIQev29wvhDPC2ZJ2JPTNAH/Zo51+z4i/nbplQBexKJj5vFCftx4pa5HE5 lVQnDZaW136fSfV0u+8AI0Hbjni8NQmGRV78jz0I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89759: mm/kmemleak: avoid soft lockup when scanning task stacks Date: Fri, 11 Sep 2026 21:47:28 +0200 Message-ID: <2026091109-CVE-2026-89759-f15d@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=3764; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SrmmNatyS8OjCKyRdTtCbC4PFgK6yH/NQ9Q4UKvXP2Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIicWrrianz91W8yTrev0ttzYvdvmznrDvirNWf90J ugefCJxvSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmonqBYUHb6e2pObeO9lt5 /edc+vStYrTeJ2aG+VVr5NLiF0x9Geyd7unuXNHA+fTATQA= 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: mm/kmemleak: avoid soft lockup when scanning task stacks Patch series "mm/kmemleak: avoid soft lockup when scanning task", v3. kmemleak_scan() scans every task stack under one rcu_read_lock() with no reschedule point, which can trip the soft lockup watchdog on hosts with very many threads. That prints the following message, depending on the workload+host configuration: watchdog: BUG: soft lockup - CPU#35 stuck for 22s! [kmemleak:537] scan_block kmemleak_scan kmemleak_scan_thread kthread Patch 1 walks the tasks with find_ge_pid() so the scan reschedules between tasks Patches 2-3 let the scan loops stop early once a scan is interrupted. This patch (of 3): kmemleak_scan() walks every thread and scans its kernel stack under a single rcu_read_lock() with no reschedule point. On a host with very many threads -- amplified by KASAN/lockdep in debug builds -- this loop can hog a CPU long enough to trip the soft lockup watchdog: watchdog: BUG: soft lockup - CPU#35 stuck for 22s! [kmemleak:537] scan_block kmemleak_scan kmemleak_scan_thread kthread A cond_resched() cannot be added directly: the loop runs inside an RCU read-side critical section. Walk the tasks one PID at a time with find_ge_pid(), taking the RCU read lock only to look up and pin each task. The stack is then scanned with no lock held, so cond_resched() runs between tasks and the scan stops early on scan_should_stop(). This follows the next_tgid()/task_seq_get_next() iteration pattern and keeps each RCU critical section short. The Linux kernel CVE team has assigned CVE-2026-89759 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit c4b28963fd79457315783b3b0f21c01eb88cfdc1 and fixed in 6.12.109 with commit 9a1b12c06c192290b8479de48f66f1e75d89c4b7 Issue introduced in 5.10 with commit c4b28963fd79457315783b3b0f21c01eb88cfdc1 and fixed in 6.18.50 with commit 3fc8044251de21555fb02c365fa681bab8b0db55 Issue introduced in 5.10 with commit c4b28963fd79457315783b3b0f21c01eb88cfdc1 and fixed in 7.2.4 with commit 1838c704bcb4fd3556cf67513c6f97a39099e35c Issue introduced in 5.10 with commit c4b28963fd79457315783b3b0f21c01eb88cfdc1 and fixed in 7.3-rc1 with commit 5d10d4e19e6daa487f0cd0ea6cba472325de92f9 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-89759 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/kmemleak.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/9a1b12c06c192290b8479de48f66f1e75d89c4b7 https://git.kernel.org/stable/c/3fc8044251de21555fb02c365fa681bab8b0db55 https://git.kernel.org/stable/c/1838c704bcb4fd3556cf67513c6f97a39099e35c https://git.kernel.org/stable/c/5d10d4e19e6daa487f0cd0ea6cba472325de92f9