THREATINT

We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Fathom (Privacy friendly web analytics)
Zendesk (Helpdesk and Chat)

Ok

Home | EN
Support
CVE
PUBLISHED

CVE-2024-26755

md: Don't suspend the array for interrupted reshape

AssignerLinux
Reserved2024-02-19
Published2024-04-03
Updated2024-06-04

Description

In the Linux kernel, the following vulnerability has been resolved: md: Don't suspend the array for interrupted reshape md_start_sync() 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(remove_and_add_spares won't be called from md_choose_sync_action 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 md_start_sync() 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.

Product status

Default status
unaffected

bc08041b32ab before 60d6130d0ac1
affected

bc08041b32ab before 9e46c70e829b
affected

Default status
affected

6.7
affected

Any version before 6.7
unaffected

6.7.7
unaffected

6.8
unaffected

References

https://git.kernel.org/stable/c/60d6130d0ac1d883ed93c2a1e10aadb60967fd48

https://git.kernel.org/stable/c/9e46c70e829bddc24e04f963471e9983a11598b7

cve.org CVE-2024-26755

nvd.nist.gov CVE-2024-26755

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-26755
© Copyright 2024 THREATINT. Made in Cyprus with +