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

CVE-2026-98347: Linux Kernel IPoIB Race Condition Vulnerability

CVE-2026-98347 is a race condition flaw in the Linux kernel IPoIB module that can cause system deadlocks during interface shutdown. This article covers the technical details, affected versions, and available patches.

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-98347 Overview

CVE-2026-98347 is a race condition in the Linux kernel's InfiniBand over IP (IPoIB) driver. The flaw occurs between ipoib_ib_dev_flush_light() and ipoib_ib_dev_down() when the interface is brought down while a multicast flush is in progress. The flush path may restore the IPOIB_FLAG_OPER_UP flag after shutdown has already cleared it. This leaves the ipoib_mcast_carrier_on_task() workqueue retrying its rtnl_trylock() loop indefinitely, which deadlocks teardown when ipoib_ndo_uninit() waits in destroy_workqueue() while holding the RTNL lock.

Critical Impact

Local denial of service through kernel deadlock during IPoIB interface teardown on affected Linux kernel versions.

Affected Products

  • Linux kernel IPoIB (IB/IPoIB) driver subsystem
  • Systems running InfiniBand hardware with IPoIB enabled
  • Stable kernel branches referenced in the patch commits

Discovery Timeline

  • 2026-10-06 - CVE-2026-98347 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98347

Vulnerability Analysis

The vulnerability is a race condition [TOCTOU-class] in the IPoIB driver. ipoib_ib_dev_flush_light() temporarily clears IPOIB_FLAG_OPER_UP to prevent multicast joins while ipoib_mcast_dev_flush() runs. After the flush completes, the function restores the flag if it had been previously set. The restore step does not coordinate with concurrent interface shutdown.

When the interface is administratively brought down during an in-flight flush, ipoib_ib_dev_down() clears IPOIB_FLAG_OPER_UP. The flush path then unconditionally re-sets the flag after the device has already transitioned down. This leaves the driver in an inconsistent state inconsistent with the device being operational.

Since commit 894021a75291 ("IB/ipoib: Make the carrier_on_task race aware"), ipoib_mcast_carrier_on_task() depends on IPOIB_FLAG_OPER_UP being cleared to exit its rtnl_trylock() retry loop. With the flag incorrectly set after shutdown, the workqueue retries forever. Teardown then deadlocks because ipoib_ndo_uninit() calls destroy_workqueue() while holding RTNL, which the retrying work needs to acquire.

Root Cause

The root cause is semantic overloading of a single flag. IPOIB_FLAG_OPER_UP was used both to signal operational state and to gate multicast join operations. These two concerns race when flush and shutdown execute concurrently. The fix introduces a dedicated IPOIB_FLAG_MCAST_FLUSH flag used alongside IPOIB_FLAG_OPER_UP to decide when multicast joins are permitted.

Attack Vector

Triggering the race requires local privileges to manipulate the IPoIB network interface state, typically CAP_NET_ADMIN. An attacker or a benign management workflow that brings an IPoIB interface down during a multicast flush can induce the deadlock. The result is a hung kernel workqueue and a stuck teardown path, producing a denial of service on the affected host. No remote attack vector is described in the advisory.

No verified public exploit code is available. The vulnerability mechanism is described in the upstream commit messages referenced in the kernel git tree.

Detection Methods for CVE-2026-98347

Indicators of Compromise

  • Kernel soft-lockup or hung-task warnings referencing ipoib_mcast_carrier_on_task or destroy_workqueue in dmesg output.
  • IPoIB interfaces that fail to complete ip link set down or module unload operations.
  • Persistent rtnl_trylock() retry activity associated with IPoIB workqueues after an interface state change.

Detection Strategies

  • Monitor kernel ring buffer and journald for hung-task timeouts tied to IPoIB symbols during interface state changes.
  • Correlate RDMA/InfiniBand management actions with subsequent workqueue stalls on the same host.
  • Audit the running kernel version against the fixed stable commits listed in the kernel.org references.

Monitoring Recommendations

  • Collect dmesg, /proc/sys/kernel/hung_task_timeout_secs alerts, and sysrq-t output from InfiniBand hosts for post-incident analysis.
  • Track administrative ip link and ifdown events on IPoIB interfaces through host telemetry.
  • Baseline normal IPoIB teardown duration and alert on operations that exceed the baseline, which can indicate the deadlock condition.

How to Mitigate CVE-2026-98347

Immediate Actions Required

  • Inventory Linux hosts using InfiniBand with IPoIB enabled and identify kernels that predate the stable fixes.
  • Apply the upstream patches from the kernel.org stable tree as soon as vendor-rebuilt kernels are available.
  • Restrict CAP_NET_ADMIN and administrative access to IPoIB interfaces to trusted operators and automation only.

Patch Information

The fix introduces a dedicated IPOIB_FLAG_MCAST_FLUSH flag and evaluates it together with IPOIB_FLAG_OPER_UP when gating multicast joins. This removes the overload on IPOIB_FLAG_OPER_UP and eliminates the race with device shutdown. Relevant upstream commits include Kernel Git Commit 188b334, Kernel Git Commit 1b11e4b, Kernel Git Commit 1ff3add, Kernel Git Commit 326f7d3, Kernel Git Commit 5ad925d, Kernel Git Commit 9a141d3, Kernel Git Commit b72f389, and Kernel Git Commit f973769.

Workarounds

  • Avoid bringing IPoIB interfaces down during active multicast flush operations until the patch is deployed.
  • Where IPoIB is not required, unload the ib_ipoib kernel module to remove the vulnerable code path.
  • Serialize automation that performs IPoIB link state changes to reduce the window in which the race can occur.

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.