CVE-2026-139120 (GCVE-0-2026-139120)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:31 – Updated: 2026-12-01 05:41
VLAI
Title
blk-mq: set up a queue under tag_list_lock
Summary
In the Linux kernel, the following vulnerability has been resolved: blk-mq: set up a queue under tag_list_lock blk_mq_init_allocated_queue() only takes tag_list_lock at the end, when it adds the queue to the set. Before that it sizes the queue by set->nr_hw_queues, hands out set->tags[], maps by set->map[], and blk_mq_map_swqueue() frees tags of the set. An update clearing the maps at that time makes the new queue free tags that all the other queues share. An NVMe controller reset during a namespace scan does exactly that. Take the lock before the first look at the set. An update can be part of error handling, so the allocations under the lock must not wait for IO: memalloc_noio_save(), as in add_disk_fwnode().
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 868f2f0b72068a097508b6e8870a8950fd8eb7ef , < e7e089b61901be0f4bac6b1d8c8f8e25cf178280 (git)
Affected: 868f2f0b72068a097508b6e8870a8950fd8eb7ef , < 515e211124113b4faecf3b0cb20087965286ee0c (git)
Affected: 868f2f0b72068a097508b6e8870a8950fd8eb7ef , < 4fcc499ea9bc31b02393904a1903e794d146f5f7 (git)
guessed Create a notification for this product.
Linux Linux Affected: 4.6
Unaffected: 0 , < 4.6 (semver)
Unaffected: 6.18.65 , ≤ 6.18.* (semver)
Unaffected: 7.3.6 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "block/blk-mq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "e7e089b61901be0f4bac6b1d8c8f8e25cf178280",
              "status": "affected",
              "version": "868f2f0b72068a097508b6e8870a8950fd8eb7ef",
              "versionType": "git"
            },
            {
              "lessThan": "515e211124113b4faecf3b0cb20087965286ee0c",
              "status": "affected",
              "version": "868f2f0b72068a097508b6e8870a8950fd8eb7ef",
              "versionType": "git"
            },
            {
              "lessThan": "4fcc499ea9bc31b02393904a1903e794d146f5f7",
              "status": "affected",
              "version": "868f2f0b72068a097508b6e8870a8950fd8eb7ef",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "block/blk-mq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.6"
            },
            {
              "lessThan": "4.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.65",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.6",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: set up a queue under tag_list_lock\n\nblk_mq_init_allocated_queue() only takes tag_list_lock at the end, when\nit adds the queue to the set. Before that it sizes the queue by\nset-\u003enr_hw_queues, hands out set-\u003etags[], maps by set-\u003emap[], and\nblk_mq_map_swqueue() frees tags of the set. An update clearing the maps\nat that time makes the new queue free tags that all the other queues\nshare. An NVMe controller reset during a namespace scan does exactly\nthat.\n\nTake the lock before the first look at the set. An update can be part of\nerror handling, so the allocations under the lock must not wait for IO:\nmemalloc_noio_save(), as in add_disk_fwnode()."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - On an nvme-tcp host, a hostile or on-path target sends a Namespace-Changed AEN and Identify data, driving nvme_scan_work\u2192nvme_scan_ns_async\u2192nvme_alloc_ns\u2192blk_mq_alloc_disk\u2192blk_mq_init_allocated_queue(). It also sends a Persistent-Internal-Error AEN and a Set Features Number-of-Queues result, driving nvme_reset_ctrl\u2192nvme_tcp_configure_io_queues\u2192blk_mq_update_nr_hw_queues on the same ctrl-\u003etagset over routable TCP.\nAC:L - The target controls both sides: it times the scan\u0027s Identify completions against the I/O-queue Connect completions of the immediate reset. nvme_stop_ctrl() never flushes scan_work, and nr_maps=2 makes every update clear mq_map. The target can also change the queue and namespace counts to widen the window, and missed attempts are harmless and repeatable.\nPR:N - The attacker is the NVMe/TCP target or an on-path spoofer and needs no account or capability on the host. AENs, Identify data and Set Features results are accepted on the established fabrics session, and TLS/DH-HMAC-CHAP are optional. The root-only local triggers (reset_controller, NVME_IOCTL_RESET) are not needed.\nUI:N - scan_work, the reset_work reconnect and the parallel nvme_scan_ns_async namespace allocation all run from nvme_wq/nvme_reset_wq kernel workers in response to target-sent AEN completions. No host user action is needed once the fabrics controller is connected.\nS:U - The freed blk_mq_tags and request pages, and the out-of-bounds hctx pointer, are all host kernel heap memory in the block layer. No VM, IOMMU or other security-authority boundary is crossed.\nC:H - With the map cleared, the new queue\u0027s blk_mq_map_swqueue() calls __blk_mq_free_map_and_rqs() on set-\u003etags[i] that other namespaces\u0027 hctx-\u003etags still use. Their later I/O reads the freed sbitmap, static_rqs and request pages, a sprayable UAF read. The grow case also reads queue_hw_ctx[] past its kcalloc\u0027d end.\nI:H - blk_mq_get_tag() and blk_mq_rq_ctx_init() then write into freed blk_mq_tags and request pages. With a grown queue count, queue_hctx() returns an out-of-bounds pointer that blk_mq_map_swqueue() writes through (cpumask_set_cpu, hctx-\u003ectxs[nr_ctx++]=ctx). This memory corruption is usable for control-flow hijack.\nA:H - Even without exploitation, I/O on a stale hctx-\u003etags or through the wild hctx pointer oopses the host in blk_mq_get_tag or blk_mq_map_swqueue. That takes down every namespace sharing the controller\u0027s tag set, and the target can repeat the AEN and reset cycle at will."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:41:19.820Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/e7e089b61901be0f4bac6b1d8c8f8e25cf178280"
        },
        {
          "url": "https://git.kernel.org/stable/c/515e211124113b4faecf3b0cb20087965286ee0c"
        },
        {
          "url": "https://git.kernel.org/stable/c/4fcc499ea9bc31b02393904a1903e794d146f5f7"
        }
      ],
      "title": "blk-mq: set up a queue under tag_list_lock",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-139120",
    "datePublished": "2026-11-30T13:31:46.018Z",
    "dateReserved": "2026-11-30T13:22:15.915Z",
    "dateUpdated": "2026-12-01T05:41:19.820Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-139120",
      "date": "2026-12-04",
      "epss": "0.01223",
      "percentile": "0.69758"
    },
    "microsoft_vex": {
      "current_release_date": "2026-12-02T01:13:38.000Z",
      "cve": "CVE-2026-139120",
      "id": "msrc_CVE-2026-139120",
      "initial_release_date": "2026-12-01T01:16:21.000Z",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "blk-mq: set up a queue under tag_list_lock",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-139120.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "block/blk-mq.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "e7e089b61901be0f4bac6b1d8c8f8e25cf178280",
                    "status": "affected",
                    "version": "868f2f0b72068a097508b6e8870a8950fd8eb7ef",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "515e211124113b4faecf3b0cb20087965286ee0c",
                    "status": "affected",
                    "version": "868f2f0b72068a097508b6e8870a8950fd8eb7ef",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4fcc499ea9bc31b02393904a1903e794d146f5f7",
                    "status": "affected",
                    "version": "868f2f0b72068a097508b6e8870a8950fd8eb7ef",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "block/blk-mq.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "4.6"
                  },
                  {
                    "lessThan": "4.6",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.65",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.6",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: set up a queue under tag_list_lock\n\nblk_mq_init_allocated_queue() only takes tag_list_lock at the end, when\nit adds the queue to the set. Before that it sizes the queue by\nset-\u003enr_hw_queues, hands out set-\u003etags[], maps by set-\u003emap[], and\nblk_mq_map_swqueue() frees tags of the set. An update clearing the maps\nat that time makes the new queue free tags that all the other queues\nshare. An NVMe controller reset during a namespace scan does exactly\nthat.\n\nTake the lock before the first look at the set. An update can be part of\nerror handling, so the allocations under the lock must not wait for IO:\nmemalloc_noio_save(), as in add_disk_fwnode()."
          }
        ],
        "id": "CVE-2026-139120",
        "lastModified": "2026-12-01T06:17:35.810",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 9.8,
                "baseSeverity": "CRITICAL",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 3.9,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:18:23.227",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4fcc499ea9bc31b02393904a1903e794d146f5f7"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/515e211124113b4faecf3b0cb20087965286ee0c"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e7e089b61901be0f4bac6b1d8c8f8e25cf178280"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-12-03T20:44:06+00:00",
      "cve": "CVE-2026-139120",
      "id": "CVE-2026-139120",
      "initial_release_date": "2026-11-30T13:31:46.018000+00:00",
      "product_status:known_affected": "267",
      "product_status:known_not_affected": "14",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: arbitrary code execution via race condition in blk-mq queue initialization",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-139120.json",
      "version": "3"
    }
  }
}



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.