# CVE-2024-26756: md: Don't register sync_thread for reshape directly

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-04-03T17:00:40.814Z
- Modified: 2026-06-17T07:18:15.927Z
- Weaknesses: CWE-459
- 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: Don't register sync_thread for reshape directly

Currently, if reshape is interrupted, then reassemble the array will
register sync_thread directly from pers->run(), in this case
'MD_RECOVERY_RUNNING' is set directly, however, there is no guarantee
that md_do_sync() will be executed, hence stop_sync_thread() will hang
because 'MD_RECOVERY_RUNNING' can't be cleared.

Last patch make sure that md_do_sync() will set MD_RECOVERY_DONE,
however, following hang can still be triggered by dm-raid test
shell/lvconvert-raid-reshape.sh occasionally:

[root@fedora ~]# cat /proc/1982/stack
[<0>] stop_sync_thread+0x1ab/0x270 [md_mod]
[<0>] md_frozen_sync_thread+0x5c/0xa0 [md_mod]
[<0>] raid_presuspend+0x1e/0x70 [dm_raid]
[<0>] dm_table_presuspend_targets+0x40/0xb0 [dm_mod]
[<0>] __dm_destroy+0x2a5/0x310 [dm_mod]
[<0>] dm_destroy+0x16/0x30 [dm_mod]
[<0>] dev_remove+0x165/0x290 [dm_mod]
[<0>] ctl_ioctl+0x4bb/0x7b0 [dm_mod]
[<0>] dm_ctl_ioctl+0x11/0x20 [dm_mod]
[<0>] vfs_ioctl+0x21/0x60
[<0>] __x64_sys_ioctl+0xb9/0xe0
[<0>] do_syscall_64+0xc6/0x230
[<0>] entry_SYSCALL_64_after_hwframe+0x6c/0x74

Meanwhile mddev->recovery is:
MD_RECOVERY_RUNNING |
MD_RECOVERY_INTR |
MD_RECOVERY_RESHAPE |
MD_RECOVERY_FROZEN

Fix this problem by remove the code to register sync_thread directly
from raid10 and raid5. And let md_check_recovery() to register
sync_thread.

(As written by CVE List.)

## Affected

- Linux Linux: from f67055780caac6a99f43834795c43acf99eba6a6 before 13b520fb62b772e408f9b79c5fe18ad414e90417; from f67055780caac6a99f43834795c43acf99eba6a6 before ad39c08186f8a0f221337985036ba86731d6aafe; 2.6.17 (not affected: before 2.6.17; from 6.7.7 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 2.6.17 before 6.7.7; 6.8

## References

- <https://git.kernel.org/stable/c/13b520fb62b772e408f9b79c5fe18ad414e90417> (patch)
- <https://git.kernel.org/stable/c/ad39c08186f8a0f221337985036ba86731d6aafe> (patch)

## Sources

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

---

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