# CVE-2024-45023: md/raid1: Fix data corruption for degraded array with slow disk

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2024-09-11T15:13:56.451Z
- Modified: 2026-08-05T11:37:48.080Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from dfa8ecd167c1753d4fc24a517e1d79c603183c94 before 2febf5fdbf5d9a52ddc3e986971c8609b1582d67; from dfa8ecd167c1753d4fc24a517e1d79c603183c94 before c916ca35308d3187c9928664f9be249b22a3a701; 6.9 (not affected: before 6.9; from 6.10.7 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.9 before 6.10.7; 6.11

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/2febf5fdbf5d9a52ddc3e986971c8609b1582d67> (patch)
- <https://git.kernel.org/stable/c/c916ca35308d3187c9928664f9be249b22a3a701> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-45023 · Whole record: https://cve.day/CVE-2024-45023.json · Rebuilt by cve.day 2026-11-25T22:58:45.312Z
