GHSA-9R8C-6VCP-7G96

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

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

nvmet-fc: don't drop the last assoc reference in nvmet_fc_delete_ctrl()

syzbot hit a recursive locking report on subsys->lock when a subsystem is unlinked from an FC port.

nvmet_port_del_ctrls() holds subsys->lock while it calls ->delete_ctrl() for each controller. nvmet_fc_delete_ctrl() grabs a reference on the association, queues del_work and then drops the reference. If del_work gets to run to completion before that put, ours is the last reference. Freeing the assoc tears down the queues, the last nvmet_cq_put() drops the last ctrl reference, and nvmet_ctrl_free() goes for subsys->lock again:

WARNING: possible recursive locking detected ... nvmet_ctrl_free+0xa6/0x8e0 drivers/nvme/target/core.c:1766 nvmet_cq_put+0x158/0x200 drivers/nvme/target/core.c:848 nvmet_fc_target_assoc_free+0x418/0x2220 drivers/nvme/target/fc.c:1173 nvmet_fc_delete_ctrl+0x717/0x7e0 drivers/nvme/target/fc.c:1581 nvmet_port_del_ctrls+0xfb/0x150 drivers/nvme/target/core.c:311 nvmet_port_subsys_drop_link+0x1e8/0x310 drivers/nvme/target/configfs.c:1119

It's a real hang, not only a lockdep warning. I reproduced it with fcloop by putting an msleep() before the put: rm on the configfs link gets stuck in D state for good.

I don't think we need that reference at all. del_work does list_del_rcu() and synchronize_rcu() before it drops the initial reference, so an assoc we find on assoc_list can't go away before rcu_read_unlock(). nvmet_fc_schedule_delete_assoc() doesn't sleep, so just call it inside the RCU section and get rid of the get/put. If the assoc is already being deleted, terminating is set and the call is a no-op, which matches what happened before when the get failed.

With the same msleep() in place the patched kernel unlinks cleanly and the assoc is freed from the workqueue.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-142939"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T04:18:35Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-fc: don\u0027t drop the last assoc reference in nvmet_fc_delete_ctrl()\n\nsyzbot hit a recursive locking report on subsys-\u003elock when a subsystem\nis unlinked from an FC port.\n\nnvmet_port_del_ctrls() holds subsys-\u003elock while it calls -\u003edelete_ctrl()\nfor each controller. nvmet_fc_delete_ctrl() grabs a reference on the\nassociation, queues del_work and then drops the reference. If del_work\ngets to run to completion before that put, ours is the last reference.\nFreeing the assoc tears down the queues, the last nvmet_cq_put() drops\nthe last ctrl reference, and nvmet_ctrl_free() goes for subsys-\u003elock\nagain:\n\n  WARNING: possible recursive locking detected\n  ...\n   nvmet_ctrl_free+0xa6/0x8e0 drivers/nvme/target/core.c:1766\n   nvmet_cq_put+0x158/0x200 drivers/nvme/target/core.c:848\n   nvmet_fc_target_assoc_free+0x418/0x2220 drivers/nvme/target/fc.c:1173\n   nvmet_fc_delete_ctrl+0x717/0x7e0 drivers/nvme/target/fc.c:1581\n   nvmet_port_del_ctrls+0xfb/0x150 drivers/nvme/target/core.c:311\n   nvmet_port_subsys_drop_link+0x1e8/0x310 drivers/nvme/target/configfs.c:1119\n\nIt\u0027s a real hang, not only a lockdep warning. I reproduced it with\nfcloop by putting an msleep() before the put: rm on the configfs link\ngets stuck in D state for good.\n\nI don\u0027t think we need that reference at all. del_work does\nlist_del_rcu() and synchronize_rcu() before it drops the initial\nreference, so an assoc we find on assoc_list can\u0027t go away before\nrcu_read_unlock(). nvmet_fc_schedule_delete_assoc() doesn\u0027t sleep, so\njust call it inside the RCU section and get rid of the get/put. If the\nassoc is already being deleted, terminating is set and the call is a\nno-op, which matches what happened before when the get failed.\n\nWith the same msleep() in place the patched kernel unlinks cleanly and\nthe assoc is freed from the workqueue.",
  "id": "GHSA-9r8c-6vcp-7g96",
  "modified": "2026-12-03T06:30:39Z",
  "published": "2026-12-03T06:30:39Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142939"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/01b4359d57b76c23c0762f8231e1676ed9f87f7b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0b373291c7b56a2807c9260da163649728ccfb65"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/165301b5e2fd765fa05ea1044bbca8ba79820197"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1d8ff6495673462f58b4b0352620fc6db89bd10f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b5bfeef31d29972178726ad04721f75731a3284f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c2cc01c130494e39e61775817d8053b31e471cb7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e813b4a80292ea70aebdcb0b1b4f30b68bc0b266"
    }
  ],
  "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.