CVE-2025-21938

4.7 MEDIUM

📋 TL;DR

A race condition in the Linux kernel's MPTCP implementation can cause a 'scheduling while atomic' kernel panic when multiple connection requests attempt to create implicit MPTCP endpoints simultaneously. This affects Linux systems using MPTCP with specific network configurations, potentially causing denial of service.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Specific kernel versions with vulnerable MPTCP implementation (exact versions not specified in CVE, but patches available for stable branches)
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Only affects systems with MPTCP enabled and configured with endpoints having different external vs internal addresses, particularly when multiple connections exist.

📦 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 complete denial of service, requiring reboot.

🟠

Likely Case

System instability or crash when multiple MPTCP connections are established concurrently in specific network configurations.

🟢

If Mitigated

Minor performance impact or connection failures in race condition scenarios.

🌐 Internet-Facing: MEDIUM - Requires MPTCP usage and specific network configurations, but could be triggered by external connection attempts.
🏢 Internal Only: LOW - Requires internal MPTCP usage with specific endpoint configurations that expose internal vs external address differences.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: MEDIUM

Exploitation requires specific MPTCP configurations and concurrent connection attempts. The vulnerability is a race condition that may be difficult to reliably trigger.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Multiple stable kernel patches available (see references in CVE)

Vendor Advisory: https://git.kernel.org/stable/c/022bfe24aad8937705704ff2e414b100cf0f2e1a

Restart Required: Yes

Instructions:

1. Identify your Linux kernel version. 2. Apply the appropriate kernel patch from the stable branches. 3. Rebuild and install the patched kernel. 4. Reboot the system.

🔧 Temporary Workarounds

Disable MPTCP

linux

Disable Multipath TCP functionality if not required

sysctl -w net.mptcp.enabled=0

Avoid problematic MPTCP configurations

linux

Avoid using MPTCP endpoints with different external vs internal addresses

🧯 If You Can't Patch

  • Disable MPTCP functionality entirely using sysctl
  • Implement network segmentation to limit MPTCP connection attempts

🔍 How to Verify

Check if Vulnerable:

Check if MPTCP is enabled and kernel version is unpatched: sysctl net.mptcp.enabled && uname -r

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version includes one of the patch commits referenced in the CVE

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic messages containing 'scheduling while atomic'
  • MPTCP-related error messages in kernel logs
  • System crash/reboot events

Network Indicators:

  • Multiple concurrent MPTCP connection attempts
  • MPTCP SYN packets to systems with specific endpoint configurations

SIEM Query:

event_source="kernel" AND (message="scheduling while atomic" OR message="BUG: scheduling while atomic")

🔗 References

📤 Share & Export