# CVE-2024-26962: dm-raid456, md/raid456: fix a deadlock for dm-raid456 while io concurrent with reshape

> 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.23% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-05-01T05:19:20.579Z
- **Modified:** 2026-06-17T07:18:48.267Z

## Who should check

- Anyone running Linux \>= c467e97f079f0019870c314996fae952cc768e82, \< 5943a34bf6bab5801e08a55f63e1b8d5bc90dae1; \>= c467e97f079f0019870c314996fae952cc768e82, \< a8d249d770cb357d16a2097b548d2e4c1c137304; \>= c467e97f079f0019870c314996fae952cc768e82, \< 41425f96d7aa59bc865f60f5dda3d7697b555677; 515d971cd26a40f710490d1566783f9c62b46d61; 4ce431c297558e30baa9226243a15d818320742b; \>= 6.1.68, \< 6.2; \>= 6.6.7, \< 6.7
- Anyone running Linux 6.7

## Description

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

dm-raid456, md/raid456: fix a deadlock for dm-raid456 while io concurrent with reshape

For raid456, if reshape is still in progress, then IO across reshape
position will wait for reshape to make progress. However, for dm-raid,
in following cases reshape will never make progress hence IO will hang:

1) the array is read-only;
2) MD\_RECOVERY\_WAIT is set;
3) MD\_RECOVERY\_FROZEN is set;

After commit c467e97f079f ("md/raid6: use valid sector values to determine
if an I/O should wait on the reshape") fix the problem that IO across
reshape position doesn't wait for reshape, the dm-raid test
shell/lvconvert-raid-reshape.sh start to hang:

\[root@fedora ~\]\# cat /proc/979/stack
\[\<0\>\] wait\_woken+0x7d/0x90
\[\<0\>\] raid5\_make\_request+0x929/0x1d70 \[raid456\]
\[\<0\>\] md\_handle\_request+0xc2/0x3b0 \[md\_mod\]
\[\<0\>\] raid\_map+0x2c/0x50 \[dm\_raid\]
\[\<0\>\] \_\_map\_bio+0x251/0x380 \[dm\_mod\]
\[\<0\>\] dm\_submit\_bio+0x1f0/0x760 \[dm\_mod\]
\[\<0\>\] \_\_submit\_bio+0xc2/0x1c0
\[\<0\>\] submit\_bio\_noacct\_nocheck+0x17f/0x450
\[\<0\>\] submit\_bio\_noacct+0x2bc/0x780
\[\<0\>\] submit\_bio+0x70/0xc0
\[\<0\>\] mpage\_readahead+0x169/0x1f0
\[\<0\>\] blkdev\_readahead+0x18/0x30
\[\<0\>\] read\_pages+0x7c/0x3b0
\[\<0\>\] page\_cache\_ra\_unbounded+0x1ab/0x280
\[\<0\>\] force\_page\_cache\_ra+0x9e/0x130
\[\<0\>\] page\_cache\_sync\_ra+0x3b/0x110
\[\<0\>\] filemap\_get\_pages+0x143/0xa30
\[\<0\>\] filemap\_read+0xdc/0x4b0
\[\<0\>\] blkdev\_read\_iter+0x75/0x200
\[\<0\>\] vfs\_read+0x272/0x460
\[\<0\>\] ksys\_read+0x7a/0x170
\[\<0\>\] \_\_x64\_sys\_read+0x1c/0x30
\[\<0\>\] do\_syscall\_64+0xc6/0x230
\[\<0\>\] entry\_SYSCALL\_64\_after\_hwframe+0x6c/0x74

This is because reshape can't make progress.

For md/raid, the problem doesn't exist because register new sync\_thread
doesn't rely on the IO to be done any more:

1) If array is read-only, it can switch to read-write by ioctl/sysfs;
2) md/raid never set MD\_RECOVERY\_WAIT;
3) If MD\_RECOVERY\_FROZEN is set, mddev\_suspend() doesn't hold
   'reconfig\_mutex', hence it can be cleared and reshape can continue by
   sysfs api 'sync\_action'.

However, I'm not sure yet how to avoid the problem in dm-raid yet. This
patch on the one hand make sure raid\_message() can't change
sync\_thread() through raid\_message() after presuspend(), on the other
hand detect the above 3 cases before wait for IO do be done in
dm\_suspend(), and let dm-raid requeue those IO.

## Affected and fixed versions

- Linux: \>= c467e97f079f0019870c314996fae952cc768e82, \< 5943a34bf6bab5801e08a55f63e1b8d5bc90dae1; \>= c467e97f079f0019870c314996fae952cc768e82, \< a8d249d770cb357d16a2097b548d2e4c1c137304; \>= c467e97f079f0019870c314996fae952cc768e82, \< 41425f96d7aa59bc865f60f5dda3d7697b555677; 515d971cd26a40f710490d1566783f9c62b46d61; 4ce431c297558e30baa9226243a15d818320742b; \>= 6.1.68, \< 6.2; \>= 6.6.7, \< 6.7 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 6.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26962.md
Affected: Linux >= c467e97f079f0019870c314996fae952cc768e82, < 5943a34bf6bab5801e08a55f63e1b8d5bc90dae1; >= c467e97f079f0019870c314996fae952cc768e82, < a8d249d770cb357d16a2097b548d2e4c1c137304; >= c467e97f079f0019870c314996fae952cc768e82, < 41425f96d7aa59bc865f60f5dda3d7697b555677; 515d971cd26a40f710490d1566…
Fixed in: Linux 5943a34bf6bab5801e08a55f63e1b8d5bc90dae1, Linux 41425f96d7aa59bc865f60f5dda3d7697b555677, Linux 6.2, Linux 6.7

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-26962 being exploited?

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

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

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

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

Linux \>= c467e97f079f0019870c314996fae952cc768e82, \< 5943a34bf6bab5801e08a55f63e1b8d5bc90dae1; \>= c467e97f079f0019870c314996fae952cc768e82, \< a8d249d770cb357d16a2097b548d2e4c1c137304; \>= c467e97f079f0019870c314996fae952cc768e82, \< 41425f96d7aa59bc865f60f5dda3d7697b555677; 515d971cd26a40f710490d1566783f9c62b46d61; 4ce431c297558e30baa9226243a15d818320742b; \>= 6.1.68, \< 6.2; \>= 6.6.7, \< 6.7; Linux 6.7.

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

Yes. Fixed in Linux 5943a34bf6bab5801e08a55f63e1b8d5bc90dae1, Linux 41425f96d7aa59bc865f60f5dda3d7697b555677, Linux 6.2, Linux 6.7. Upgrade Linux to 6.7 or later.

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

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/5943a34bf6bab5801e08a55f63e1b8d5bc90dae1>
- patch: <https://git.kernel.org/stable/c/a8d249d770cb357d16a2097b548d2e4c1c137304>
- patch: <https://git.kernel.org/stable/c/41425f96d7aa59bc865f60f5dda3d7697b555677>

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

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