{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "8815f5221e993d16674bae18e4d7363f0c036adf"
            },
            {
              "fixed": "499be56511b46ad154051e202a5e9731a35a0ac0"
            },
            {
              "fixed": "b83510f2053446bc291ded824b8042e42c1febf8"
            },
            {
              "fixed": "07fc8d43742a0e5a6f114c39999112ea165bfa51"
            },
            {
              "fixed": "24f7f97d3051299bc58f5366182662a7e31a5a24"
            },
            {
              "fixed": "5522da98153e39a9ddd0a59a41604a14114b63b4"
            },
            {
              "fixed": "61b6d1df1d6234c38a6ea7e4f58e7da035ef6ab4"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.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.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138847.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nxen-blkfront: Fix IO race during unplug\n\nDuring unplug, blkfront stops the hw queues and marks the disk as dead,\nthen later during removal calls del_gendisk(). However, IO issued after\nthe hw queues are stopped but before the call to del_gendisk() will be\nqueued but never handled. This causes del_gendisk() to hang forever\nwaiting for the queue refcount to drop to zero.\n\nThis can be reproduced by issuing IO during an artificial delay after\nstopping the hw queues.\n\nFix this by simply not stopping the hw queues directly. Marking the disk\nas dead already freezes the queue which prevents new requests being\nadded and it synchronously runs the hw queues to clear anything pending.\nIf the hw queues are stopped when calling blk_mark_disk_dead(), running\nthe hw queues is a no-op and can leave queued requests unprocessed.",
  "id": "CVE-2026-138847",
  "modified": "2026-11-30T14:45:33.069747859Z",
  "published": "2026-11-30T13:25:32.258Z",
  "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/07fc8d43742a0e5a6f114c39999112ea165bfa51"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/24f7f97d3051299bc58f5366182662a7e31a5a24"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/499be56511b46ad154051e202a5e9731a35a0ac0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5522da98153e39a9ddd0a59a41604a14114b63b4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/61b6d1df1d6234c38a6ea7e4f58e7da035ef6ab4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8815f5221e993d16674bae18e4d7363f0c036adf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b83510f2053446bc291ded824b8042e42c1febf8"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138847.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138847"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "xen-blkfront: Fix IO race during unplug"
}