Skip to content
Heist/ feed
Back to feed
HighFix available

nvmet: avoid recursive nvmet-wq flush in nvmet_ctrl_free

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: nvmet: avoid recursive nvmet-wq flush in nvmet_ctrl_free nvmet_tcp_release_queue_work() runs on nvmet-wq and can drop the final controller reference through nvmet_cq_put(). If that triggers nvmet_ctrl_free(), the teardown path flushes ctrl->async_event_work on the same nvmet-wq. Call chain: nvmet_tcp_schedule_release_queue() kref_put(&queue->kref, nvmet_tcp_release_queue) nvmet_tcp_release_queue() queue_work(nvmet_wq, &queue->release_work) <--- nvmet_wq process_one_work() nvmet_tcp_release_queue_work() nvmet_cq_put(&queue->nvme_cq) nvmet_cq_destroy() nvmet_ctrl_put(cq->ctrl) nvmet_ctrl_free() flush_work(&ctrl->async_event_work) <--- nvmet_wq Previously Scheduled by :- nvmet_add_async_event queue_work(nvmet_wq, &ctrl->async_event_work); This trips lockdep with a possible recursive locking warning. [ 5223.015876] run blktests nvme/003 at 2026-04-07 20:53:55 [ 5223.061801] loop0: detected capacity change from 0 to 2097152 [ 5223.072206] nvmet: adding nsid 1 to subsystem blktests-subsystem-1 [ 5223.088368] nvmet_tcp: enabling port 0 (127.0.0.1:4420) [ 5223.126086] nvmet: Created discovery controller 1 for subsystem nqn.2014-08.org.nvmexpress.discovery for NQN nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349. [ 5223.128453] nvme nvme1: new ctrl: NQN "nqn.2014-08.org.nvmexpress.discovery", addr 127.0.0.1:4420, hostnqn: nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349 [ 5233.1

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.258, 5.15.209, 6.1.175, 6.12.88, 6.18.30, 6.6.140, 7.0.7
CVEs
CVE-2026-46304
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 10:06 UTC · Revision 1

Source evidence

nvmet: avoid recursive nvmet-wq flush in nvmet_ctrl_free

core-osv · Original source

Published 8 Jun 2026, 15:46 UTC

In the Linux kernel, the following vulnerability has been resolved: nvmet: avoid recursive nvmet-wq flush in nvmet_ctrl_free nvmet_tcp_release_queue_work() runs on nvmet-wq and can drop the final controller reference through nvmet_cq_put(). If that triggers nvmet_ctrl_free(), the teardown path flushes ctrl->async_event_work on the same nvmet-wq. Call chain: nvmet_tcp_schedule_release_queue() kref_put(&queue->kref, nvmet_tcp_release_queue) nvmet_tcp_release_queue() queue_work(nvmet_wq, &queue->release_work) <--- nvmet_wq process_one_work() nvmet_tcp_release_queue_work() nvmet_cq_put(&queue->nvme_cq) nvmet_cq_destroy() nvmet_ctrl_put(cq->ctrl) nvmet_ctrl_free() flush_work(&ctrl->async_event_work) <--- nvmet_wq Previously Scheduled by :- nvmet_add_async_event queue_work(nvmet_wq, &ctrl->async_event_work); This trips lockdep with a possible recursive locking warning. [ 5223.015876] run blktests nvme/003 at 2026-04-07 20:53:55 [ 5223.061801] loop0: detected capacity change from 0 to 2097152 [ 5223.072206] nvmet: adding nsid 1 to subsystem blktests-subsystem-1 [ 5223.088368] nvmet_tcp: enabling port 0 (127.0.0.1:4420) [ 5223.126086] nvmet: Created discovery controller 1 for subsystem nqn.2014-08.org.nvmexpress.discovery for NQN nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349. [ 5223.128453] nvme nvme1: new ctrl: NQN "nqn.2014-08.org.nvmexpress.discovery", addr 127.0.0.1:4420, hostnqn: nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349 [ 5233.1

osv:CVE-2026-46304

Kernel

Fixed versions: 5.10.258, 5.15.209, 6.1.175, 6.6.140, 6.12.88, 6.18.30, 7.0.7

Complete source record
{
  "id": "b373f90b8a16d383e5c2174d68dfd46834a8de202fc6c02516cbf3781f26e8a1",
  "url": "https://osv.dev/vulnerability/CVE-2026-46304",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "nvmet: avoid recursive nvmet-wq flush in nvmet_ctrl_free",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: nvmet: avoid recursive nvmet-wq flush in nvmet_ctrl_free nvmet_tcp_release_queue_work() runs on nvmet-wq and can drop the final controller reference through nvmet_cq_put(). If that triggers nvmet_ctrl_free(), the teardown path flushes ctrl->async_event_work on the same nvmet-wq. Call chain: nvmet_tcp_schedule_release_queue() kref_put(&queue->kref, nvmet_tcp_release_queue) nvmet_tcp_release_queue() queue_work(nvmet_wq, &queue->release_work) <--- nvmet_wq process_one_work() nvmet_tcp_release_queue_work() nvmet_cq_put(&queue->nvme_cq) nvmet_cq_destroy() nvmet_ctrl_put(cq->ctrl) nvmet_ctrl_free() flush_work(&ctrl->async_event_work) <--- nvmet_wq Previously Scheduled by :- nvmet_add_async_event queue_work(nvmet_wq, &ctrl->async_event_work); This trips lockdep with a possible recursive locking warning. [ 5223.015876] run blktests nvme/003 at 2026-04-07 20:53:55 [ 5223.061801] loop0: detected capacity change from 0 to 2097152 [ 5223.072206] nvmet: adding nsid 1 to subsystem blktests-subsystem-1 [ 5223.088368] nvmet_tcp: enabling port 0 (127.0.0.1:4420) [ 5223.126086] nvmet: Created discovery controller 1 for subsystem nqn.2014-08.org.nvmexpress.discovery for NQN nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349. [ 5223.128453] nvme nvme1: new ctrl: NQN \"nqn.2014-08.org.nvmexpress.discovery\", addr 127.0.0.1:4420, hostnqn: nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349 [ 5233.1",
    "evidence": "osv:CVE-2026-46304",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.258",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.209",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.175",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.140",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.88",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.30",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.0.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-46304",
      "aliases": [
        "CVE-2026-46304"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "06406d81a2d7cfb8abcc4fa6cdfeb8e5897007c5"
                },
                {
                  "fixed": "ae5b0cad163833e10b271e9becc05d81dae56e5f"
                },
                {
                  "fixed": "8d66ba89480ff098a58d79003a505f383aa4e920"
                },
                {
                  "fixed": "a696fbbd5240b4ac9b166f7bd4c550882ff543f1"
                },
                {
                  "fixed": "9a4d7222c0955b221e38bb66d10e6bccb672c8a1"
                },
                {
                  "fixed": "ee6e20c4bc9eae542a0954a368449532383169d4"
                },
                {
                  "fixed": "781f47d641432c26c19625b2cdd7f40825097592"
                },
                {
                  "fixed": "551f445a56a11a6457550cddcf39c9ebb8bcacc6"
                },
                {
                  "fixed": "aade8abd8b868b6ffa9697aadaea28ec7f65bee6"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4.9.68"
                },
                {
                  "fixed": "4.10"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3976dd677e891c0b2c63d08028d445663539472c"
                }
              ]
            }
          ],
          "versions": [
            "v4.9.337",
            "v4.9.336",
            "v4.9.335",
            "v4.9.334",
            "v4.9.333",
            "v4.9.332",
            "v4.9.331",
            "v4.9.330",
            "v4.9.329",
            "v4.9.328",
            "v4.9.327",
            "v4.9.326",
            "v4.9.325",
            "v4.9.324",
            "v4.9.323",
            "v4.9.322",
            "v4.9.321",
            "v4.9.320",
            "v4.9.319",
            "v4.9.318",
            "v4.9.317",
            "v4.9.316",
            "v4.9.315",
            "v4.9.314",
            "v4.9.313",
            "v4.9.312",
            "v4.9.311",
            "v4.9.310",
            "v4.9.309",
            "v4.9.308",
            "v4.9.307",
            "v4.9.306",
            "v4.9.305",
            "v4.9.304",
            "v4.9.303",
            "v4.9.302",
            "v4.9.301",
            "v4.9.300",
            "v4.9.299",
            "v4.9.298",
            "v4.9.297",
            "v4.9.296",
            "v4.9.295",
            "v4.9.294",
            "v4.9.293",
            "v4.9.292",
            "v4.9.291",
            "v4.9.290",
            "v4.9.289",
            "v4.9.288",
            "v4.9.287",
            "v4.9.286",
            "v4.9.285",
            "v4.9.284",
            "v4.9.283",
            "v4.9.282",
            "v4.9.281",
            "v4.9.280",
            "v4.9.279",
            "v4.9.278",
            "v4.9.277",
            "v4.9.276",
            "v4.9.275",
            "v4.9.274",
            "v4.9.273",
            "v4.9.272",
            "v4.9.271",
            "v4.9.270",
            "v4.9.269",
            "v4.9.268",
            "v4.9.267",
            "v4.9.266",
            "v4.9.265",
            "v4.9.264",
            "v4.9.263",
            "v4.9.262",
            "v4.9.261",
            "v4.9.260",
            "v4.9.259",
            "v4.9.258",
            "v4.9.257",
            "v4.9.256",
            "v4.9.255",
            "v4.9.254",
            "v4.9.253",
            "v4.9.252",
            "v4.9.251",
            "v4.9.250",
            "v4.9.249",
            "v4.9.248",
            "v4.9.247",
            "v4.9.246",
            "v4.9.245",
            "v4.9.244",
            "v4.9.243",
            "v4.9.242",
            "v4.9.241",
            "v4.9.240",
            "v4.9.239",
            "v4.9.238",
            "v4.9.237",
            "v4.9.236",
            "v4.9.235",
            "v4.9.234",
            "v4.9.233",
            "v4.9.232",
            "v4.9.231",
            "v4.9.230",
            "v4.9.229",
            "v4.9.228",
            "v4.9.227",
            "v4.9.226",
            "v4.9.225",
            "v4.9.224",
            "v4.9.223",
            "v4.9.222",
            "v4.9.221",
            "v4.9.220",
            "v4.9.219",
            "v4.9.218",
            "v4.9.217",
            "v4.9.216",
            "v4.9.215",
            "v4.9.214",
            "v4.9.213",
            "v4.9.212",
            "v4.9.211",
            "v4.9.210",
            "v4.9.209",
            "v4.9.208",
            "v4.9.207",
            "v4.9.206",
            "v4.9.205",
            "v4.9.204",
            "v4.9.203",
            "v4.9.202",
            "v4.9.201",
            "v4.9.200",
            "v4.9.199",
            "v4.9.198",
            "v4.9.197",
            "v4.9.196",
            "v4.9.195",
            "v4.9.194",
            "v4.9.193",
            "v4.9.192",
            "v4.9.191",
            "v4.9.190",
            "v4.9.189",
            "v4.9.188",
            "v4.9.187",
            "v4.9.186",
            "v4.9.185",
            "v4.9.184",
            "v4.9.183",
            "v4.9.182",
            "v4.9.181",
            "v4.9.180",
            "v4.9.179",
            "v4.9.178",
            "v4.9.177",
            "v4.9.176",
            "v4.9.175",
            "v4.9.174",
            "v4.9.173",
            "v4.9.172",
            "v4.9.171",
            "v4.9.170",
            "v4.9.169",
            "v4.9.168",
            "v4.9.167",
            "v4.9.166",
            "v4.9.165",
            "v4.9.164",
            "v4.9.163",
            "v4.9.162",
            "v4.9.161",
            "v4.9.160",
            "v4.9.159",
            "v4.9.158",
            "v4.9.157",
            "v4.9.156",
            "v4.9.155",
            "v4.9.154",
            "v4.9.153",
            "v4.9.152",
            "v4.9.151",
            "v4.9.150",
            "v4.9.149",
            "v4.9.148",
            "v4.9.147",
            "v4.9.146",
            "v4.9.145",
            "v4.9.144",
            "v4.9.143",
            "v4.9.142",
            "v4.9.141",
            "v4.9.140",
            "v4.9.139",
            "v4.9.138",
            "v4.9.137",
            "v4.9.136",
            "v4.9.135",
            "v4.9.134",
            "v4.9.133",
            "v4.9.132",
            "v4.9.131",
            "v4.9.130",
            "v4.9.129",
            "v4.9.128",
            "v4.9.127",
            "v4.9.126",
            "v4.9.125",
            "v4.9.124",
            "v4.9.123",
            "v4.9.122",
            "v4.9.121",
            "v4.9.120",
            "v4.9.119",
            "v4.9.118",
            "v4.9.117",
            "v4.9.116",
            "v4.9.115",
            "v4.9.114",
            "v4.9.113",
            "v4.9.112",
            "v4.9.111",
            "v4.9.110",
            "v4.9.109",
            "v4.9.108",
            "v4.9.107",
            "v4.9.106",
            "v4.9.105",
            "v4.9.104",
            "v4.9.103",
            "v4.9.102",
            "v4.9.101",
            "v4.9.100",
            "v4.9.99",
            "v4.9.98",
            "v4.9.97",
            "v4.9.96",
            "v4.9.95",
            "v4.9.94",
            "v4.9.93",
            "v4.9.92",
            "v4.9.91",
            "v4.9.90",
            "v4.9.89",
            "v4.9.88",
            "v4.9.87",
            "v4.9.86",
            "v4.9.85",
            "v4.9.84",
            "v4.9.83",
            "v4.9.82",
            "v4.9.81",
            "v4.9.80",
            "v4.9.79",
            "v4.9.78",
            "v4.9.77",
            "v4.9.76",
            "v4.9.75",
            "v4.9.74",
            "v4.9.73",
            "v4.9.72",
            "v4.9.71",
            "v4.9.70",
            "v4.9.69",
            "v4.9.68"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46304.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.10.0"
                },
                {
                  "fixed": "5.10.258"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.209"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.175"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.140"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.88"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.30"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.0.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46304.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.638316950Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-784472.html",
        "https://git.kernel.org/stable/c/551f445a56a11a6457550cddcf39c9ebb8bcacc6",
        "https://git.kernel.org/stable/c/781f47d641432c26c19625b2cdd7f40825097592",
        "https://git.kernel.org/stable/c/8d66ba89480ff098a58d79003a505f383aa4e920",
        "https://git.kernel.org/stable/c/9a4d7222c0955b221e38bb66d10e6bccb672c8a1",
        "https://git.kernel.org/stable/c/a696fbbd5240b4ac9b166f7bd4c550882ff543f1",
        "https://git.kernel.org/stable/c/aade8abd8b868b6ffa9697aadaea28ec7f65bee6",
        "https://git.kernel.org/stable/c/ae5b0cad163833e10b271e9becc05d81dae56e5f",
        "https://git.kernel.org/stable/c/ee6e20c4bc9eae542a0954a368449532383169d4",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46304.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-46304",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46304.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-46304",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 511573,
  "published_at": "2026-06-08T15:46:31.747+00:00"
}