CVE-2026-139366

Not scored yetLast modified Nov 30, 2026

Description

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

IB/IPoIB: Cancel normal flush work on device stop

ipoib_ib_dev_flush_normal() can race with ipoib_stop() because the normal flush work does not run under RTNL.

Before commit a77a57a1a22a ("IPoIB: Fix deadlock on RTNL in ipoib_stop()"), ipoib_stop() flushed ipoib_workqueue after clearing IPOIB_FLAG_ADMIN_UP and before calling ipoib_ib_dev_down(). This ensured that any in-flight flush work completed before ipoib_ib_dev_down() performed the final clear of IPOIB_FLAG_OPER_UP.

After that commit removed the workqueue flush to avoid a deadlock with workqueue tasks taking RTNL, a normal flush can continue running concurrently with ipoib_stop() after IPOIB_FLAG_ADMIN_UP has been cleared.

The flush may observe IPOIB_FLAG_ADMIN_UP set and continue running while ipoib_stop() clears IPOIB_FLAG_ADMIN_UP and brings the device down. The flush can then call ipoib_ib_dev_up() and set IPOIB_FLAG_OPER_UP again after the device has already been stopped:

flush_normal (ipoib_workqueue) ipoib_stop() (RTNL held) ------------------------------ ------------------------ test_bit(ADMIN_UP) == 1 clear_bit(ADMIN_UP) ipoib_ib_dev_down() clear_bit(OPER_UP) ipoib_ib_dev_up() set_bit(OPER_UP)

This leaves the interface with ADMIN_UP clear and OPER_UP set. During device removal, ipoib_ndo_uninit() waits in destroy_workqueue() while holding RTNL, while ipoib_mcast_carrier_on_task() may keep retrying rtnl_trylock() as long as OPER_UP remains set, resulting in a deadlock.

Cancel the normal flush work from ipoib_stop() after clearing IPOIB_FLAG_ADMIN_UP and before bringing the device down. A pending normal flush is canceled, while an already running flush is allowed to finish before ipoib_ib_dev_down() performs the final transition to OPER_UP clear.

Only the normal flush needs this synchronization. The heavy flush is already serialized with ipoib_stop() by RTNL, while the light flush does not bring the device back up and therefore cannot recreate this race.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139367In the Linux kernel, the following vulnerability has been resolved: net: axienet: free outstanding TX buffers in axienet_dma_bd_release() CVE-2026-139368In the Linux kernel, the following vulnerability has been resolved: scsi: libsas: Fix out-of-bounds memcpy() in sas_ssp_task_response() ThCVE-2026-139369In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: use skb_share_check() in the loopback selftest hook The looCVE-2026-139376.5Insufficient policy enforcement in Passwords in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the rendeCVE-2026-139370In the Linux kernel, the following vulnerability has been resolved: net: selftests: use skb_share_check() in the loopback receive hook TheCVE-2026-139371In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MSFT: Serialize handle map cleanup with event processing MSCVE-2026-139372In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btintel: Zero version data before parsing TLVs Firmware mayCVE-2026-139373In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_sync: Protect IRK identity reads with RCU hci_le_set_prCVE-2026-1393747.0In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btmtk: fix skb double free on ISO padding failure btmtk_isoCVE-2026-1393757.5In the Linux kernel, the following vulnerability has been resolved: Bluetooth: 6lowpan: Drain RCU readers on registration failure A lowpanCVE-2026-139376In the Linux kernel, the following vulnerability has been resolved: Bluetooth: msft: Lock failed probe cleanup against feature readers TheCVE-2026-1393778.0In the Linux kernel, the following vulnerability has been resolved: Bluetooth: ISO: Hold the listener during disconnect notification An IS
CVE-2026-139366: Unscored | Vulnix