{"id":"CVE-2026-89759","aliases":["CVE-2026-89759"],"related":[],"kind":"vulnerability","state":"published","title":"mm/kmemleak: avoid soft lockup when scanning task stacks","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/kmemleak: avoid soft lockup when scanning task stacks\n\nPatch series \"mm/kmemleak: avoid soft lockup when scanning task\", v3.\n\nkmemleak_scan() scans every task stack under one rcu_read_lock() with no\nreschedule point, which can trip the soft lockup watchdog on hosts with\nvery many threads.\n\nThat prints the following message, depending on the workload+host\nconfiguration:\n\n      watchdog: BUG: soft lockup - CPU#35 stuck for 22s! [kmemleak:537]\n       scan_block\n       kmemleak_scan\n       kmemleak_scan_thread\n       kthread\n\nPatch 1 walks the tasks with find_ge_pid() so the scan reschedules between\ntasks\n\nPatches 2-3 let the scan loops stop early once a scan is interrupted.\n\n\nThis patch (of 3):\n\nkmemleak_scan() walks every thread and scans its kernel stack under a\nsingle rcu_read_lock() with no reschedule point.  On a host with very many\nthreads -- amplified by KASAN/lockdep in debug builds -- this loop can hog\na CPU long enough to trip the soft lockup watchdog:\n\n  watchdog: BUG: soft lockup - CPU#35 stuck for 22s! [kmemleak:537]\n   scan_block\n   kmemleak_scan\n   kmemleak_scan_thread\n   kthread\n\nA cond_resched() cannot be added directly: the loop runs inside an RCU\nread-side critical section.\n\nWalk the tasks one PID at a time with find_ge_pid(), taking the RCU read\nlock only to look up and pin each task.  The stack is then scanned with no\nlock held, so cond_resched() runs between tasks and the scan stops early\non scan_should_stop().  This follows the next_tgid()/task_seq_get_next()\niteration pattern and keeps each RCU critical section short.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/kmemleak: avoid soft lockup when scanning task stacks\n\nPatch series \"mm/kmemleak: avoid soft lockup when scanning task\", v3.\n\nkmemleak_scan() scans every task stack under one rcu_read_lock() with no\nreschedule point, which can trip the soft lockup watchdog on hosts with\nvery many threads.\n\nThat prints the following message, depending on the workload+host\nconfiguration:\n\n      watchdog: BUG: soft lockup - CPU#35 stuck for 22s! [kmemleak:537]\n       scan_block\n       kmemleak_scan\n       kmemleak_scan_thread\n       kthread\n\nPatch 1 walks the tasks with find_ge_pid() so the scan reschedules between\ntasks\n\nPatches 2-3 let the scan loops stop early once a scan is interrupted.\n\n\nThis patch (of 3):\n\nkmemleak_scan() walks every thread and scans its kernel stack under a\nsingle rcu_read_lock() with no reschedule point.  On a host with very many\nthreads -- amplified by KASAN/lockdep in debug builds -- this loop can hog\na CPU long enough to trip the soft lockup watchdog:\n\n  watchdog: BUG: soft lockup - CPU#35 stuck for 22s! [kmemleak:537]\n   scan_block\n   kmemleak_scan\n   kmemleak_scan_thread\n   kthread\n\nA cond_resched() cannot be added directly: the loop runs inside an RCU\nread-side critical section.\n\nWalk the tasks one PID at a time with find_ge_pid(), taking the RCU read\nlock only to look up and pin each task.  The stack is then scanned with no\nlock held, so cond_resched() runs between tasks and the scan stops early\non scan_should_stop().  This follows the next_tgid()/task_seq_get_next()\niteration pattern and keeps each RCU critical section short.","source":"cvelist"}],"published":"2026-09-11T19:47:01.313Z","modified":"2026-10-30T13:20:28.370Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c4b28963fd79457315783b3b0f21c01eb88cfdc1","fixed":"2567818c2776d0a820506c3612261d9e24af7164","status":"affected"},{"type":"git","introduced":"c4b28963fd79457315783b3b0f21c01eb88cfdc1","fixed":"f1cd6c4c35243377882c47236281d03ee3be6eeb","status":"affected"},{"type":"git","introduced":"c4b28963fd79457315783b3b0f21c01eb88cfdc1","fixed":"9a1b12c06c192290b8479de48f66f1e75d89c4b7","status":"affected"},{"type":"git","introduced":"c4b28963fd79457315783b3b0f21c01eb88cfdc1","fixed":"3fc8044251de21555fb02c365fa681bab8b0db55","status":"affected"},{"type":"git","introduced":"c4b28963fd79457315783b3b0f21c01eb88cfdc1","fixed":"1838c704bcb4fd3556cf67513c6f97a39099e35c","status":"affected"},{"type":"git","introduced":"c4b28963fd79457315783b3b0f21c01eb88cfdc1","fixed":"5d10d4e19e6daa487f0cd0ea6cba472325de92f9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.109","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2567818c2776d0a820506c3612261d9e24af7164","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f1cd6c4c35243377882c47236281d03ee3be6eeb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a1b12c06c192290b8479de48f66f1e75d89c4b7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3fc8044251de21555fb02c365fa681bab8b0db55","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1838c704bcb4fd3556cf67513c6f97a39099e35c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d10d4e19e6daa487f0cd0ea6cba472325de92f9","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89759","url":"https://www.cve.org/CVERecord?id=CVE-2026-89759","licence":"CVE Terms of Use","modified":"2026-10-30T12:32:57.075Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89759","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89759","licence":"Public domain","modified":"2026-10-30T13:20:28.370Z"}],"updatedAt":"2026-11-25T22:59:38.139Z","epss":{"score":0.00217,"percentile":0.12922,"date":"2026-12-01T12:00:22.000Z"}}