CVE-2025-38373
📋 TL;DR
A deadlock vulnerability in the Linux kernel's InfiniBand mlx5 driver can cause system hangs when memory reclamation triggers during MR deregistration. This affects systems using Mellanox InfiniBand hardware with the mlx5 driver. The vulnerability requires local access to trigger.
💻 Affected Systems
- Linux kernel with mlx5 InfiniBand driver
📦 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 →⚠️ Risk & Real-World Impact
Worst Case
Complete system deadlock requiring hard reboot, causing denial of service to all applications and potential data loss.
Likely Case
System hang affecting specific processes using InfiniBand, requiring intervention to restore functionality.
If Mitigated
No impact if proper kernel patches are applied or if system doesn't use affected InfiniBand hardware/driver.
🎯 Exploit Status
Requires local access and ability to trigger specific memory allocation patterns during MR deregistration.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Kernel versions with commits 2ed25aa7f7711f508b6120e336f05cd9d49943c0, 727eb1be65a370572edf307558ec3396b8573156, beb89ada5715e7bd1518c58863eedce89ec051a7
Vendor Advisory: https://git.kernel.org/stable/c/2ed25aa7f7711f508b6120e336f05cd9d49943c0
Restart Required: Yes
Instructions:
1. Update Linux kernel to patched version from your distribution. 2. Reboot system to load new kernel. 3. Verify kernel version matches patched release.
🔧 Temporary Workarounds
Disable ODP functionality
linuxDisable On-Demand Paging for mlx5 driver to avoid the deadlock path
echo 0 > /sys/class/infiniband/mlx5_*/odp/enable
🧯 If You Can't Patch
- Restrict local user access to systems with affected hardware
- Monitor system for deadlock conditions and have reboot procedures ready
🔍 How to Verify
Check if Vulnerable:
Check kernel version and if mlx5 InfiniBand driver is loaded: lsmod | grep mlx5
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version includes the fix commits and test InfiniBand functionality
📡 Detection & Monitoring
Log Indicators:
- Kernel panic logs
- System hang reports
- Process deadlock warnings in dmesg
Network Indicators:
- InfiniBand connectivity loss
- High-performance computing job failures
SIEM Query:
Search for kernel panic events or system hang alerts related to mlx5 driver