# CVE-2026-98347: IB/IPoIB: Avoid restoring OPER_UP after multicast flush

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-10-06T08:46:36.136Z
- Modified: 2026-10-19T10:18:37.207Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 344bacca8cd811809fc33a249f2738ab757d327f before f973769fb7cb33ba0d4a64b7dcfee0cabaead938; from 344bacca8cd811809fc33a249f2738ab757d327f before b72f38929f4b5aa83161fd3b22a7327207e51ec5; from 344bacca8cd811809fc33a249f2738ab757d327f before 1b11e4b55b41d9e69a8e8d07622614202e2eaca9; from 344bacca8cd811809fc33a249f2738ab757d327f before 326f7d34bd7e64de535566b65c0533b640df5a81; from 344bacca8cd811809fc33a249f2738ab757d327f before 5ad925d45f28464a5e043c9620880bb6a030da89; from 344bacca8cd811809fc33a249f2738ab757d327f before 188b334a6db36a8e0bfaaf59bc4020639a0f3aad; from 344bacca8cd811809fc33a249f2738ab757d327f before 1ff3add37c329704ec46181b4ae4f00f9f16ce6f; from 344bacca8cd811809fc33a249f2738ab757d327f before 9a141d3dc869d18b2eab35e999f4790a9b84e40f; a289c65ca49d2680a3d797e633e57a45573d1df2; b81459c78935e4579a577b2366c5f8878d3c7fee; 8a9d8dc9ce83a90bfbbe69181acc4cf1beff46f5; dfe809702a11bd7fb91c882fb55620e39ce22109; and 9 more (not affected: before 4.8; from 5.10.271 up to 5.10.*; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.112 up to 6.12.*; from 6.18.54 up to 6.18.*; from 7.2.8 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/f973769fb7cb33ba0d4a64b7dcfee0cabaead938>
- <https://git.kernel.org/stable/c/b72f38929f4b5aa83161fd3b22a7327207e51ec5>
- <https://git.kernel.org/stable/c/1b11e4b55b41d9e69a8e8d07622614202e2eaca9>
- <https://git.kernel.org/stable/c/326f7d34bd7e64de535566b65c0533b640df5a81>
- <https://git.kernel.org/stable/c/5ad925d45f28464a5e043c9620880bb6a030da89>
- <https://git.kernel.org/stable/c/188b334a6db36a8e0bfaaf59bc4020639a0f3aad>
- <https://git.kernel.org/stable/c/1ff3add37c329704ec46181b4ae4f00f9f16ce6f>
- <https://git.kernel.org/stable/c/9a141d3dc869d18b2eab35e999f4790a9b84e40f>

## Sources

- CVE List: [CVE-2026-98347](https://www.cve.org/CVERecord?id=CVE-2026-98347), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98347](https://nvd.nist.gov/vuln/detail/CVE-2026-98347), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98347 · Whole record: https://cve.day/CVE-2026-98347.json · Rebuilt by cve.day 2026-11-25T22:59:42.336Z
