GHSA-C46V-GQMM-HGP3

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

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.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-139366"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:19:03Z",
    "severity": null
  },
  "details": "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.",
  "id": "GHSA-c46v-gqmm-hgp3",
  "modified": "2026-11-30T15:32:29Z",
  "published": "2026-11-30T15:32:29Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139366"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/101b0d0fcccaefbe3bb327a34907d06b6b5e67a0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/12051a732553b1cfffbdf8598bb1a2ad23ffa25c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/49d6aff0caf6d6bb33d95b34e117ef2a9b4ef592"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4d1be774ce780aa334f42eb85e7996eb7d18cf0d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/52ae69fb603c0d17fffcab469c72b0466af68627"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/66196a559be5963b1ced18418c876caf9bfb76e6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8ec0959e9332b90b66af715ed43c1a7bf9f9046c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fdff1a02b24e84153568784021745fa52c0c7b4b"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.