| From bippy-7c5fe7eed585 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-45023: md/raid1: Fix data corruption for degraded array with slow disk |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| md/raid1: Fix data corruption for degraded array with slow disk |
| |
| read_balance() will avoid reading from slow disks as much as possible, |
| however, if valid data only lands in slow disks, and a new normal disk |
| is still in recovery, unrecovered data can be read: |
| |
| raid1_read_request |
| read_balance |
| raid1_should_read_first |
| -> return false |
| choose_best_rdev |
| -> normal disk is not recovered, return -1 |
| choose_bb_rdev |
| -> missing the checking of recovery, return the normal disk |
| -> read unrecovered data |
| |
| Root cause is that the checking of recovery is missing in |
| choose_bb_rdev(). Hence add such checking to fix the problem. |
| |
| Also fix similar problem in choose_slow_rdev(). |
| |
| The Linux kernel CVE team has assigned CVE-2024-45023 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 6.9 with commit dfa8ecd167c1753d4fc24a517e1d79c603183c94 and fixed in 6.10.7 with commit 2febf5fdbf5d9a52ddc3e986971c8609b1582d67 |
| Issue introduced in 6.9 with commit dfa8ecd167c1753d4fc24a517e1d79c603183c94 and fixed in 6.11 with commit c916ca35308d3187c9928664f9be249b22a3a701 |
| |
| 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-2024-45023 |
| 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/raid1.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/2febf5fdbf5d9a52ddc3e986971c8609b1582d67 |
| https://git.kernel.org/stable/c/c916ca35308d3187c9928664f9be249b22a3a701 |