# CVE-2025-39737: mm/kmemleak: avoid soft lockup in __kmemleak_do_cleanup()

CVE-2025-39737 is fixed in 9 products on 1 platform, first by DEBIAN-CVE-2025-39737, released September 11, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-39737
- Priority: Routine
- CVSS: 5.5 (Moderate)
- EPSS: 0.0018
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 11, 2025
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-39737

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | kernel-uek ol 8 | 0:5.4.17-2136.348.3.el7uek | [ELSA-2025-20663](https://patchblox.com/security/data/fix/linux/elsa-2025-20663.md) | Oct 11, 2025 |
| Linux | kernel-uek-container ol 8 | 0:5.4.17-2136.348.3.el7uek | [ELSA-2025-20663](https://patchblox.com/security/data/fix/linux/elsa-2025-20663.md) | Oct 11, 2025 |
| Linux | kernel-uek-container-debug ol 8 | 0:5.4.17-2136.348.3.el7uek | [ELSA-2025-20663](https://patchblox.com/security/data/fix/linux/elsa-2025-20663.md) | Oct 11, 2025 |
| Linux | kernel-uek-debug ol 8 | 0:5.4.17-2136.348.3.el7uek | [ELSA-2025-20663](https://patchblox.com/security/data/fix/linux/elsa-2025-20663.md) | Oct 11, 2025 |
| Linux | kernel-uek-debug-devel ol 8 | 0:5.4.17-2136.348.3.el7uek | [ELSA-2025-20663](https://patchblox.com/security/data/fix/linux/elsa-2025-20663.md) | Oct 11, 2025 |
| Linux | kernel-uek-devel ol 8 | 0:5.4.17-2136.348.3.el7uek | [ELSA-2025-20663](https://patchblox.com/security/data/fix/linux/elsa-2025-20663.md) | Oct 11, 2025 |
| Linux | kernel-uek-doc ol 8 | 0:5.4.17-2136.348.3.el7uek | [ELSA-2025-20663](https://patchblox.com/security/data/fix/linux/elsa-2025-20663.md) | Oct 11, 2025 |
| Linux | kernel-uek-tools ol 8 | 0:5.4.17-2136.348.3.el7uek | [ELSA-2025-20663](https://patchblox.com/security/data/fix/linux/elsa-2025-20663.md) | Oct 11, 2025 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.153-1 | [DEBIAN-CVE-2025-39737](https://patchblox.com/security/data/fix/linux/debian-cve-2025-39737.md) | Sep 11, 2025 |
| Linux | linux Debian 13.5 (trixie) | 6.12.43-1 | [DEBIAN-CVE-2025-39737](https://patchblox.com/security/data/fix/linux/debian-cve-2025-39737.md) | Sep 11, 2025 |
| Linux | linux Debian 14 | 6.16.3-1 | [DEBIAN-CVE-2025-39737](https://patchblox.com/security/data/fix/linux/debian-cve-2025-39737.md) | Sep 11, 2025 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
