CVE-2025-39737
📋 TL;DR
This CVE describes a soft lockup vulnerability in the Linux kernel's kmemleak memory leak detector. When kmemleak disables itself due to memory exhaustion, the cleanup process can cause a CPU to become unresponsive for extended periods. This affects systems running debug kernels with kmemleak enabled during memory-intensive operations.
💻 Affected Systems
- Linux kernel
📦 What is this software?
Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →⚠️ Risk & Real-World Impact
Worst Case
Complete system unresponsiveness requiring hard reboot, potentially causing service disruption and data loss.
Likely Case
Temporary system slowdown or unresponsiveness during kmemleak cleanup operations, requiring manual intervention.
If Mitigated
Minor performance degradation with automatic recovery via cond_resched() calls.
🎯 Exploit Status
Exploitation requires local access and specific kernel configurations. The vulnerability is triggered by memory exhaustion causing kmemleak to disable itself.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Patches available in stable kernel trees (commits referenced in CVE)
Vendor Advisory: https://git.kernel.org/stable/c/1ef72a7fedc5bca70e8cc980985790de10d407aa
Restart Required: Yes
Instructions:
1. Update to a patched kernel version from your distribution's repository. 2. Reboot the system to load the new kernel. 3. Verify the kernel version matches the patched release.
🔧 Temporary Workarounds
Disable kmemleak
linuxDisable the kmemleak memory leak detector in kernel configuration
echo 0 > /sys/kernel/debug/kmemleak
Reduce kmemleak memory pool
linuxDecrease CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE to prevent memory exhaustion
Rebuild kernel with reduced CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE value
🧯 If You Can't Patch
- Avoid running debug kernels with kmemleak enabled in production environments
- Monitor system memory usage and avoid memory exhaustion scenarios that trigger kmemleak cleanup
🔍 How to Verify
Check if Vulnerable:
Check if kmemleak is enabled: cat /sys/kernel/debug/kmemleak 2>/dev/null || echo 'kmemleak not enabled'
Check Version:
uname -r
Verify Fix Applied:
Check kernel version against patched releases and verify system doesn't experience soft lockups during memory pressure
📡 Detection & Monitoring
Log Indicators:
- watchdog: BUG: soft lockup - CPU#X stuck for Ys! [kworker/X:Y:Z]
- kmemleak: Cannot allocate a kmemleak_object structure
- kmemleak: Kernel memory leak detector disabled
Network Indicators:
- None - this is a local kernel issue
SIEM Query:
source="kernel" AND ("soft lockup" OR "kmemleak" OR "watchdog: BUG")
🔗 References
- https://git.kernel.org/stable/c/1ef72a7fedc5bca70e8cc980985790de10d407aa
- https://git.kernel.org/stable/c/8d2d22a55ffe35c38e69795468a7addd1a80e9ce
- https://git.kernel.org/stable/c/926092268efdf1ed7b55cf486356c74a9e7710d1
- https://git.kernel.org/stable/c/9b80430c194e4a114dc663c1025d56b4f3d0153d
- https://git.kernel.org/stable/c/9f1f4e95031f84867c5821540466d62f88dab8ca
- https://git.kernel.org/stable/c/a04de4c40aab9b338dfa989cf4aec70fd187eeb2
- https://git.kernel.org/stable/c/d1534ae23c2b6be350c8ab060803fbf6e9682adc
- https://git.kernel.org/stable/c/e21a3ddd58733ce31afcb1e5dc3cb80a4b5bc29b
- https://git.kernel.org/stable/c/f014c10d190b92aad366e56b445daffcd1c075e4
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html