CVE-2026-139366
publishedIB/IPoIB: Cancel normal flush work on device stop
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 52ae69fb603c0d17fffcab469c72b0466af68627 · a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 101b0d0fcccaefbe3bb327a34907d06b6b5e67a0 · a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < fdff1a02b24e84153568784021745fa52c0c7b4b · a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 4d1be774ce780aa334f42eb85e7996eb7d18cf0d · a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 49d6aff0caf6d6bb33d95b34e117ef2a9b4ef592 · a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 12051a732553b1cfffbdf8598bb1a2ad23ffa25c · a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 8ec0959e9332b90b66af715ed43c1a7bf9f9046c · a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 66196a559be5963b1ced18418c876caf9bfb76e6 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.27 (affected) · 0 to < 2.6.27 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 52ae69fb603c0d17fffcab469c72b0466af68627 (affected · git)a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 101b0d0fcccaefbe3bb327a34907d06b6b5e67a0 (affected · git)a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < fdff1a02b24e84153568784021745fa52c0c7b4b (affected · git)a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 4d1be774ce780aa334f42eb85e7996eb7d18cf0d (affected · git)a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 49d6aff0caf6d6bb33d95b34e117ef2a9b4ef592 (affected · git)a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 12051a732553b1cfffbdf8598bb1a2ad23ffa25c (affected · git)a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 8ec0959e9332b90b66af715ed43c1a7bf9f9046c (affected · git)a77a57a1a22afc31891d95879fe3cf2ab03838b0 to < 66196a559be5963b1ced18418c876caf9bfb76e6 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.27 (affected)0 to < 2.6.27 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/101b0d0fcccaefbe3bb327a34907d06b6b5e67a0
- https://git.kernel.org/stable/c/12051a732553b1cfffbdf8598bb1a2ad23ffa25c
- https://git.kernel.org/stable/c/49d6aff0caf6d6bb33d95b34e117ef2a9b4ef592
- https://git.kernel.org/stable/c/4d1be774ce780aa334f42eb85e7996eb7d18cf0d
- https://git.kernel.org/stable/c/52ae69fb603c0d17fffcab469c72b0466af68627
- https://git.kernel.org/stable/c/66196a559be5963b1ced18418c876caf9bfb76e6
- https://git.kernel.org/stable/c/8ec0959e9332b90b66af715ed43c1a7bf9f9046c
- https://git.kernel.org/stable/c/fdff1a02b24e84153568784021745fa52c0c7b4b
Provider assertions
1Linux · cna
IB/IPoIB: Cancel normal flush work on device stop
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c236561a48b2bd23139a705bbbd14c2c12a11f54f83d9b393a8ba400dc37e93c
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record