CVE-2025-38720

5.5 MEDIUM

📋 TL;DR

A race condition in the Linux kernel's hibmcge network driver causes a deadlock when PCI bus reset operations occur, potentially leading to system instability or denial of service. This affects systems using the hibmcge driver for HiSilicon network adapters. The vulnerability requires local access or ability to trigger PCI error recovery mechanisms.

💻 Affected Systems

Products:
  • Linux kernel with hibmcge driver
Versions: Kernel versions before the fix commits (specific versions vary by distribution)
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with HiSilicon network adapters using the hibmcge driver. Virtualized environments may be affected if using passthrough.

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

⚠️ Risk & Real-World Impact

🔴

Worst Case

System deadlock requiring hard reboot, causing extended downtime and potential data loss in critical systems.

🟠

Likely Case

Network interface becomes unresponsive, requiring driver reload or system restart to restore functionality.

🟢

If Mitigated

Minor performance impact during PCI error recovery with no persistent system damage.

🌐 Internet-Facing: LOW - Requires local access or ability to trigger PCI error conditions.
🏢 Internal Only: MEDIUM - Could be triggered by hardware faults, driver bugs, or malicious local users.

🎯 Exploit Status

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

Exploitation requires triggering PCI error recovery, which could be done through hardware manipulation, driver bugs, or potentially malicious DMA operations.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel versions containing commits 1343a8994ca7dba78f5dd818e89d68331c21c35d, c875503a9b9082928d7d3fc60b5400d16fbfae4e, or d85a6346fd6f595c4914205762d0cdf35c004a5e

Vendor Advisory: https://git.kernel.org/stable/c/1343a8994ca7dba78f5dd818e89d68331c21c35d

Restart Required: No

Instructions:

1. Update to a patched kernel version from your distribution. 2. For custom kernels, apply the relevant commit from kernel.org. 3. Rebuild and install the kernel. 4. Load the updated hibmcge driver module.

🔧 Temporary Workarounds

Disable hibmcge driver

all

Remove or blacklist the hibmcge driver if HiSilicon network adapters are not needed

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

Disable PCI error recovery

all

Prevent PCI error recovery from triggering the deadlock condition

echo 0 > /sys/bus/pci/devices/*/remove
echo 1 > /sys/bus/pci/rescan

🧯 If You Can't Patch

  • Monitor system logs for PCI error messages and hibmcge driver issues
  • Implement redundancy for critical network services using hibmcge adapters

🔍 How to Verify

Check if Vulnerable:

Check if hibmcge module is loaded: lsmod | grep hibmcge. Check kernel version against patched versions.

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version includes the fix commits. Test PCI error recovery on hibmcge devices.

📡 Detection & Monitoring

Log Indicators:

  • Kernel messages about rtnl deadlock
  • PCI error recovery messages
  • hibmcge driver reset failures
  • System hang or unresponsive network interfaces

Network Indicators:

  • Sudden loss of network connectivity on hibmcge interfaces
  • Increased network timeouts

SIEM Query:

source="kernel" AND ("rtnl" OR "deadlock" OR "hibmcge" OR "PCI error")

🔗 References

📤 Share & Export