Skip to main content
Vulnerability Database/CVE-2026-97948

CVE-2026-97948: Linux Kernel Powerpc EEH Race Condition

CVE-2026-97948 is a race condition flaw in Linux kernel powerpc EEH causing recursive locking on devices without EEH sensitive drivers. This article covers technical details, affected versions, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97948 Overview

CVE-2026-97948 is a recursive locking defect in the Linux kernel's PowerPC Enhanced Error Handling (EEH) subsystem. The flaw originates in eeh_rmv_device(), which attempts to acquire pci_rescan_remove_lock even though the caller eeh_handle_normal_event() already holds it. The result is a kernel thread (eehd) hang when EEH processes errors on PCI Host Bridges (PHBs) or on devices whose drivers return PCI_ERS_RESULT_NEED_RESET without implementing EEH-sensitive error handlers such as slot_reset() or resume().

Critical Impact

The recursive lock acquisition causes the EEH event handler thread to deadlock, preventing recovery of PCI devices after error detection on affected PowerPC systems.

Affected Products

  • Linux kernel on PowerPC architecture with EEH enabled
  • Systems running kernels containing commit 1010b4c012b0 ("powerpc/eeh: Make EEH driver device hotplug safe")
  • PowerPC platforms using PHB-based PCI error recovery

Discovery Timeline

  • 2026-09-25 - CVE CVE-2026-97948 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97948

Vulnerability Analysis

The Linux kernel EEH subsystem on PowerPC provides error detection and recovery for PCI devices. The refactoring commit 1010b4c012b0 moved pci_rescan_remove_lock acquisition up into eeh_handle_normal_event() so the lock would be held for the entire reset flow. However, the pre-existing pci_lock_rescan_remove() call inside eeh_rmv_device() was not removed. When eeh_reset_device() traverses the PE via eeh_pe_dev_traverse() and invokes eeh_rmv_device(), the function tries to acquire a lock already held by its caller, causing the eehd kernel thread to block indefinitely on itself.

The reported call stack confirms the deadlock path: eeh_event_handler → eeh_handle_normal_event → eeh_reset_device → eeh_pe_dev_traverse → eeh_rmv_device → pci_lock_rescan_remove → __switch_to.

Root Cause

The root cause is redundant locking left behind during the EEH hotplug-safety refactor. eeh_rmv_device() continued to call pci_lock_rescan_remove() after the lock was promoted to its caller eeh_handle_normal_event(). This represents a race condition / deadlock defect in kernel synchronization logic.

Attack Vector

This is not a remotely exploitable vulnerability. The condition triggers during legitimate hardware error recovery when either errors are detected directly on the PHB, or a PCI device driver returns PCI_ERS_RESULT_NEED_RESET without defining EEH-sensitive error handlers. The impact is a denial of service: EEH recovery hangs, affected PCI devices do not come back online, and the eehd thread remains stuck in an uninterruptible state.

The vulnerability is described in prose only; see the upstream fix in the referenced kernel commits for the exact source-level change.

Detection Methods for CVE-2026-97948

Indicators of Compromise

  • A hung eehd kernel thread with a stack trace showing pci_lock_rescan_remove+0x30/0x44 called from eeh_rmv_device.
  • PCI devices on PowerPC that fail to recover after an EEH event and remain in an isolated or frozen PE state.
  • Hung-task warnings referencing eeh_handle_normal_event or eeh_reset_device in dmesg.

Detection Strategies

  • Monitor kernel logs for INFO: task eehd:... blocked for more than ... seconds messages combined with EEH stack frames.
  • Correlate PCI device unavailability on PowerPC hosts with EEH event handler activity in /sys/kernel/debug/powerpc/eeh.
  • Verify kernel build identifiers against the fixed commits 102e3dc, 2920af3, 85d8eae, and c5e6870 to identify unpatched systems.

Monitoring Recommendations

  • Alert on PowerPC hosts where PCI slot recovery has not completed within expected EEH timeouts.
  • Track EEH event counters exposed via sysfs for repeated or stalled recoveries.
  • Collect kernel crash dumps on affected hosts to confirm the recursive lock stack signature.

How to Mitigate CVE-2026-97948

Immediate Actions Required

  • Apply the upstream kernel fixes referenced below to all PowerPC systems running affected kernels.
  • Identify PowerPC hosts running kernels that contain commit 1010b4c012b0 but not the subsequent fix commits, and prioritize them for patching.
  • Where patching is not immediately possible, avoid loading or deploying PCI drivers that return PCI_ERS_RESULT_NEED_RESET without implementing EEH-sensitive handlers.

Patch Information

The fix removes the redundant pci_lock_rescan_remove() / pci_unlock_rescan_remove() calls inside eeh_rmv_device(), since the lock is already held by eeh_handle_normal_event(). Patches are available in the stable kernel tree:

Workarounds

  • Rebuild the kernel without the problematic EEH refactor if a vendor patch is not yet available.
  • On non-production systems, disable EEH recovery temporarily via kernel boot parameter eeh=off to prevent the deadlock path, accepting the loss of PCI error isolation.
  • Restrict workloads on affected hosts to PCI devices whose drivers implement full EEH error handlers (error_detected, slot_reset, resume).

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.