CVE-2024-45023 md/raid1: Fix data corruption for degraded array with slow disk
Attackers can read unrecovered data from degraded RAID1 arrays with slow disks, leading to data corruption and integrity issues.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-45023?
CVE-2024-45023 is a high-severity vulnerability in Linux kernel, published on 11 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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().
Weakness: CWE-787
Which versions are affected by CVE-2024-45023?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-45023?
Apply the vendor's patch.
Is CVE-2024-45023 being exploited?
There is no known exploitation of CVE-2024-45023 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-45023, DEBIAN-CVE-2024-45023, GHSA-p5xc-g9x9-74jh, UBUNTU-CVE-2024-45023.