# CVE-2026-90278: md: wait for behind writes before destroying bitmap

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-09-17T16:08:09.992Z
- Modified: 2026-10-19T09:19:21.343Z
- Assigned by: Linux

## Description

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

md: wait for behind writes before destroying bitmap

__md_stop() destroyed the bitmap before calling mddev_detach(). That made
mddev_detach() skip bitmap_ops->wait_behind_writes(), because the bitmap
was already disconnected from mddev.

This was still safe for the legacy bitmap because bitmap_destroy() waits
for behind writes itself. llbitmap keeps that wait in its
->wait_behind_writes() operation instead, while ->destroy() tears down the
llbitmap storage. With the old ordering, RAID1 behind-write completions
could still run after llbitmap storage had been freed.

Call mddev_detach() before md_bitmap_destroy() so the common detach path
can wait for behind writes while the bitmap is still alive. Only destroy
the bitmap after those users are gone.

(As written by CVE List.)

## Affected

- Linux Linux: from 5ab829f1971dc99f2aac10846c378e67fc875abc before 73881ff7a75913f919a1ce9d9571bfaab8e8588d; from 5ab829f1971dc99f2aac10846c378e67fc875abc before 4224dccd325a9380e8edfb66aad8bb5771c94222; from 5ab829f1971dc99f2aac10846c378e67fc875abc before 2a79365b2278f16e163e4024086105693b421601; 6.18 (not affected: before 6.18; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/73881ff7a75913f919a1ce9d9571bfaab8e8588d>
- <https://git.kernel.org/stable/c/4224dccd325a9380e8edfb66aad8bb5771c94222>
- <https://git.kernel.org/stable/c/2a79365b2278f16e163e4024086105693b421601>

## Sources

- CVE List: [CVE-2026-90278](https://www.cve.org/CVERecord?id=CVE-2026-90278), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-90278](https://nvd.nist.gov/vuln/detail/CVE-2026-90278), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-90278 · Whole record: https://cve.day/CVE-2026-90278.json · Rebuilt by cve.day 2026-11-25T22:59:39.366Z
