{"api_version":"1","generated_at":"2026-12-01T23:20:24+00:00","cve":"CVE-2026-139366","urls":{"html":"https://cve.report/CVE-2026-139366","api":"https://cve.report/api/cve/CVE-2026-139366.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139366","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139366"},"summary":{"title":"IB/IPoIB: Cancel normal flush work on device stop","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nIB/IPoIB: Cancel normal flush work on device stop\n\nipoib_ib_dev_flush_normal() can race with ipoib_stop() because the normal\nflush work does not run under RTNL.\n\nBefore commit a77a57a1a22a (\"IPoIB: Fix deadlock on RTNL in\nipoib_stop()\"), ipoib_stop() flushed ipoib_workqueue after clearing\nIPOIB_FLAG_ADMIN_UP and before calling ipoib_ib_dev_down(). This ensured\nthat any in-flight flush work completed before ipoib_ib_dev_down()\nperformed the final clear of IPOIB_FLAG_OPER_UP.\n\nAfter that commit removed the workqueue flush to avoid a deadlock with\nworkqueue tasks taking RTNL, a normal flush can continue running\nconcurrently with ipoib_stop() after IPOIB_FLAG_ADMIN_UP has been\ncleared.\n\nThe flush may observe IPOIB_FLAG_ADMIN_UP set and continue running while\nipoib_stop() clears IPOIB_FLAG_ADMIN_UP and brings the device down. The\nflush can then call ipoib_ib_dev_up() and set IPOIB_FLAG_OPER_UP again\nafter the device has already been stopped:\n\n  flush_normal (ipoib_workqueue)    ipoib_stop() (RTNL held)\n  ------------------------------    ------------------------\n  test_bit(ADMIN_UP) == 1\n                                    clear_bit(ADMIN_UP)\n                                    ipoib_ib_dev_down()\n                                      clear_bit(OPER_UP)\n  ipoib_ib_dev_up()\n    set_bit(OPER_UP)\n\nThis leaves the interface with ADMIN_UP clear and OPER_UP set. During\ndevice removal, ipoib_ndo_uninit() waits in destroy_workqueue() while\nholding RTNL, while ipoib_mcast_carrier_on_task() may keep retrying\nrtnl_trylock() as long as OPER_UP remains set, resulting in a deadlock.\n\nCancel the normal flush work from ipoib_stop() after clearing\nIPOIB_FLAG_ADMIN_UP and before bringing the device down. A pending normal\nflush is canceled, while an already running flush is allowed to finish\nbefore ipoib_ib_dev_down() performs the final transition to OPER_UP\nclear.\n\nOnly the normal flush needs this synchronization. The heavy flush is\nalready serialized with ipoib_stop() by RTNL, while the light flush does\nnot bring the device back up and therefore cannot recreate this race.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:03","updated_at":"2026-11-30 14:19:03"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/12051a732553b1cfffbdf8598bb1a2ad23ffa25c","name":"https://git.kernel.org/stable/c/12051a732553b1cfffbdf8598bb1a2ad23ffa25c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/66196a559be5963b1ced18418c876caf9bfb76e6","name":"https://git.kernel.org/stable/c/66196a559be5963b1ced18418c876caf9bfb76e6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4d1be774ce780aa334f42eb85e7996eb7d18cf0d","name":"https://git.kernel.org/stable/c/4d1be774ce780aa334f42eb85e7996eb7d18cf0d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/101b0d0fcccaefbe3bb327a34907d06b6b5e67a0","name":"https://git.kernel.org/stable/c/101b0d0fcccaefbe3bb327a34907d06b6b5e67a0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/52ae69fb603c0d17fffcab469c72b0466af68627","name":"https://git.kernel.org/stable/c/52ae69fb603c0d17fffcab469c72b0466af68627","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fdff1a02b24e84153568784021745fa52c0c7b4b","name":"https://git.kernel.org/stable/c/fdff1a02b24e84153568784021745fa52c0c7b4b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8ec0959e9332b90b66af715ed43c1a7bf9f9046c","name":"https://git.kernel.org/stable/c/8ec0959e9332b90b66af715ed43c1a7bf9f9046c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/49d6aff0caf6d6bb33d95b34e117ef2a9b4ef592","name":"https://git.kernel.org/stable/c/49d6aff0caf6d6bb33d95b34e117ef2a9b4ef592","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139366","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139366","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a77a57a1a22afc31891d95879fe3cf2ab03838b0 52ae69fb603c0d17fffcab469c72b0466af68627 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a77a57a1a22afc31891d95879fe3cf2ab03838b0 101b0d0fcccaefbe3bb327a34907d06b6b5e67a0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a77a57a1a22afc31891d95879fe3cf2ab03838b0 fdff1a02b24e84153568784021745fa52c0c7b4b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a77a57a1a22afc31891d95879fe3cf2ab03838b0 4d1be774ce780aa334f42eb85e7996eb7d18cf0d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a77a57a1a22afc31891d95879fe3cf2ab03838b0 49d6aff0caf6d6bb33d95b34e117ef2a9b4ef592 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a77a57a1a22afc31891d95879fe3cf2ab03838b0 12051a732553b1cfffbdf8598bb1a2ad23ffa25c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a77a57a1a22afc31891d95879fe3cf2ab03838b0 8ec0959e9332b90b66af715ed43c1a7bf9f9046c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a77a57a1a22afc31891d95879fe3cf2ab03838b0 66196a559be5963b1ced18418c876caf9bfb76e6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.27","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.27 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/infiniband/ulp/ipoib/ipoib_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"52ae69fb603c0d17fffcab469c72b0466af68627","status":"affected","version":"a77a57a1a22afc31891d95879fe3cf2ab03838b0","versionType":"git"},{"lessThan":"101b0d0fcccaefbe3bb327a34907d06b6b5e67a0","status":"affected","version":"a77a57a1a22afc31891d95879fe3cf2ab03838b0","versionType":"git"},{"lessThan":"fdff1a02b24e84153568784021745fa52c0c7b4b","status":"affected","version":"a77a57a1a22afc31891d95879fe3cf2ab03838b0","versionType":"git"},{"lessThan":"4d1be774ce780aa334f42eb85e7996eb7d18cf0d","status":"affected","version":"a77a57a1a22afc31891d95879fe3cf2ab03838b0","versionType":"git"},{"lessThan":"49d6aff0caf6d6bb33d95b34e117ef2a9b4ef592","status":"affected","version":"a77a57a1a22afc31891d95879fe3cf2ab03838b0","versionType":"git"},{"lessThan":"12051a732553b1cfffbdf8598bb1a2ad23ffa25c","status":"affected","version":"a77a57a1a22afc31891d95879fe3cf2ab03838b0","versionType":"git"},{"lessThan":"8ec0959e9332b90b66af715ed43c1a7bf9f9046c","status":"affected","version":"a77a57a1a22afc31891d95879fe3cf2ab03838b0","versionType":"git"},{"lessThan":"66196a559be5963b1ced18418c876caf9bfb76e6","status":"affected","version":"a77a57a1a22afc31891d95879fe3cf2ab03838b0","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/infiniband/ulp/ipoib/ipoib_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.27"},{"lessThan":"2.6.27","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"2.6.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"2.6.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"2.6.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"2.6.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"2.6.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"2.6.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"2.6.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.27","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nIB/IPoIB: Cancel normal flush work on device stop\n\nipoib_ib_dev_flush_normal() can race with ipoib_stop() because the normal\nflush work does not run under RTNL.\n\nBefore commit a77a57a1a22a (\"IPoIB: Fix deadlock on RTNL in\nipoib_stop()\"), ipoib_stop() flushed ipoib_workqueue after clearing\nIPOIB_FLAG_ADMIN_UP and before calling ipoib_ib_dev_down(). This ensured\nthat any in-flight flush work completed before ipoib_ib_dev_down()\nperformed the final clear of IPOIB_FLAG_OPER_UP.\n\nAfter that commit removed the workqueue flush to avoid a deadlock with\nworkqueue tasks taking RTNL, a normal flush can continue running\nconcurrently with ipoib_stop() after IPOIB_FLAG_ADMIN_UP has been\ncleared.\n\nThe flush may observe IPOIB_FLAG_ADMIN_UP set and continue running while\nipoib_stop() clears IPOIB_FLAG_ADMIN_UP and brings the device down. The\nflush can then call ipoib_ib_dev_up() and set IPOIB_FLAG_OPER_UP again\nafter the device has already been stopped:\n\n  flush_normal (ipoib_workqueue)    ipoib_stop() (RTNL held)\n  ------------------------------    ------------------------\n  test_bit(ADMIN_UP) == 1\n                                    clear_bit(ADMIN_UP)\n                                    ipoib_ib_dev_down()\n                                      clear_bit(OPER_UP)\n  ipoib_ib_dev_up()\n    set_bit(OPER_UP)\n\nThis leaves the interface with ADMIN_UP clear and OPER_UP set. During\ndevice removal, ipoib_ndo_uninit() waits in destroy_workqueue() while\nholding RTNL, while ipoib_mcast_carrier_on_task() may keep retrying\nrtnl_trylock() as long as OPER_UP remains set, resulting in a deadlock.\n\nCancel the normal flush work from ipoib_stop() after clearing\nIPOIB_FLAG_ADMIN_UP and before bringing the device down. A pending normal\nflush is canceled, while an already running flush is allowed to finish\nbefore ipoib_ib_dev_down() performs the final transition to OPER_UP\nclear.\n\nOnly the normal flush needs this synchronization. The heavy flush is\nalready serialized with ipoib_stop() by RTNL, while the light flush does\nnot bring the device back up and therefore cannot recreate this race."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:34:05.672Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/52ae69fb603c0d17fffcab469c72b0466af68627"},{"url":"https://git.kernel.org/stable/c/101b0d0fcccaefbe3bb327a34907d06b6b5e67a0"},{"url":"https://git.kernel.org/stable/c/fdff1a02b24e84153568784021745fa52c0c7b4b"},{"url":"https://git.kernel.org/stable/c/4d1be774ce780aa334f42eb85e7996eb7d18cf0d"},{"url":"https://git.kernel.org/stable/c/49d6aff0caf6d6bb33d95b34e117ef2a9b4ef592"},{"url":"https://git.kernel.org/stable/c/12051a732553b1cfffbdf8598bb1a2ad23ffa25c"},{"url":"https://git.kernel.org/stable/c/8ec0959e9332b90b66af715ed43c1a7bf9f9046c"},{"url":"https://git.kernel.org/stable/c/66196a559be5963b1ced18418c876caf9bfb76e6"}],"title":"IB/IPoIB: Cancel normal flush work on device stop","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139366","datePublished":"2026-11-30T13:34:05.672Z","dateReserved":"2026-11-30T13:22:15.929Z","dateUpdated":"2026-11-30T13:34:05.672Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:03","lastModifiedDate":"2026-11-30 14:19:03","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139366","Ordinal":"1","Title":"IB/IPoIB: Cancel normal flush work on device stop","CVE":"CVE-2026-139366","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139366","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nIB/IPoIB: Cancel normal flush work on device stop\n\nipoib_ib_dev_flush_normal() can race with ipoib_stop() because the normal\nflush work does not run under RTNL.\n\nBefore commit a77a57a1a22a (\"IPoIB: Fix deadlock on RTNL in\nipoib_stop()\"), ipoib_stop() flushed ipoib_workqueue after clearing\nIPOIB_FLAG_ADMIN_UP and before calling ipoib_ib_dev_down(). This ensured\nthat any in-flight flush work completed before ipoib_ib_dev_down()\nperformed the final clear of IPOIB_FLAG_OPER_UP.\n\nAfter that commit removed the workqueue flush to avoid a deadlock with\nworkqueue tasks taking RTNL, a normal flush can continue running\nconcurrently with ipoib_stop() after IPOIB_FLAG_ADMIN_UP has been\ncleared.\n\nThe flush may observe IPOIB_FLAG_ADMIN_UP set and continue running while\nipoib_stop() clears IPOIB_FLAG_ADMIN_UP and brings the device down. The\nflush can then call ipoib_ib_dev_up() and set IPOIB_FLAG_OPER_UP again\nafter the device has already been stopped:\n\n  flush_normal (ipoib_workqueue)    ipoib_stop() (RTNL held)\n  ------------------------------    ------------------------\n  test_bit(ADMIN_UP) == 1\n                                    clear_bit(ADMIN_UP)\n                                    ipoib_ib_dev_down()\n                                      clear_bit(OPER_UP)\n  ipoib_ib_dev_up()\n    set_bit(OPER_UP)\n\nThis leaves the interface with ADMIN_UP clear and OPER_UP set. During\ndevice removal, ipoib_ndo_uninit() waits in destroy_workqueue() while\nholding RTNL, while ipoib_mcast_carrier_on_task() may keep retrying\nrtnl_trylock() as long as OPER_UP remains set, resulting in a deadlock.\n\nCancel the normal flush work from ipoib_stop() after clearing\nIPOIB_FLAG_ADMIN_UP and before bringing the device down. A pending normal\nflush is canceled, while an already running flush is allowed to finish\nbefore ipoib_ib_dev_down() performs the final transition to OPER_UP\nclear.\n\nOnly the normal flush needs this synchronization. The heavy flush is\nalready serialized with ipoib_stop() by RTNL, while the light flush does\nnot bring the device back up and therefore cannot recreate this race.","Type":"Description","Title":"IB/IPoIB: Cancel normal flush work on device stop"}]}}}