{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5651cd3c43368873d0787b52acb2e0e08f3c5da4"
            },
            {
              "fixed": "94498c0363440da72de04cd8a3bff6465f4f4886"
            },
            {
              "fixed": "8bf33026231edefd87bbedbf21f4cf57924732ee"
            },
            {
              "fixed": "7cd360c2fb439e60c777c00f2d49e6bbecbe83b0"
            },
            {
              "fixed": "2cde8f0ce90d3b78e74c6aed54c22374505552d2"
            },
            {
              "fixed": "0402ae823759c4dc695596f00a039dfd078b2e37"
            },
            {
              "fixed": "9588769af5fc8ac12290d48ce1014a78916681fc"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "d8a303bd8452396a928f5ca2c7957167b2d185f0"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "3111e132f46e64440878d7b855fc1709d20ff7d8"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.1.13"
            },
            {
              "fixed": "5.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.2.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139224.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-fabrics: reset io_queues before computing the queue mapping\n\nnvmf_set_io_queues only sets the io_queues entries of the queue types it\nhands out, but the array is reused on every reconnect.  When the\ncontroller grants fewer queues on a reconnect, stale entries survive and\nnvmf_map_queues maps CPUs to hardware contexts that don't exist anymore,\nwhich crashes blk_mq_map_swqueue with a NULL pointer dereference.  E.g.\nwith nr_io_queues=8, nr_write_queues=8 and nr_poll_queues=8, 24 queues\nare mapped 8/8/8 (default/read/poll).  If the controller grants only 16\nqueues on the reconnect, the poll map still starts at hardware context\n16.\n\nClear the array before computing the new mapping.",
  "id": "CVE-2026-139224",
  "modified": "2026-12-01T20:46:09.180644825Z",
  "published": "2026-11-30T13:32:45.773Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0402ae823759c4dc695596f00a039dfd078b2e37"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2cde8f0ce90d3b78e74c6aed54c22374505552d2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7cd360c2fb439e60c777c00f2d49e6bbecbe83b0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8bf33026231edefd87bbedbf21f4cf57924732ee"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/94498c0363440da72de04cd8a3bff6465f4f4886"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9588769af5fc8ac12290d48ce1014a78916681fc"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139224.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139224"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "nvme-fabrics: reset io_queues before computing the queue mapping"
}