CVE-2025-39916

5.5 MEDIUM

📋 TL;DR

A divide-by-zero vulnerability in the Linux kernel's DAMON_RECLAIM subsystem can cause kernel crashes when creating new memory reclamation schemes. This affects Linux systems using DAMON_RECLAIM for proactive memory management. The vulnerability requires local access to trigger.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Kernel versions with DAMON_RECLAIM feature before the fix commits
Operating Systems: Linux distributions using vulnerable kernel versions
Default Config Vulnerable: ✅ No
Notes: Only affects systems where DAMON_RECLAIM is enabled and being configured. Not enabled by default in most distributions.

📦 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

Kernel panic leading to system crash and denial of service, potentially causing data loss or service disruption.

🟠

Likely Case

Local denial of service through kernel crash when privileged users or processes attempt to configure DAMON_RECLAIM with invalid parameters.

🟢

If Mitigated

System remains stable as the patch returns -EINVAL error instead of crashing, allowing graceful error handling.

🌐 Internet-Facing: LOW - Requires local access to trigger, not remotely exploitable.
🏢 Internal Only: MEDIUM - Local users or processes with appropriate permissions can cause system crashes.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: LOW - Simple parameter manipulation required

Exploitation requires local access and ability to configure DAMON_RECLAIM parameters.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel versions containing commits: 40cb9b38b645, 5d6eeb3c683c, 64dc351e5827, 9fe0415156fb, e6b543ca9806

Vendor Advisory: https://git.kernel.org/stable/c/40cb9b38b645126fdd1d6aa3d6811a8ad50ddfa1

Restart Required: Yes

Instructions:

1. Update Linux kernel to version containing the fix commits. 2. Reboot system to load new kernel. 3. Verify kernel version after reboot.

🔧 Temporary Workarounds

Disable DAMON_RECLAIM

linux

Prevent exploitation by disabling the DAMON_RECLAIM subsystem

echo '0' > /sys/kernel/mm/damon/reclaim/enabled

Restrict access to DAMON_RECLAIM controls

linux

Limit which users can access DAMON_RECLAIM configuration interfaces

chmod 600 /sys/kernel/mm/damon/reclaim/*
set appropriate SELinux/AppArmor policies

🧯 If You Can't Patch

  • Disable DAMON_RECLAIM feature if not required
  • Implement strict access controls to prevent unauthorized users from configuring DAMON_RECLAIM

🔍 How to Verify

Check if Vulnerable:

Check if DAMON_RECLAIM is enabled and kernel version is vulnerable: cat /sys/kernel/mm/damon/reclaim/enabled && uname -r

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version includes fix commits and test creating DAMON_RECLAIM schemes with zero aggr_interval

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic logs
  • Divide-by-zero errors in kernel logs
  • System crash/reboot events

Network Indicators:

  • None - local vulnerability only

SIEM Query:

source="kernel" AND ("divide by zero" OR "panic" OR "oops") AND "damon_reclaim"

🔗 References

📤 Share & Export