CVE-2025-39737
mm/kmemleak: avoid soft lockup in __kmemleak_do_cleanup()
Check your servers for CVE-2025-39737
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-2025-39737 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 in __kmemleak_do_cleanup()
A soft lockup warning was observed on a relative small system x86-64 system with 16 GB of memory when running a debug kernel with kmemleak enabled.
watchdog: BUG: soft lockup - CPU#8 stuck for 33s! [kworker/8:1:134]
The test system was running a workload with hot unplug happening in parallel. Then kemleak decided to disable itself due to its inability to allocate more kmemleak objects. The debug kernel has its CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE set to 40,000.
The soft lockup happened in kmemleak_do_cleanup() when the existing kmemleak objects were being removed and deleted one-by-one in a loop via a workqueue. In this particular case, there are at least 40,000 objects that need to be processed and given the slowness of a debug kernel and the fact that a raw_spinlock has to be acquired and released in __delete_object(), it could take a while to properly handle all these objects.
As kmemleak has been disabled in this case, the object removal and deletion process can be further optimized as locking isn't really needed. However, it is probably not worth the effort to optimize for such an edge case that should rarely happen. So the simple solution is to call cond_resched() at periodic interval in the iteration loop to avoid soft lockup.
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.31% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, before 9f1f4e95031f84867c5821540466d62f88dab8ca affected from 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, before 1ef72a7fedc5bca70e8cc980985790de10d407aa affected from 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, before a04de4c40aab9b338dfa989cf4aec70fd187eeb2 affected from 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, before f014c10d190b92aad366e56b445daffcd1c075e4 affected from 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, before e21a3ddd58733ce31afcb1e5dc3cb80a4b5bc29b affected from 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, before 8d2d22a55ffe35c38e69795468a7addd1a80e9ce affected from 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, before 926092268efdf1ed7b55cf486356c74a9e7710d1 affected from 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, before 9b80430c194e4a114dc663c1025d56b4f3d0153d affected from 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, before d1534ae23c2b6be350c8ab060803fbf6e9682adc
Other versions: unaffected
|
| Linux |
affected 5.4 unaffected before 5.4 unaffected from 5.4.297 up to and including 5.4.* unaffected from 5.10.241 up to and including 5.10.* unaffected from 5.15.190 up to and including 5.15.* unaffected from 6.1.149 up to and including 6.1.* unaffected from 6.6.103 up to and including 6.6.* unaffected from 6.12.43 up to and including 6.12.* unaffected from 6.15.11 up to and including 6.15.* unaffected from 6.16.2 up to and including 6.16.* unaffected 6.17 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-2025-39737 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39737
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-2025-39737
trivy image --scanners vuln IMAGE | grep CVE-2025-39737
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/9f1f4e95031f84867c5821540466d62f88dab8ca git.kernel.org
- https://git.kernel.org/stable/c/1ef72a7fedc5bca70e8cc980985790de10d407aa git.kernel.org
- https://git.kernel.org/stable/c/a04de4c40aab9b338dfa989cf4aec70fd187eeb2 git.kernel.org
- https://git.kernel.org/stable/c/f014c10d190b92aad366e56b445daffcd1c075e4 git.kernel.org
- https://git.kernel.org/stable/c/e21a3ddd58733ce31afcb1e5dc3cb80a4b5bc29b git.kernel.org
- https://git.kernel.org/stable/c/8d2d22a55ffe35c38e69795468a7addd1a80e9ce git.kernel.org
- https://git.kernel.org/stable/c/926092268efdf1ed7b55cf486356c74a9e7710d1 git.kernel.org
- https://git.kernel.org/stable/c/9b80430c194e4a114dc663c1025d56b4f3d0153d git.kernel.org
- https://git.kernel.org/stable/c/d1534ae23c2b6be350c8ab060803fbf6e9682adc git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html cert-portal.siemens.com
Source: the record CVE-2025-39737 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse