# CVE-2024-43855: md: fix deadlock between mddev\_suspend and flush bio

> 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-08-17T09:22:11.985Z
- **Modified:** 2026-06-17T07:51:50.773Z

## Who should check

- Anyone running Linux \>= f9f2d957a8ea93c73182aebf7de30935a58c027d, \< 32226070813140234b6c507084738e8e8385c5c6; \>= 530cec617f5a8ba6f26bcbf0d64d75c951d17730, \< 2d0738a8322bf4e5bfe693d16b3111928a9ccfbf; \>= fa2bbff7b0b4e211fec5e5686ef96350690597b5, \< ca963eefbc3331222b6121baa696d49ba2008811; \>= fa2bbff7b0b4e211fec5e5686ef96350690597b5, \< 611d5cbc0b35a752e657a83eebadf40d814d006b; c4c2345214b66e2505a26fd2ea58839dd7a1d48d; \>= 6.1.75, \< 6.1.103; \>= 6.6.14, \< 6.6.44; \>= 6.7.2, \< 6.8
- Anyone running Linux 6.8

## Description

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

md: fix deadlock between mddev\_suspend and flush bio

Deadlock occurs when mddev is being suspended while some flush bio is in
progress. It is a complex issue.

T1. the first flush is at the ending stage, it clears 'mddev-\>flush\_bio'
    and tries to submit data, but is blocked because mddev is suspended
    by T4.
T2. the second flush sets 'mddev-\>flush\_bio', and attempts to queue
    md\_submit\_flush\_data(), which is already running (T1) and won't
    execute again if on the same CPU as T1.
T3. the third flush inc active\_io and tries to flush, but is blocked because
    'mddev-\>flush\_bio' is not NULL (set by T2).
T4. mddev\_suspend() is called and waits for active\_io dec to 0 which is inc
    by T3.

  T1		T2		T3		T4
  (flush 1)	(flush 2)	(third 3)	(suspend)
  md\_submit\_flush\_data
   mddev-\>flush\_bio = NULL;
   .
   .	 	md\_flush\_request
   .	  	 mddev-\>flush\_bio = bio
   .	  	 queue submit\_flushes
   .		 .
   .		 .		md\_handle\_request
   .		 .		 active\_io + 1
   .		 .		 md\_flush\_request
   .		 .		  wait !mddev-\>flush\_bio
   .		 .
   .		 .				mddev\_suspend
   .		 .				 wait !active\_io
   .		 .
   .		 submit\_flushes
   .		 queue\_work md\_submit\_flush\_data
   .		 //md\_submit\_flush\_data is already running (T1)
   .
   md\_handle\_request
    wait resume

The root issue is non-atomic inc/dec of active\_io during flush process.
active\_io is dec before md\_submit\_flush\_data is queued, and inc soon
after md\_submit\_flush\_data() run.
  md\_flush\_request
    active\_io + 1
    submit\_flushes
      active\_io - 1
      md\_submit\_flush\_data
        md\_handle\_request
        active\_io + 1
          make\_request
        active\_io - 1

If active\_io is dec after md\_handle\_request() instead of within
submit\_flushes(), make\_request() can be called directly intead of
md\_handle\_request() in md\_submit\_flush\_data(), and active\_io will
only inc and dec once in the whole flush process. Deadlock will be
fixed.

Additionally, the only difference between fixing the issue and before is
that there is no return error handling of make\_request(). But after
previous patch cleaned md\_write\_start(), make\_requst() only return error
in raid5\_make\_request() by dm-raid, see commit 41425f96d7aa ("dm-raid456,
md/raid456: fix a deadlock for dm-raid456 while io concurrent with
reshape)". Since dm always splits data and flush operation into two
separate io, io size of flush submitted by dm always is 0, make\_request()
will not be called in md\_submit\_flush\_data(). To prevent future
modifications from introducing issues, add WARN\_ON to ensure
make\_request() no error is returned in this context.

## Affected and fixed versions

- Linux: \>= f9f2d957a8ea93c73182aebf7de30935a58c027d, \< 32226070813140234b6c507084738e8e8385c5c6; \>= 530cec617f5a8ba6f26bcbf0d64d75c951d17730, \< 2d0738a8322bf4e5bfe693d16b3111928a9ccfbf; \>= fa2bbff7b0b4e211fec5e5686ef96350690597b5, \< ca963eefbc3331222b6121baa696d49ba2008811; \>= fa2bbff7b0b4e211fec5e5686ef96350690597b5, \< 611d5cbc0b35a752e657a83eebadf40d814d006b; c4c2345214b66e2505a26fd2ea58839dd7a1d48d; \>= 6.1.75, \< 6.1.103; \>= 6.6.14, \< 6.6.44; \>= 6.7.2, \< 6.8 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 6.8 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-43855. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-43855.md
Affected: Linux >= f9f2d957a8ea93c73182aebf7de30935a58c027d, < 32226070813140234b6c507084738e8e8385c5c6; >= 530cec617f5a8ba6f26bcbf0d64d75c951d17730, < 2d0738a8322bf4e5bfe693d16b3111928a9ccfbf; >= fa2bbff7b0b4e211fec5e5686ef96350690597b5, < ca963eefbc3331222b6121baa696d49ba2008811; >= fa2bbff7b0b4e211fec5e56…
Fixed in: Linux 32226070813140234b6c507084738e8e8385c5c6, Linux 2d0738a8322bf4e5bfe693d16b3111928a9ccfbf, Linux 611d5cbc0b35a752e657a83eebadf40d814d006b, Linux 6.1.103, Linux 6.6.44, Linux 6.8

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

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

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

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

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

Linux \>= f9f2d957a8ea93c73182aebf7de30935a58c027d, \< 32226070813140234b6c507084738e8e8385c5c6; \>= 530cec617f5a8ba6f26bcbf0d64d75c951d17730, \< 2d0738a8322bf4e5bfe693d16b3111928a9ccfbf; \>= fa2bbff7b0b4e211fec5e5686ef96350690597b5, \< ca963eefbc3331222b6121baa696d49ba2008811; \>= fa2bbff7b0b4e211fec5e5686ef96350690597b5, \< 611d5cbc0b35a752e657a83eebadf40d814d006b; c4c2345214b66e2505a26fd2ea58839dd7a1d48d; \>= 6.1.75, \< 6.1.103; \>= 6.6.14, \< 6.6.44; \>= 6.7.2, \< 6.8; Linux 6.8.

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

Yes. Fixed in Linux 32226070813140234b6c507084738e8e8385c5c6, Linux 2d0738a8322bf4e5bfe693d16b3111928a9ccfbf, Linux 611d5cbc0b35a752e657a83eebadf40d814d006b, Linux 6.1.103, Linux 6.6.44, Linux 6.8. Upgrade Linux to 6.8 or later.

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

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/32226070813140234b6c507084738e8e8385c5c6>
- patch: <https://git.kernel.org/stable/c/2d0738a8322bf4e5bfe693d16b3111928a9ccfbf>
- patch: <https://git.kernel.org/stable/c/ca963eefbc3331222b6121baa696d49ba2008811>
- patch: <https://git.kernel.org/stable/c/611d5cbc0b35a752e657a83eebadf40d814d006b>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

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

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