{"id":"CVE-2026-98347","aliases":["CVE-2026-98347"],"related":[],"kind":"vulnerability","state":"published","title":"IB/IPoIB: Avoid restoring OPER_UP after multicast flush","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nIB/IPoIB: Avoid restoring OPER_UP after multicast flush\n\nipoib_ib_dev_flush_light() temporarily clears IPOIB_FLAG_OPER_UP to\nprevent multicast joins while ipoib_mcast_dev_flush() is running, and\nrestores the flag afterwards if it was previously set.\n\nThis restore races with ipoib_ib_dev_down(). If the interface is brought\ndown while the flush is in progress, ipoib_ib_dev_down() clears\nIPOIB_FLAG_OPER_UP, but the flush path may set it again after the device\nhas already gone down.\n\nSince commit 894021a75291 (\"IB/ipoib: Make the carrier_on_task race\naware\"), ipoib_mcast_carrier_on_task() relies on IPOIB_FLAG_OPER_UP\nbeing cleared to terminate its rtnl_trylock() retry loop. If the flag is\nleft set after shutdown, the workqueue retries forever, causing teardown\nto deadlock when ipoib_ndo_uninit() waits in destroy_workqueue() while\nholding RTNL.\n\nInstead of overloading IPOIB_FLAG_OPER_UP to block multicast joins\nduring a light flush, introduce a dedicated IPOIB_FLAG_MCAST_FLUSH flag.\nUse it together with IPOIB_FLAG_OPER_UP to determine whether multicast\njoins are allowed, avoiding the race with device shutdown.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nIB/IPoIB: Avoid restoring OPER_UP after multicast flush\n\nipoib_ib_dev_flush_light() temporarily clears IPOIB_FLAG_OPER_UP to\nprevent multicast joins while ipoib_mcast_dev_flush() is running, and\nrestores the flag afterwards if it was previously set.\n\nThis restore races with ipoib_ib_dev_down(). If the interface is brought\ndown while the flush is in progress, ipoib_ib_dev_down() clears\nIPOIB_FLAG_OPER_UP, but the flush path may set it again after the device\nhas already gone down.\n\nSince commit 894021a75291 (\"IB/ipoib: Make the carrier_on_task race\naware\"), ipoib_mcast_carrier_on_task() relies on IPOIB_FLAG_OPER_UP\nbeing cleared to terminate its rtnl_trylock() retry loop. If the flag is\nleft set after shutdown, the workqueue retries forever, causing teardown\nto deadlock when ipoib_ndo_uninit() waits in destroy_workqueue() while\nholding RTNL.\n\nInstead of overloading IPOIB_FLAG_OPER_UP to block multicast joins\nduring a light flush, introduce a dedicated IPOIB_FLAG_MCAST_FLUSH flag.\nUse it together with IPOIB_FLAG_OPER_UP to determine whether multicast\njoins are allowed, avoiding the race with device shutdown.","source":"cvelist"}],"published":"2026-10-06T08:46:36.136Z","modified":"2026-10-19T10:18:37.207Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"344bacca8cd811809fc33a249f2738ab757d327f","fixed":"f973769fb7cb33ba0d4a64b7dcfee0cabaead938","status":"affected"},{"type":"git","introduced":"344bacca8cd811809fc33a249f2738ab757d327f","fixed":"b72f38929f4b5aa83161fd3b22a7327207e51ec5","status":"affected"},{"type":"git","introduced":"344bacca8cd811809fc33a249f2738ab757d327f","fixed":"1b11e4b55b41d9e69a8e8d07622614202e2eaca9","status":"affected"},{"type":"git","introduced":"344bacca8cd811809fc33a249f2738ab757d327f","fixed":"326f7d34bd7e64de535566b65c0533b640df5a81","status":"affected"},{"type":"git","introduced":"344bacca8cd811809fc33a249f2738ab757d327f","fixed":"5ad925d45f28464a5e043c9620880bb6a030da89","status":"affected"},{"type":"git","introduced":"344bacca8cd811809fc33a249f2738ab757d327f","fixed":"188b334a6db36a8e0bfaaf59bc4020639a0f3aad","status":"affected"},{"type":"git","introduced":"344bacca8cd811809fc33a249f2738ab757d327f","fixed":"1ff3add37c329704ec46181b4ae4f00f9f16ce6f","status":"affected"},{"type":"git","introduced":"344bacca8cd811809fc33a249f2738ab757d327f","fixed":"9a141d3dc869d18b2eab35e999f4790a9b84e40f","status":"affected"},{"type":"git","version":"a289c65ca49d2680a3d797e633e57a45573d1df2","status":"affected"},{"type":"git","version":"b81459c78935e4579a577b2366c5f8878d3c7fee","status":"affected"},{"type":"git","version":"8a9d8dc9ce83a90bfbbe69181acc4cf1beff46f5","status":"affected"},{"type":"git","version":"dfe809702a11bd7fb91c882fb55620e39ce22109","status":"affected"},{"type":"git","version":"87160fb51bc343793cc8f5f031a87f1a35aecb82","status":"affected"},{"type":"git","version":"749fd55dd210f9676f0d445a6efaaa3bec65174a","status":"affected"},{"type":"semver","introduced":"3.2.84","fixed":"3.3","status":"affected"},{"type":"semver","introduced":"3.10.105","fixed":"3.11","status":"affected"},{"type":"semver","introduced":"3.12.65","fixed":"3.13","status":"affected"},{"type":"semver","introduced":"3.16.39","fixed":"3.17","status":"affected"},{"type":"semver","introduced":"4.4.24","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.7.7","fixed":"4.8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f973769fb7cb33ba0d4a64b7dcfee0cabaead938","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b72f38929f4b5aa83161fd3b22a7327207e51ec5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1b11e4b55b41d9e69a8e8d07622614202e2eaca9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/326f7d34bd7e64de535566b65c0533b640df5a81","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ad925d45f28464a5e043c9620880bb6a030da89","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/188b334a6db36a8e0bfaaf59bc4020639a0f3aad","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ff3add37c329704ec46181b4ae4f00f9f16ce6f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a141d3dc869d18b2eab35e999f4790a9b84e40f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98347","url":"https://www.cve.org/CVERecord?id=CVE-2026-98347","licence":"CVE Terms of Use","modified":"2026-10-19T09:17:58.195Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98347","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98347","licence":"Public domain","modified":"2026-10-19T10:18:37.207Z"}],"updatedAt":"2026-11-25T22:59:42.336Z","epss":{"score":0.00177,"percentile":0.07538,"date":"2026-12-01T12:00:22.000Z"}}