# CVE-2026-90400: md: recheck spare changes before starting sync

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-28)
- **Published:** 2026-09-17T16:09:30.915Z
- **Modified:** 2026-10-19T09:19:34.123Z

## Who should check

- Anyone running Linux \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< c3777d16bc3335c0ac4bdad0551c80d38c5d94cc; \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< e5ac7ab78467b064f1da8b0f3042a63595fafcfd; \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< 81b39df5d701976cf20e52f33106c1fc1603b4cb; \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< c7d34d17ea43ebc86b45d439ebb435e11ca44bca
- Anyone running Linux 6.7

## Description

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

md: recheck spare changes before starting sync

remove\_spares() and remove\_and\_add\_spares() modify the array's rdev
configuration. These operations are only safe after the array has been
suspended.

md\_start\_sync() checks whether spare configuration changes are needed
before taking reconfig\_mutex. However, the rdev state can change before
the mutex is acquired, so the initial check can become stale. In that
case, md\_choose\_sync\_action() may remove or replace rdevs while normal
I/O is still accessing them.

The race can occur as follows:

raid10d          Worker                      Normal IO
\_\_\_\_\_\_\_\_\_\_\_\_     \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_     \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

                                             raid10\_write\_request()
                                             wait\_blocked\_dev()
set Blocked
set Faulty
                                             Skip Faulty rdev
                                             rrdev-\>nr\_pending++
                                             .repl\_bio = bio
                 removeable\_rdev = false     .
                 array not suspended         .
lock mddev                                   goto err\_handle
                 lock mddev (wait)
                 .
update sb        .
clear Blocked    .
                 .
unlock mddev     .
                 lock mddev (acquires)
                 remove\_spares()
                 removeable\_rdev = true

                 raid10\_remove\_disk()
                 rdev = replacement
                 replacement = NULL
                                             rdev\_dec\_pending(NULL)
                 unlock mddev                (NULL)-\>nr\_pending--

In this case, rdev\_dec\_pending() is called with a NULL pointer,
resulting in a NULL pointer dereference when attempting to decrement
nr\_pending.

Fix this by suspending the array when spare configuration changes are
needed, including for non-read-write arrays, and checking again after
taking reconfig\_mutex. If the array was not already suspended and a
change is now needed, release the mutex, suspend the array, and
reacquire the mutex before continuing.

## Affected and fixed versions

- Linux: \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< c3777d16bc3335c0ac4bdad0551c80d38c5d94cc; \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< e5ac7ab78467b064f1da8b0f3042a63595fafcfd; \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< 81b39df5d701976cf20e52f33106c1fc1603b4cb; \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< c7d34d17ea43ebc86b45d439ebb435e11ca44bca (cvelist)
- Linux: 6.7 (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-2026-90400. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90400.md
Affected: Linux >= bc08041b32abe6c9824f78735bac22018eabfc06, < c3777d16bc3335c0ac4bdad0551c80d38c5d94cc; >= bc08041b32abe6c9824f78735bac22018eabfc06, < e5ac7ab78467b064f1da8b0f3042a63595fafcfd; >= bc08041b32abe6c9824f78735bac22018eabfc06, < 81b39df5d701976cf20e52f33106c1fc1603b4cb; >= bc08041b32abe6c9824f787…
Fixed in: Linux 81b39df5d701976cf20e52f33106c1fc1603b4cb

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-2026-90400 being exploited?

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

### How serious is CVE-2026-90400?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-90400?

Linux \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< c3777d16bc3335c0ac4bdad0551c80d38c5d94cc; \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< e5ac7ab78467b064f1da8b0f3042a63595fafcfd; \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< 81b39df5d701976cf20e52f33106c1fc1603b4cb; \>= bc08041b32abe6c9824f78735bac22018eabfc06, \< c7d34d17ea43ebc86b45d439ebb435e11ca44bca; Linux 6.7.

### Is there a fix for CVE-2026-90400?

Yes. Fixed in Linux 81b39df5d701976cf20e52f33106c1fc1603b4cb. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-90400?

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

- other: <https://git.kernel.org/stable/c/c3777d16bc3335c0ac4bdad0551c80d38c5d94cc>
- other: <https://git.kernel.org/stable/c/e5ac7ab78467b064f1da8b0f3042a63595fafcfd>
- other: <https://git.kernel.org/stable/c/81b39df5d701976cf20e52f33106c1fc1603b4cb>
- other: <https://git.kernel.org/stable/c/c7d34d17ea43ebc86b45d439ebb435e11ca44bca>

## 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-2026-90400>

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