{
  "id": "CVE-2026-68173",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-68173",
  "published_at": "2026-08-10T11:59:42.889Z",
  "title": "ublk: wait on ublk_dev_ready() instead of ub-\u003ecompletion",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nublk: wait on ublk_dev_ready() instead of ub-\u003ecompletion\n\nub-\u003ecompletion is only re-armed by a successful START_USER_RECOVERY. If\nthe ublk server sends END_USER_RECOVERY without one - e.g. its START\nfailed with -EBUSY and the error was ignored - the wait is satisfied by\nthe stale completion of the previous recovery cycle, and the device is\nmarked LIVE and the requeue list kicked while the FETCH stream is still\nrunning and ubq-\u003ecanceling is still set. The kick redispatches a\npreviously requeued request, __ublk_queue_rq_common() sees -\u003ecanceling\nand parks it again via __ublk_abort_rq(), and after the last FETCH\nclears -\u003ecanceling nothing ever kicks the requeue list again: the\nrequest is stranded there while holding its tag. If it is the flush\nmachinery's flush_rq, every subsequent fsync piles up in uninterruptible\nsleep and teardown hangs on tag draining. This matches a report of a\nlost PREFLUSH with ext4 on top of ublk after daemon crash recovery.\n\nub-\u003ecompletion is an edge-triggered latch used as a proxy for the level\ncondition \"every queue has fetched all I/O commands\", which can regress\n(F_BATCH's UNPREP, daemon death) and whose re-arm can be skipped. Drop\nit and wait on the real condition instead: the new helper\nublk_wait_dev_ready_and_lock() waits on ublk_dev_ready() via\nwait_var_event_interruptible(), woken from ublk_mark_io_ready(), then\nre-checks it under ub-\u003emutex, waiting again on regression, and returns\nwith the mutex held and readiness guaranteed.\n\nReadiness becomes true in the same ub-\u003emutex critical section that\nclears the last queue's -\u003ecanceling, so END_USER_RECOVERY marks the\ndevice LIVE and kicks the requeue list strictly after -\u003ecanceling\nclears. The wait stays interruptible, so a server whose daemon died can\nstill be signalled out. For ublk_ctrl_start_dev() this replaces the\nfail-fast -EINVAL on an F_BATCH ready-\u003eUNPREP regression with waiting\nuntil the device is ready again.",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 728cbac5fe219d3b8a21a0688a08f2b7f8aeda2b, \u003c 7dd26adf7e7d482af524e3a0cca4a81ef7c159d0",
          "\u003e= 728cbac5fe219d3b8a21a0688a08f2b7f8aeda2b, \u003c 8f188dd11a1c2ad94caeaee36ef68bb8221d4a12",
          "\u003e= 728cbac5fe219d3b8a21a0688a08f2b7f8aeda2b, \u003c 432a9b2780c0a01caf547bd1fc2fcf28aeb8d173",
          "42ea64e01c96e594fb4f80c54dfe4f934d008a6e",
          "\u003e= 6.14.6, \u003c 6.15"
        ],
        "fixed_in": [
          "7dd26adf7e7d482af524e3a0cca4a81ef7c159d0",
          "8f188dd11a1c2ad94caeaee36ef68bb8221d4a12",
          "432a9b2780c0a01caf547bd1fc2fcf28aeb8d173",
          "6.15"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.15"
        ],
        "fixed_in": [
          "0",
          "6.18.42",
          "7.1.6",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 7dd26adf7e7d482af524e3a0cca4a81ef7c159d0 or 8f188dd11a1c2ad94caeaee36ef68bb8221d4a12 or 432a9b2780c0a01caf547bd1fc2fcf28aeb8d173 or 6.15 or later.",
      "Upgrade Linux to 0 or 6.18.42 or 7.1.6 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
