CVE-2026-46095: md/md-llbitmap: raise barrier before state machine transition
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
md/md-llbitmap: raise barrier before state machine transition
Move the barrier raise operation before calling llbitmap_state_machine() in both llbitmap_start_write() and llbitmap_start_discard(). This ensures the barrier is in place before any state transitions occur, preventing potential race conditions where the state machine could complete before the barrier is properly raised.
The Linux kernel CVE team has assigned CVE-2026-46095 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit 5ab829f1971dc99f2aac10846c378e67fc875abc and fixed in 6.18.27 with commit 9142f00a9287ca38152717e3e88a033a27774e7f Issue introduced in 6.18 with commit 5ab829f1971dc99f2aac10846c378e67fc875abc and fixed in 7.0.4 with commit 9701d51dd378380ba05293fa391e8ba01065ae8d Issue introduced in 6.18 with commit 5ab829f1971dc99f2aac10846c378e67fc875abc and fixed in 7.1-rc1 with commit ef4ca3d4bf09716cff9ba00eb0351deadc8417ab
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46095
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/md/md-llbitmap.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/9142f00a9287ca38152717e3e88a033a27774e7f https://git.kernel.org/stable/c/9701d51dd378380ba05293fa391e8ba01065ae8d https://git.kernel.org/stable/c/ef4ca3d4bf09716cff9ba00eb0351deadc8417ab