{"id":"CVE-2026-90278","aliases":["CVE-2026-90278"],"related":[],"kind":"vulnerability","state":"published","title":"md: wait for behind writes before destroying bitmap","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: wait for behind writes before destroying bitmap\n\n__md_stop() destroyed the bitmap before calling mddev_detach(). That made\nmddev_detach() skip bitmap_ops->wait_behind_writes(), because the bitmap\nwas already disconnected from mddev.\n\nThis was still safe for the legacy bitmap because bitmap_destroy() waits\nfor behind writes itself. llbitmap keeps that wait in its\n->wait_behind_writes() operation instead, while ->destroy() tears down the\nllbitmap storage. With the old ordering, RAID1 behind-write completions\ncould still run after llbitmap storage had been freed.\n\nCall mddev_detach() before md_bitmap_destroy() so the common detach path\ncan wait for behind writes while the bitmap is still alive. Only destroy\nthe bitmap after those users are gone.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: wait for behind writes before destroying bitmap\n\n__md_stop() destroyed the bitmap before calling mddev_detach(). That made\nmddev_detach() skip bitmap_ops->wait_behind_writes(), because the bitmap\nwas already disconnected from mddev.\n\nThis was still safe for the legacy bitmap because bitmap_destroy() waits\nfor behind writes itself. llbitmap keeps that wait in its\n->wait_behind_writes() operation instead, while ->destroy() tears down the\nllbitmap storage. With the old ordering, RAID1 behind-write completions\ncould still run after llbitmap storage had been freed.\n\nCall mddev_detach() before md_bitmap_destroy() so the common detach path\ncan wait for behind writes while the bitmap is still alive. Only destroy\nthe bitmap after those users are gone.","source":"cvelist"}],"published":"2026-09-17T16:08:09.992Z","modified":"2026-10-19T09:19:21.343Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5ab829f1971dc99f2aac10846c378e67fc875abc","fixed":"73881ff7a75913f919a1ce9d9571bfaab8e8588d","status":"affected"},{"type":"git","introduced":"5ab829f1971dc99f2aac10846c378e67fc875abc","fixed":"4224dccd325a9380e8edfb66aad8bb5771c94222","status":"affected"},{"type":"git","introduced":"5ab829f1971dc99f2aac10846c378e67fc875abc","fixed":"2a79365b2278f16e163e4024086105693b421601","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","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/73881ff7a75913f919a1ce9d9571bfaab8e8588d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4224dccd325a9380e8edfb66aad8bb5771c94222","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2a79365b2278f16e163e4024086105693b421601","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90278","url":"https://www.cve.org/CVERecord?id=CVE-2026-90278","licence":"CVE Terms of Use","modified":"2026-10-19T09:00:55.904Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90278","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90278","licence":"Public domain","modified":"2026-10-19T09:19:21.343Z"}],"updatedAt":"2026-11-25T22:59:39.366Z","epss":{"score":0.00198,"percentile":0.1003,"date":"2026-12-01T12:00:22.000Z"}}