# CVE-2026-53125: md: fix array\_state=clear sysfs deadlock

> 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.12% (percentile 1, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2026-06-24T16:30:53.934Z
- **Modified:** 2026-11-06T17:18:08.780Z

## Who should check

- Anyone running Linux \>= 9e59d609763f70a992a8f3808dabcce60f14eb5c, \< 62c44566da7493ee48ef17e8507bb798338a07cb; \>= 9e59d609763f70a992a8f3808dabcce60f14eb5c, \< 92ad0ec509ffb188d8f849b63148664df37b4a52; \>= 9e59d609763f70a992a8f3808dabcce60f14eb5c, \< 2aa72276fab9851dbd59c2daeb4b590c5a113908
- Anyone running Linux 6.17

## Description

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

md: fix array\_state=clear sysfs deadlock

When "clear" is written to array\_state, md\_attr\_store() breaks sysfs
active protection so the array can delete itself from its own sysfs
store method.

However, md\_attr\_store() currently drops the mddev reference before
calling sysfs\_unbreak\_active\_protection(). Once do\_md\_stop(..., 0)
has made the mddev eligible for delayed deletion, the temporary
kobject reference taken by sysfs\_break\_active\_protection() can become
the last kobject reference protecting the md kobject.

That allows sysfs\_unbreak\_active\_protection() to drop the last
kobject reference from the current sysfs writer context. kobject
teardown then recurses into kernfs removal while the current sysfs
node is still being unwound, and lockdep reports recursive locking on
kn-\>active with kernfs\_drain() in the call chain.

Reproducer on an existing level:
1. Create an md0 linear array and activate it:
   mknod /dev/md0 b 9 0
   echo none \> /sys/block/md0/md/metadata\_version
   echo linear \> /sys/block/md0/md/level
   echo 1 \> /sys/block/md0/md/raid\_disks
   echo "$(cat /sys/class/block/sdb/dev)" \> /sys/block/md0/md/new\_dev
   echo "$(($(cat /sys/class/block/sdb/size) / 2))" \> \\
	/sys/block/md0/md/dev-sdb/size
   echo 0 \> /sys/block/md0/md/dev-sdb/slot
   echo active \> /sys/block/md0/md/array\_state
2. Wait briefly for the array to settle, then clear it:
   sleep 2
   echo clear \> /sys/block/md0/md/array\_state

The warning looks like:

  WARNING: possible recursive locking detected
  bash/588 is trying to acquire lock:
  (kn-\>active\#65) at \_\_kernfs\_remove+0x157/0x1d0
  but task is already holding lock:
  (kn-\>active\#65) at sysfs\_unbreak\_active\_protection+0x1f/0x40
  ...
  Call Trace:
   kernfs\_drain
   \_\_kernfs\_remove
   kernfs\_remove\_by\_name\_ns
   sysfs\_remove\_group
   sysfs\_remove\_groups
   \_\_kobject\_del
   kobject\_put
   md\_attr\_store
   kernfs\_fop\_write\_iter
   vfs\_write
   ksys\_write

Restore active protection before mddev\_put() so the extra sysfs
kobject reference is dropped while the mddev is still held alive. The
actual md kobject deletion is then deferred until after the sysfs
write path has fully returned.

## Affected and fixed versions

- Linux: \>= 9e59d609763f70a992a8f3808dabcce60f14eb5c, \< 62c44566da7493ee48ef17e8507bb798338a07cb; \>= 9e59d609763f70a992a8f3808dabcce60f14eb5c, \< 92ad0ec509ffb188d8f849b63148664df37b4a52; \>= 9e59d609763f70a992a8f3808dabcce60f14eb5c, \< 2aa72276fab9851dbd59c2daeb4b590c5a113908 (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

- Upgrade Linux to 2aa72276fab9851dbd59c2daeb4b590c5a113908 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-53125.md
Affected: Linux >= 9e59d609763f70a992a8f3808dabcce60f14eb5c, < 62c44566da7493ee48ef17e8507bb798338a07cb; >= 9e59d609763f70a992a8f3808dabcce60f14eb5c, < 92ad0ec509ffb188d8f849b63148664df37b4a52; >= 9e59d609763f70a992a8f3808dabcce60f14eb5c, < 2aa72276fab9851dbd59c2daeb4b590c5a113908; Linux 6.17
Fixed in: Linux 62c44566da7493ee48ef17e8507bb798338a07cb, Linux 92ad0ec509ffb188d8f849b63148664df37b4a52, Linux 2aa72276fab9851dbd59c2daeb4b590c5a113908

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

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

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

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

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

Linux \>= 9e59d609763f70a992a8f3808dabcce60f14eb5c, \< 62c44566da7493ee48ef17e8507bb798338a07cb; \>= 9e59d609763f70a992a8f3808dabcce60f14eb5c, \< 92ad0ec509ffb188d8f849b63148664df37b4a52; \>= 9e59d609763f70a992a8f3808dabcce60f14eb5c, \< 2aa72276fab9851dbd59c2daeb4b590c5a113908; Linux 6.17.

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

Yes. Fixed in Linux 62c44566da7493ee48ef17e8507bb798338a07cb, Linux 92ad0ec509ffb188d8f849b63148664df37b4a52, Linux 2aa72276fab9851dbd59c2daeb4b590c5a113908. Upgrade Linux to 2aa72276fab9851dbd59c2daeb4b590c5a113908 or later.

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

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/62c44566da7493ee48ef17e8507bb798338a07cb>
- patch: <https://git.kernel.org/stable/c/92ad0ec509ffb188d8f849b63148664df37b4a52>
- patch: <https://git.kernel.org/stable/c/2aa72276fab9851dbd59c2daeb4b590c5a113908>

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

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