# CVE-2024-26756: md: Don't register sync\_thread for reshape directly

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-459
- **Published:** 2024-04-03T17:00:40.814Z
- **Modified:** 2026-06-17T07:18:15.927Z

## Who should check

- Anyone running Linux \>= f67055780caac6a99f43834795c43acf99eba6a6, \< 13b520fb62b772e408f9b79c5fe18ad414e90417; \>= f67055780caac6a99f43834795c43acf99eba6a6, \< ad39c08186f8a0f221337985036ba86731d6aafe
- Anyone running Linux 2.6.17

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

## Affected and fixed versions

- Linux: \>= f67055780caac6a99f43834795c43acf99eba6a6, \< 13b520fb62b772e408f9b79c5fe18ad414e90417; \>= f67055780caac6a99f43834795c43acf99eba6a6, \< ad39c08186f8a0f221337985036ba86731d6aafe (cvelist)
- Linux: 2.6.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26756. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26756.md
Affected: Linux >= f67055780caac6a99f43834795c43acf99eba6a6, < 13b520fb62b772e408f9b79c5fe18ad414e90417; >= f67055780caac6a99f43834795c43acf99eba6a6, < ad39c08186f8a0f221337985036ba86731d6aafe; Linux 2.6.17
Fixed in: Linux 13b520fb62b772e408f9b79c5fe18ad414e90417

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26756 being exploited?

There is no confirmed exploitation: CVE-2024-26756 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26756?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26756?

Linux \>= f67055780caac6a99f43834795c43acf99eba6a6, \< 13b520fb62b772e408f9b79c5fe18ad414e90417; \>= f67055780caac6a99f43834795c43acf99eba6a6, \< ad39c08186f8a0f221337985036ba86731d6aafe; Linux 2.6.17.

### Is there a fix for CVE-2024-26756?

Yes. Fixed in Linux 13b520fb62b772e408f9b79c5fe18ad414e90417. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26756?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26756>

HTML: <https://flawdb.com/CVE-2024-26756> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26756>
