GHSA-HWVR-8542-9VR3

Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31
VLAI
Details

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

nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem()

Connecting a controller to a new subsystem deadlocks when sysfs_create_link() fails in nvme_init_subsystem(), e.g., on an allocation failure. The error path drops the last subsystem reference with nvme_subsystems_lock held and nvme_destroy_subsystem() takes the same lock again:

nvme nvme0: failed to create sysfs link from subsystem. ============================================ WARNING: possible recursive locking detected ... nvmesubsys/95 is trying to acquire lock: (nvme_subsystems_lock){+.+.}-{4:4}, at: nvme_destroy_subsystem+0x1b/0x1e0

but task is already holding lock: (nvme_subsystems_lock){+.+.}-{4:4}, at: nvme_init_identify+0x81e/0x34b0 ... Call Trace: __mutex_lock+0x1a2/0x26e0 nvme_destroy_subsystem+0x1b/0x1e0 nvme_init_identify.cold+0x3bc/0x56f nvme_init_ctrl_finish+0x1bc/0x7a0 nvme_loop_configure_admin_queue+0x205/0x2b0 nvme_loop_create_ctrl+0x480/0xd10 nvmf_dev_write+0x365/0x650 vfs_write+0x1e3/0x1250 ksys_write+0xfa/0x200 do_syscall_64+0xfb/0x590 entry_SYSCALL_64_after_hwframe+0x77/0x7f ... INFO: task nvmesubsys:95 blocked for more than 20 seconds. INFO: task nvmesubsys:95 is blocked on a mutex likely owned by task nvmesubsys:95.

Every later controller setup or removal then waits for the lock too. The nvme_validate_cntlid() error path for an existing subsystem does the same put, and deadlocks the same way if the other references go away in between.

Drop the lock before the put. For a new subsystem, take it off the list first so another controller can't find it in between. With the fix, the connect fails and the next connect works.

This bug was identified and confirmed with the help of a deterministic hypervisor currently under development. The C reproducer below however hits it within about 30s.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-142950"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T10:17:14Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem()\n\nConnecting a controller to a new subsystem deadlocks when\nsysfs_create_link() fails in nvme_init_subsystem(), e.g., on an\nallocation failure.  The error path drops the last subsystem reference\nwith nvme_subsystems_lock held and nvme_destroy_subsystem() takes the\nsame lock again:\n\n  nvme nvme0: failed to create sysfs link from subsystem.\n  ============================================\n  WARNING: possible recursive locking detected\n  ...\n  nvmesubsys/95 is trying to acquire lock:\n  (nvme_subsystems_lock){+.+.}-{4:4}, at: nvme_destroy_subsystem+0x1b/0x1e0\n\n  but task is already holding lock:\n  (nvme_subsystems_lock){+.+.}-{4:4}, at: nvme_init_identify+0x81e/0x34b0\n  ...\n  Call Trace:\n   __mutex_lock+0x1a2/0x26e0\n   nvme_destroy_subsystem+0x1b/0x1e0\n   nvme_init_identify.cold+0x3bc/0x56f\n   nvme_init_ctrl_finish+0x1bc/0x7a0\n   nvme_loop_configure_admin_queue+0x205/0x2b0\n   nvme_loop_create_ctrl+0x480/0xd10\n   nvmf_dev_write+0x365/0x650\n   vfs_write+0x1e3/0x1250\n   ksys_write+0xfa/0x200\n   do_syscall_64+0xfb/0x590\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n  ...\n  INFO: task nvmesubsys:95 blocked for more than 20 seconds.\n  INFO: task nvmesubsys:95 is blocked on a mutex likely owned by task nvmesubsys:95.\n\nEvery later controller setup or removal then waits for the lock too.\nThe nvme_validate_cntlid() error path for an existing subsystem does the\nsame put, and deadlocks the same way if the other references go away in\nbetween.\n\nDrop the lock before the put.  For a new subsystem, take it off the list\nfirst so another controller can\u0027t find it in between.  With the fix,\nthe connect fails and the next connect works.\n\nThis bug was identified and confirmed with the help of a deterministic\nhypervisor currently under development.  The C reproducer below however\nhits it within about 30s.",
  "id": "GHSA-hwvr-8542-9vr3",
  "modified": "2026-12-03T12:31:00Z",
  "published": "2026-12-03T12:31:00Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142950"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4ef5a909c2bc166c971d3cc53374367a57e2c6e8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/766d91e46033b65931fe1c83c3e4ddf9dee89a5a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/80f7f642a7bf38d65030aa0184f7deacfcd58d47"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8684fcb836ab3df327b3d59cca8e570aa6bf3e08"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ba1213be15c613a1c03db69ea6480ca140a6ca00"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/eada1e958642a56160d4634516e7fe8410d80757"
    }
  ],
  "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.