CVE-2024-26755

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-26755
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-26755.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-26755
Downstream
Published
2024-04-03T17:00:39Z
Modified
2025-10-16T16:52:24.526064Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
md: Don't suspend the array for interrupted reshape
Details

In the Linux kernel, the following vulnerability has been resolved:

md: Don't suspend the array for interrupted reshape

mdstartsync() will suspend the array if there are spares that can be added or removed from conf, however, if reshape is still in progress, this won't happen at all or data will be corrupted(removeandaddspares won't be called from mdchoosesyncaction for reshape), hence there is no need to suspend the array if reshape is not done yet.

Meanwhile, there is a potential deadlock for raid456:

1) reshape is interrupted;

2) set one of the disk WantReplacement, and add a new disk to the array, however, recovery won't start until the reshape is finished;

3) then issue an IO across reshpae position, this IO will wait for reshape to make progress;

4) continue to reshape, then mdstartsync() found there is a spare disk that can be added to conf, mddev_suspend() is called;

Step 4 and step 3 is waiting for each other, deadlock triggered. Noted this problem is found by code review, and it's not reporduced yet.

Fix this porblem by don't suspend the array for interrupted reshape, this is safe because conf won't be changed until reshape is done.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bc08041b32abe6c9824f78735bac22018eabfc06
Fixed
60d6130d0ac1d883ed93c2a1e10aadb60967fd48
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bc08041b32abe6c9824f78735bac22018eabfc06
Fixed
9e46c70e829bddc24e04f963471e9983a11598b7

Affected versions

v6.*

v6.6
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.7.1
v6.7.2
v6.7.3
v6.7.4
v6.7.5
v6.7.6
v6.8-rc1

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.7