CVE-2025-39737
mm/kmemleak: avoid soft lockup in __kmemleak_do_cleanup()
Reported by linux · Published September 11, 2025
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.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, 2abd839aa7e615f2bbc50c8ba7deb9e40d186768 |
| Linux | Linux | 5.4, 0, 5.4.297 |
| Linux | Linux | 6.17, 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, 5.4 |
| Linux | linux_kernel | |
| Siemens | SIMATIC CN 4100 | 0 |
| linux | linux_kernel | 5.4, 5.4, 5.4 |
Timeline
- Sep 11, 2025 CVE Published
- Sep 12, 2025 EPSS Score (30 in total, the first dated here)
- Jan 14, 2026 PoC Published
- Feb 2, 2026 Security Advisory (206 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (193 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
- Oct 29, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-39737
vulnetix vdb fixes CVE-2025-39737
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39737/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart