CVE-2022-50381

5.5 MEDIUM

📋 TL;DR

A race condition vulnerability in the Linux kernel's MD (Multiple Devices) subsystem can cause a kernel crash when freeing memory pools. This affects systems using software RAID (md) or LVM with RAID configurations. The vulnerability allows local attackers to trigger a denial of service by causing a kernel panic.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Versions before the fix commits (specific versions vary by distribution, generally Linux kernel versions before the fix in early 2023)
Operating Systems: Linux distributions using vulnerable kernel versions
Default Config Vulnerable: ✅ No
Notes: Only systems using MD software RAID or LVM with RAID functionality are vulnerable. Systems without these features enabled are not affected.

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

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic leading to system crash and denial of service, potentially causing data corruption or loss in RAID arrays during the crash.

🟠

Likely Case

System crash requiring reboot, disrupting services running on affected systems with software RAID configurations.

🟢

If Mitigated

No impact if patched or if system doesn't use MD/LVM RAID functionality.

🌐 Internet-Facing: LOW - Requires local access to trigger, not remotely exploitable.
🏢 Internal Only: MEDIUM - Local users or processes can crash the system, affecting availability of services.

🎯 Exploit Status

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

Exploitation requires local access and knowledge of triggering the specific race condition during RAID operations. No known public exploits.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Linux kernel with commits 341097ee53573e06ab9fc675d96a052385b851fa and related fixes

Vendor Advisory: https://git.kernel.org/stable/c/341097ee53573e06ab9fc675d96a052385b851fa

Restart Required: Yes

Instructions:

1. Update Linux kernel to version containing the fix. 2. For RHEL/CentOS: yum update kernel. 3. For Ubuntu/Debian: apt update && apt upgrade linux-image. 4. Reboot system to load new kernel.

🔧 Temporary Workarounds

Disable MD/LVM RAID

Linux

If not using software RAID functionality, disable MD module to prevent vulnerability

echo 'blacklist md_mod' >> /etc/modprobe.d/blacklist.conf
rmmod md_mod

🧯 If You Can't Patch

  • Restrict local user access to systems with RAID configurations
  • Monitor system logs for kernel panic events related to mempool_free or MD operations

🔍 How to Verify

Check if Vulnerable:

Check kernel version and if MD module is loaded: uname -r && lsmod | grep md_mod

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version is updated and check dmesg for absence of related crashes after RAID operations

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic messages in /var/log/messages or dmesg
  • NULL pointer dereference errors mentioning mempool_free
  • RAID/LVM error messages during operations

Network Indicators:

  • None - local vulnerability only

SIEM Query:

event_source="kernel" AND (message="BUG: kernel NULL pointer dereference" OR message="mempool_free" OR message="md: ")

🔗 References

📤 Share & Export