{
  "id": "CVE-2025-40343",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40343",
  "published_at": "2025-12-09T04:10:00.973Z",
  "title": "nvmet-fc: avoid scheduling association deletion twice",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/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\nnvmet-fc: avoid scheduling association deletion twice\n\nWhen forcefully shutting down a port via the configfs interface,\nnvmet_port_subsys_drop_link() first calls nvmet_port_del_ctrls() and\nthen nvmet_disable_port(). Both functions will eventually schedule all\nremaining associations for deletion.\n\nThe current implementation checks whether an association is about to be\nremoved, but only after the work item has already been scheduled. As a\nresult, it is possible for the first scheduled work item to free all\nresources, and then for the same work item to be scheduled again for\ndeletion.\n\nBecause the association list is an RCU list, it is not possible to take\na lock and remove the list entry directly, so it cannot be looked up\nagain. Instead, a flag (terminating) must be used to determine whether\nthe association is already in the process of being deleted.",
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= a07b4970f464f13640e28e16dad6cfa33647cc99, \u003c 2f4852db87e25d4e226b25cb6f652fef9504360e",
          "\u003e= a07b4970f464f13640e28e16dad6cfa33647cc99, \u003c 85e2ce1920cb511d57aae59f0df6ff85b28bf04d",
          "\u003e= a07b4970f464f13640e28e16dad6cfa33647cc99, \u003c 601ed47b2363c24d948d7bac0c23abc8bd459570",
          "\u003e= a07b4970f464f13640e28e16dad6cfa33647cc99, \u003c 04d17540ef51e2c291eb863ca87fd332259b2d40",
          "\u003e= a07b4970f464f13640e28e16dad6cfa33647cc99, \u003c c09ac9a63fc3aaf4670ad7b5e4f5afd764424154",
          "\u003e= a07b4970f464f13640e28e16dad6cfa33647cc99, \u003c f2537be4f8421f6495edfa0bc284d722f253841d"
        ],
        "fixed_in": [
          "2f4852db87e25d4e226b25cb6f652fef9504360e",
          "85e2ce1920cb511d57aae59f0df6ff85b28bf04d",
          "601ed47b2363c24d948d7bac0c23abc8bd459570",
          "04d17540ef51e2c291eb863ca87fd332259b2d40",
          "c09ac9a63fc3aaf4670ad7b5e4f5afd764424154",
          "f2537be4f8421f6495edfa0bc284d722f253841d"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.8"
        ],
        "fixed_in": [
          "0",
          "5.15.197",
          "6.1.159",
          "6.6.117",
          "6.12.58",
          "6.17.8",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 2f4852db87e25d4e226b25cb6f652fef9504360e or 85e2ce1920cb511d57aae59f0df6ff85b28bf04d or 601ed47b2363c24d948d7bac0c23abc8bd459570 or 04d17540ef51e2c291eb863ca87fd332259b2d40 or c09ac9a63fc3aaf4670ad7b5e4f5afd764424154 or f2537be4f8421f6495edfa0bc284d722f253841d or later.",
      "Upgrade Linux to 0 or 5.15.197 or 6.1.159 or 6.6.117 or 6.12.58 or 6.17.8 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
