Shellfeed logo Shellfeed

CVE-2026-98347 · UNKNOWN

Summary: IB/IPoIB: Avoid restoring OPER_UP after multicast flush

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 7.3).

Details

In the Linux kernel, the following vulnerability has been resolved:

IB/IPoIB: Avoid restoring OPER_UP after multicast flush

ipoib_ib_dev_flush_light() temporarily clears IPOIB_FLAG_OPER_UP to
prevent multicast joins while ipoib_mcast_dev_flush() is running, and
restores the flag afterwards if it was previously set.

This restore races with ipoib_ib_dev_down(). If the interface is brought
down while the flush is in progress, ipoib_ib_dev_down() clears
IPOIB_FLAG_OPER_UP, but the flush path may set it again after the device
has already gone down.

Since commit 894021a75291 ("IB/ipoib: Make the carrier_on_task race
aware"), ipoib_mcast_carrier_on_task() relies on IPOIB_FLAG_OPER_UP
being cleared to terminate its rtnl_trylock() retry loop. If the flag is
left set after shutdown, the workqueue retries forever, causing teardown
to deadlock when ipoib_ndo_uninit() waits in destroy_workqueue() while
holding RTNL.

Instead of overloading IPOIB_FLAG_OPER_UP to block multicast joins
during a light flush, introduce a dedicated IPOIB_FLAG_MCAST_FLUSH flag.
Use it together with IPOIB_FLAG_OPER_UP to determine whether multicast
joins are allowed, avoiding the race with device shutdown.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [344bacca8cd811809fc33a249f2738ab757d327f – f973769fb7cb33ba0d4a64b7dcfee0cabaead938] [3.2.84 – 3.3] [3.10.105 – 3.11] [3.12.65 – 3.13] [3.16.39 – 3.17] [4.4.24 – 4.5] [4.7.7 – 4.8] [a289c65ca49d2680a3d797e633e57a45573d1df2 – ?] [b81459c78935e4579a577b2366c5f8878d3c7fee – ?] [8a9d8dc9ce83a90bfbbe69181acc4cf1beff46f5 – ?]
  • Linux Kernel [4.8.0 – 5.10.271] [5.11.0 – 5.15.222] [5.16.0 – 6.1.189] [6.2.0 – 6.6.158] [6.7.0 – 6.12.112] [6.13.0 – 6.18.54] [6.19.0 – 7.2.8]

References