CVE-2025-38072

5.5 MEDIUM

📋 TL;DR

A divide-by-zero vulnerability in the Linux kernel's libnvdimm driver occurs when a faulty CXL memory device reports a zero LSA size, causing a kernel panic. This affects systems using CXL memory devices with vulnerable kernel versions. The vulnerability requires physical or administrative access to trigger via a malicious or faulty hardware device.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Specific vulnerable kernel versions not specified in CVE, but patches exist in stable branches. Check kernel commit history for affected versions.
Operating Systems: Linux distributions using vulnerable kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with CXL memory devices or when libnvdimm driver is loaded. Requires physical hardware interaction or driver loading.

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

⚠️ 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

System crash when a faulty CXL memory device is connected or when malicious hardware is attached by an attacker with physical access.

🟢

If Mitigated

No impact if systems don't use CXL memory devices or have patched kernels.

🌐 Internet-Facing: LOW - Requires physical hardware access or local administrative privileges to trigger.
🏢 Internal Only: MEDIUM - Internal attackers with physical access to servers or ability to connect malicious hardware could cause denial of service.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM - Requires physical access to connect malicious hardware or ability to load malicious driver modules.

Exploitation requires either a malicious CXL device or ability to simulate one through driver manipulation. Not remotely exploitable.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Patched in stable kernel commits: 1d1e1efad1cf, 2bd4a938d2ed, 396c46d3f59a, db1aef51b8e6, e14347f647ca

Vendor Advisory: https://git.kernel.org/stable/c/1d1e1efad1cf049e888bf175a5c6be85d792620c

Restart Required: Yes

Instructions:

1. Update Linux kernel to version containing fixes. 2. Check distribution security advisories. 3. Reboot system after kernel update. 4. Verify kernel version matches patched release.

🔧 Temporary Workarounds

Disable CXL memory device support

linux

Prevent loading of libnvdimm driver or blacklist CXL modules to avoid vulnerability trigger.

modprobe -r cxl_pmem
echo 'blacklist cxl_pmem' >> /etc/modprobe.d/blacklist.conf

Restrict physical access

all

Prevent unauthorized hardware connections to systems using CXL memory devices.

🧯 If You Can't Patch

  • Restrict physical access to servers to prevent malicious hardware connections.
  • Monitor system logs for kernel panic events related to libnvdimm or CXL drivers.

🔍 How to Verify

Check if Vulnerable:

Check if CXL memory devices are present and kernel version is unpatched: lspci | grep -i cxl && uname -r

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version includes fix commits: git log --oneline | grep -E '(1d1e1efad1cf|2bd4a938d2ed|396c46d3f59a|db1aef51b8e6|e14347f647ca)'

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic messages containing 'divide error' or 'nd_label_data_init'
  • System crash/reboot events after CXL device connection
  • dmesg errors mentioning libnvdimm or CXL drivers

Network Indicators:

  • None - local hardware vulnerability

SIEM Query:

source="kernel" AND ("divide error" OR "nd_label_data_init" OR "libnvdimm" OR "CXL")

🔗 References

📤 Share & Export