{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "782373ba27660ba7d330208cf5509ece6feb4545"
            },
            {
              "fixed": "0af6a8aede3121bc9662111665294731daddb13a"
            },
            {
              "fixed": "2eeeaa9c1ff0c429096acc2947c296db6a56f96d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4f946479b326a3cbb193f2b8368aed9269514c35"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "975cb1d2121511584695d0e47fdb90e6782da007"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "e15cebc1b21856944b387f4abd03b66bd3d4f027"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.1.118"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.6.62"
            },
            {
              "fixed": "6.7"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.11.9"
            },
            {
              "fixed": "6.12"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.12.0"
            },
            {
              "fixed": "7.3.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99571.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-tcp: Validate the queue state under the queue lock in the address attribute\n\nReading the \"address\" sysfs attribute calls kernel_getsockname() on the\nadmin queue socket, which can race with the queue teardown during\nconnection error recovery: a reader can observe NVME_TCP_Q_LIVE set,\nthen block on the queue lock while nvme_tcp_free_queue() releases the\nsocket and clears queue-\u003esock without holding the lock.  Once the\nreader acquires the lock it dereferences the NULL socket pointer.\n\nCommit 76d54bf20cdc (\"nvme-tcp: don't access released socket during\nerror recovery\") had the queue liveness check inside the lock.\nCommit 782373ba2766 (\"nvme: tcp: avoid race between queue_lock lock\nand destroy\") moved it back out because the lock itself is destroyed\nin nvme_tcp_free_queue(), so a reader arriving late trips\nmutex_destroy().\n\nCheck the queue liveness inside the queue lock, and clear queue-\u003esock\nunder the same lock.  The teardown clears NVME_TCP_Q_LIVE under the\nlock well before the socket is released, so a reader either sees the\nbit cleared or a socket that cannot be released while it holds the\nlock.  To also close the lock lifetime race, the queue locks are now\nowned by the controller: they are initialized with the queue array and\nonly destroyed when the controller is freed, which cannot happen while\na sysfs attribute read is still in progress.  The queue count is\ncomputed by the NVME_TCP_OPT_NR_QUEUES() macro from the original\nconnect options for both initialization and destruction, as reconnects\nmay shrink ctrl-\u003equeue_count.",
  "id": "CVE-2026-99571",
  "modified": "2026-11-20T06:45:51.584473244Z",
  "published": "2026-11-20T05:49:05.894Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0af6a8aede3121bc9662111665294731daddb13a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2eeeaa9c1ff0c429096acc2947c296db6a56f96d"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99571.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99571"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "nvme-tcp: Validate the queue state under the queue lock in the address attribute"
}