{"id":"CVE-2026-90326","aliases":["CVE-2026-90326"],"related":[],"kind":"vulnerability","state":"published","title":"blk-cgroup: fix race between policy activation and blkg destruction","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-cgroup: fix race between policy activation and blkg destruction\n\nWhen switching an IO scheduler on a block device, blkcg_activate_policy()\nallocates blkg_policy_data (pd) for all blkgs attached to the queue.\nHowever, blkcg_activate_policy() may race with concurrent blkcg deletion,\nleading to use-after-free and memory leak issues.\n\nThe use-after-free occurs in the following race:\n\nT1 (blkcg_activate_policy):\n  - Successfully allocates pd for blkg1 (loop0->queue, blkcgA)\n  - Fails to allocate pd for blkg2 (loop0->queue, blkcgB)\n  - Enters the enomem rollback path to release blkg1 resources\n\nT2 (blkcg deletion):\n  - blkcgA is deleted concurrently\n  - blkg1 is freed via blkg_free_workfn()\n  - blkg1->pd is freed\n\nT1 (continued):\n  - Rollback path accesses blkg1->pd->online after pd is freed\n  - Triggers use-after-free\n\nIn addition, blkg_free_workfn() frees pd before removing the blkg from\nq->blkg_list. This allows blkcg_activate_policy() to allocate a new pd\nfor a blkg that is being destroyed, leaving the newly allocated pd\nunreachable when the blkg is finally freed.\n\nFix these races by extending blkcg_mutex coverage to serialize\nblkcg_activate_policy() rollback and blkg destruction, ensuring pd\nlifecycle is synchronized with blkg list visibility.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-cgroup: fix race between policy activation and blkg destruction\n\nWhen switching an IO scheduler on a block device, blkcg_activate_policy()\nallocates blkg_policy_data (pd) for all blkgs attached to the queue.\nHowever, blkcg_activate_policy() may race with concurrent blkcg deletion,\nleading to use-after-free and memory leak issues.\n\nThe use-after-free occurs in the following race:\n\nT1 (blkcg_activate_policy):\n  - Successfully allocates pd for blkg1 (loop0->queue, blkcgA)\n  - Fails to allocate pd for blkg2 (loop0->queue, blkcgB)\n  - Enters the enomem rollback path to release blkg1 resources\n\nT2 (blkcg deletion):\n  - blkcgA is deleted concurrently\n  - blkg1 is freed via blkg_free_workfn()\n  - blkg1->pd is freed\n\nT1 (continued):\n  - Rollback path accesses blkg1->pd->online after pd is freed\n  - Triggers use-after-free\n\nIn addition, blkg_free_workfn() frees pd before removing the blkg from\nq->blkg_list. This allows blkcg_activate_policy() to allocate a new pd\nfor a blkg that is being destroyed, leaving the newly allocated pd\nunreachable when the blkg is finally freed.\n\nFix these races by extending blkcg_mutex coverage to serialize\nblkcg_activate_policy() rollback and blkg destruction, ensuring pd\nlifecycle is synchronized with blkg list visibility.","source":"cvelist"}],"published":"2026-09-17T16:08:41.374Z","modified":"2026-10-21T13:20:50.293Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"81c1188905f88b77743d1fdeeedfc8cb7b67787d","fixed":"b5dae1cd0d8368b4338430ff93403df67f0b8bcc","status":"affected"},{"type":"git","introduced":"bfe46d2efe46c5c952f982e2ca94fe2ec5e58e2a","fixed":"083b58373463a6e5ee60ecb135269348f68ad7df","status":"affected"},{"type":"git","introduced":"f1c006f1c6850c14040f8337753a63119bba39b9","fixed":"17c18a0df70c2b89ff7fcd74622f1540e98d00fd","status":"affected"},{"type":"git","introduced":"f1c006f1c6850c14040f8337753a63119bba39b9","fixed":"91062e3a9ed251726df4e20ff9a1113f1c8ded59","status":"affected"},{"type":"git","introduced":"f1c006f1c6850c14040f8337753a63119bba39b9","fixed":"ac34e655dffa74349d885a43d098115336f53842","status":"affected"},{"type":"git","introduced":"f1c006f1c6850c14040f8337753a63119bba39b9","fixed":"2cf9f50a38c1839e549a08e22aa35e8d69e2c8fd","status":"affected"},{"type":"git","introduced":"f1c006f1c6850c14040f8337753a63119bba39b9","fixed":"5313d4d41739b0cb63000747c97bb1217ac45f3e","status":"affected"},{"type":"semver","introduced":"6.1.16","fixed":"6.1.17","status":"affected"},{"type":"semver","introduced":"6.2.3","fixed":"6.2.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.3","status":"unaffected"},{"type":"semver","introduced":"6.1.17","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.4","lastAffected":"6.2.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b5dae1cd0d8368b4338430ff93403df67f0b8bcc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/083b58373463a6e5ee60ecb135269348f68ad7df","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/17c18a0df70c2b89ff7fcd74622f1540e98d00fd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/91062e3a9ed251726df4e20ff9a1113f1c8ded59","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac34e655dffa74349d885a43d098115336f53842","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2cf9f50a38c1839e549a08e22aa35e8d69e2c8fd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5313d4d41739b0cb63000747c97bb1217ac45f3e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90326","url":"https://www.cve.org/CVERecord?id=CVE-2026-90326","licence":"CVE Terms of Use","modified":"2026-10-21T12:51:00.266Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90326","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90326","licence":"Public domain","modified":"2026-10-21T13:20:50.293Z"}],"updatedAt":"2026-11-25T22:59:39.383Z","epss":{"score":0.00164,"percentile":0.05888,"date":"2026-12-01T12:00:22.000Z"}}