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.

Routine
CVSS
5.5
Moderate
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0018
7th percentile

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

ProductFixed inFixReleased
Linux
kernel-uek · ol 8 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663 Oct 11, 2025
kernel-uek-container · ol 8 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663 Oct 11, 2025
kernel-uek-container-debug · ol 8 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663 Oct 11, 2025
kernel-uek-debug · ol 8 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663 Oct 11, 2025
kernel-uek-debug-devel · ol 8 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663 Oct 11, 2025
kernel-uek-devel · ol 8 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663 Oct 11, 2025
kernel-uek-doc · ol 8 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663 Oct 11, 2025
kernel-uek-tools · ol 8 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663 Oct 11, 2025
linux · Debian 12.15 (bookworm) 6.1.153-1 DEBIAN-CVE-2025-39737 Sep 11, 2025
linux · Debian 13.5 (trixie) 6.12.43-1 DEBIAN-CVE-2025-39737 Sep 11, 2025
linux · Debian 14 6.16.3-1 DEBIAN-CVE-2025-39737 Sep 11, 2025

Patch Radar data is free to use with attribution. Terms and how to credit it.

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.