Description
In the Linux kernel, the following vulnerability has been resolved: md/md-llbitmap: skip reading rdevs that are not in_sync When reading bitmap pages from member disks, the code iterates through all rdevs and attempts to read from the first available one. However, it only checks for raid_disk assignment and Faulty flag, missing the In_sync flag check. This can cause bitmap data to be read from spare disks that are still being rebuilt and don't have valid bitmap information yet. Reading stale or uninitialized bitmap data from such disks can lead to incorrect dirty bit tracking, potentially causing data corruption during recovery or normal operation. Add the In_sync flag check to ensure bitmap pages are only read from fully synchronized member disks that have valid bitmap data.
Product status
5ab829f1971dc99f2aac10846c378e67fc875abc (git) before 98623c7e2a51eab1833c8628d33fa9c6ef3ce325
5ab829f1971dc99f2aac10846c378e67fc875abc (git) before 3115fa2f62970d98f2a639145fb8e2767db8bbf9
5ab829f1971dc99f2aac10846c378e67fc875abc (git) before 7701e68b5072faa03a8f30b4081dc16df9092381
6.18
Any version before 6.18
6.18.27 (semver)
7.0.4 (semver)
7.1-rc1 (original_commit_for_fix)
References
git.kernel.org/...c/98623c7e2a51eab1833c8628d33fa9c6ef3ce325
git.kernel.org/...c/3115fa2f62970d98f2a639145fb8e2767db8bbf9
git.kernel.org/...c/7701e68b5072faa03a8f30b4081dc16df9092381