CVE-2026-89759
mm/kmemleak: avoid soft lockup when scanning task stacks
Check your servers for CVE-2026-89759
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-89759 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.9% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from c4b28963fd79457315783b3b0f21c01eb88cfdc1, before 2567818c2776d0a820506c3612261d9e24af7164 affected from c4b28963fd79457315783b3b0f21c01eb88cfdc1, before f1cd6c4c35243377882c47236281d03ee3be6eeb affected from c4b28963fd79457315783b3b0f21c01eb88cfdc1, before 9a1b12c06c192290b8479de48f66f1e75d89c4b7 affected from c4b28963fd79457315783b3b0f21c01eb88cfdc1, before 3fc8044251de21555fb02c365fa681bab8b0db55 affected from c4b28963fd79457315783b3b0f21c01eb88cfdc1, before 1838c704bcb4fd3556cf67513c6f97a39099e35c affected from c4b28963fd79457315783b3b0f21c01eb88cfdc1, before 5d10d4e19e6daa487f0cd0ea6cba472325de92f9
Other versions: unaffected
|
| Linux |
affected 5.10 unaffected before 5.10 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.109 up to and including 6.12.* unaffected from 6.18.50 up to and including 6.18.* unaffected from 7.2.4 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-89759 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89759
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-89759
trivy image --scanners vuln IMAGE | grep CVE-2026-89759
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/2567818c2776d0a820506c3612261d9e24af7164 git.kernel.org
- https://git.kernel.org/stable/c/f1cd6c4c35243377882c47236281d03ee3be6eeb git.kernel.org
- https://git.kernel.org/stable/c/9a1b12c06c192290b8479de48f66f1e75d89c4b7 git.kernel.org
- https://git.kernel.org/stable/c/3fc8044251de21555fb02c365fa681bab8b0db55 git.kernel.org
- https://git.kernel.org/stable/c/1838c704bcb4fd3556cf67513c6f97a39099e35c git.kernel.org
- https://git.kernel.org/stable/c/5d10d4e19e6daa487f0cd0ea6cba472325de92f9 git.kernel.org
Source: the record CVE-2026-89759 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse