CVE-2025-39736

5.5 MEDIUM

📋 TL;DR

This CVE describes a deadlock vulnerability in the Linux kernel's kmemleak memory leak detector. When netpoll is enabled, a specific code path can cause the system to hang indefinitely due to lock inversion. This affects Linux systems with kmemleak enabled and netpoll/netconsole configured.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Specific affected versions not explicitly stated in CVE, but patches are available in stable kernel trees
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Requires CONFIG_DEBUG_KMEMLEAK=y and netpoll/netconsole enabled. Most production systems have kmemleak disabled by default.

📦 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 →

⚠️ Risk & Real-World Impact

🔴

Worst Case

System deadlock causing complete unresponsiveness, requiring hard reboot and potential data loss or corruption.

🟠

Likely Case

System hangs under specific conditions when kmemleak warnings are triggered with netpoll enabled, requiring manual intervention to recover.

🟢

If Mitigated

No impact if kmemleak is disabled or netpoll/netconsole is not configured.

🌐 Internet-Facing: LOW - This is a local kernel deadlock issue, not remotely exploitable for code execution or data access.
🏢 Internal Only: MEDIUM - Can cause system instability and downtime for affected configurations, but requires specific conditions to trigger.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires triggering kmemleak warnings while netpoll is active. This is a reliability/DoS issue, not a security bypass.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Patches available in stable kernel trees (see references for specific commits)

Vendor Advisory: https://git.kernel.org/stable/c/08f70be5e406ce47c822f2dd11c1170ca259605b

Restart Required: Yes

Instructions:

1. Update to a patched kernel version from your distribution vendor. 2. Reboot the system to load the new kernel. 3. Verify the fix by checking kernel version.

🔧 Temporary Workarounds

Disable kmemleak

all

Disable the kmemleak memory leak detector which is typically not needed in production environments

echo 0 > /sys/kernel/debug/kmemleak
Or boot with kmemleak=off kernel parameter

Disable netconsole/netpoll

all

Disable network console logging if not required

Remove netconsole parameters from kernel command line
Disable netpoll in network configuration

🧯 If You Can't Patch

  • Disable kmemleak via kernel command line parameter (kmemleak=off)
  • Ensure netconsole and netpoll are disabled in system configuration

🔍 How to Verify

Check if Vulnerable:

Check if kmemleak is enabled: cat /sys/kernel/debug/kmemleak 2>/dev/null || echo 'kmemleak not enabled'. Check kernel version against patched releases.

Check Version:

uname -r

Verify Fix Applied:

Verify running kernel version includes the fix commits or is from a patched release. Check that kmemleak warnings no longer cause deadlock with netpoll enabled.

📡 Detection & Monitoring

Log Indicators:

  • System hangs or becomes unresponsive
  • Kernel panic messages related to deadlock
  • kmemleak warning messages in dmesg

Network Indicators:

  • None - this is a local kernel issue

SIEM Query:

Search for: 'deadlock' OR 'kmemleak' OR 'netconsole' in kernel logs with system unresponsiveness indicators

🔗 References

📤 Share & Export