GHSA-66MQ-6C56-72P2

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

blk-mq: clear stale inactive flag on hctx reuse

When the last CPU mapped to an hctx goes offline, blk_mq_hctx_notify_offline() sets BLK_MQ_S_INACTIVE. Updating the number of hardware queues exits every hctx and parks it on q->unused_hctx_list. A later update can reuse a parked hctx through blk_mq_alloc_and_init_hctx(), at any queue index, and nothing clears the flag.

If the reused hctx is mapped to an online CPU, blk_mq_get_tag() keeps returning BLK_MQ_NO_TAG for it. __blk_mq_alloc_requests() sleeps and retries, expecting CPU hotplug to move the task to another CPU, so a task that stays on that CPU never gets a tag. Onlining the original CPU doesn't recover it either, because blk_mq_hctx_notify_online() only clears the flag on the hctx that CPU now maps to.

Clear BLK_MQ_S_INACTIVE in blk_mq_init_hctx() so a reused hctx starts like a freshly allocated one. A reused hctx has no cpuhp instances at that point, so the offline callback can't set the flag again before blk_mq_add_hw_queues_cpuhp() registers it. Clearing the flag in blk_mq_exit_hctx() is not enough, because a parked hctx keeps its cpuhp instances until blk_mq_remove_hw_queues_cpuhp(). Preserve the other hctx state flags.

Reproduced with null_blk on v7.3 in a four-vCPU arm64 QEMU/KVM guest:

modprobe null_blk nr_devices=0 mkdir /sys/kernel/config/nullb/nullb0 cd /sys/kernel/config/nullb/nullb0 echo 4 > submit_queues; echo 1 > memory_backed; echo 16 > size echo 1 > power echo 0 > /sys/devices/system/cpu/cpu3/online echo 2 > submit_queues echo 4 > submit_queues

Offlining CPU3 marks hctx3 inactive. After the two updates it comes back as hctx1 and is mapped to CPU0:

# cat /sys/block/nullb0/mq/1/cpu_list 0 # cat /sys/kernel/debug/block/nullb0/hctx1/state INACTIVE

A 4K O_DIRECT read pinned to CPU0 hangs in D state, while the same read on CPU1 and CPU2 completes. Onlining CPU3 again leaves hctx1 inactive and the CPU0 read still hangs. With this change hctx1 state is empty and the reads on CPU0, CPU1 and CPU2 complete, before and after onlining CPU3.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99987"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:20:41Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: clear stale inactive flag on hctx reuse\n\nWhen the last CPU mapped to an hctx goes offline,\nblk_mq_hctx_notify_offline() sets BLK_MQ_S_INACTIVE. Updating the\nnumber of hardware queues exits every hctx and parks it on\nq-\u003eunused_hctx_list. A later update can reuse a parked hctx through\nblk_mq_alloc_and_init_hctx(), at any queue index, and nothing clears\nthe flag.\n\nIf the reused hctx is mapped to an online CPU, blk_mq_get_tag() keeps\nreturning BLK_MQ_NO_TAG for it. __blk_mq_alloc_requests() sleeps and\nretries, expecting CPU hotplug to move the task to another CPU, so a\ntask that stays on that CPU never gets a tag. Onlining the original CPU\ndoesn\u0027t recover it either, because blk_mq_hctx_notify_online() only\nclears the flag on the hctx that CPU now maps to.\n\nClear BLK_MQ_S_INACTIVE in blk_mq_init_hctx() so a reused hctx starts\nlike a freshly allocated one. A reused hctx has no cpuhp instances at\nthat point, so the offline callback can\u0027t set the flag again before\nblk_mq_add_hw_queues_cpuhp() registers it. Clearing the flag in\nblk_mq_exit_hctx() is not enough, because a parked hctx keeps its cpuhp\ninstances until blk_mq_remove_hw_queues_cpuhp(). Preserve the other\nhctx state flags.\n\nReproduced with null_blk on v7.3 in a four-vCPU arm64 QEMU/KVM guest:\n\n  modprobe null_blk nr_devices=0\n  mkdir /sys/kernel/config/nullb/nullb0\n  cd /sys/kernel/config/nullb/nullb0\n  echo 4 \u003e submit_queues; echo 1 \u003e memory_backed; echo 16 \u003e size\n  echo 1 \u003e power\n  echo 0 \u003e /sys/devices/system/cpu/cpu3/online\n  echo 2 \u003e submit_queues\n  echo 4 \u003e submit_queues\n\nOfflining CPU3 marks hctx3 inactive. After the two updates it comes back\nas hctx1 and is mapped to CPU0:\n\n  # cat /sys/block/nullb0/mq/1/cpu_list\n  0\n  # cat /sys/kernel/debug/block/nullb0/hctx1/state\n  INACTIVE\n\nA 4K O_DIRECT read pinned to CPU0 hangs in D state, while the same read\non CPU1 and CPU2 completes. Onlining CPU3 again leaves hctx1 inactive\nand the CPU0 read still hangs. With this change hctx1 state is empty and\nthe reads on CPU0, CPU1 and CPU2 complete, before and after onlining\nCPU3.",
  "id": "GHSA-66mq-6c56-72p2",
  "modified": "2026-11-30T15:32:52Z",
  "published": "2026-11-30T15:32:52Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99987"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/05a9d64dc21d09725324d82a40b72fac6cb62c27"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1c2c129c4e7fc2b70c81554415a1d8826563a247"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/31bd426a7d2b6f6a13ccef994fcc3db4c3ea460b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/70e33cc6ae56d93818464e0c01767d7683c8ae8e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7cb113fcd05527538697bcd08accf83ccfcc35e3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8470ae73b0156fbe724dc1c0c4400cba4091c485"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/afc1de47a7ab607ae6403c4bfda36b0bf3cd342f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e129272c096f2dedfa47c6ba242882da01579eac"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



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.