CVE-2025-71225

md: suspend array while updating raid_disks via sysfs

No CVSS score yet EPSS 0.13%

Published 18 Feb 2026 Updated 21 Oct 2026 CNA: Linux

Check your servers for CVE-2025-71225

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-71225 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

md: suspend array while updating raid_disks via sysfs

In raid1_reshape(), freeze_array() is called before modifying the r1bio memory pool (conf->r1bio_pool) and conf->raid_disks, and unfreeze_array() is called after the update is completed.

However, freeze_array() only waits until nr_sync_pending and (nr_pending - nr_queued) of all buckets reaches zero. When an I/O error occurs, nr_queued is increased and the corresponding r1bio is queued to either retry_list or bio_end_io_list. As a result, freeze_array() may unblock before these r1bios are released.

This can lead to a situation where conf->raid_disks and the mempool have already been updated while queued r1bios, allocated with the old raid_disks value, are later released. Consequently, free_r1bio() may access memory out of bounds in put_all_bios() and release r1bios of the wrong size to the new mempool, potentially causing issues with the mempool as well.

Since only normal I/O might increase nr_queued while an I/O error occurs, suspending the array avoids this issue.

Note: Updating raid_disks via ioctl SET_ARRAY_INFO already suspends the array. Therefore, we suspend the array when updating raid_disks via sysfs to avoid this issue too.

Exploitation

EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.60% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Jun 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e2d59925221cd562e07fee38ec8839f7209ae603, before 863b9b7be824a6b2c0587532d3ece3022c6dd451
affected from e2d59925221cd562e07fee38ec8839f7209ae603, before 165d1359f945b72c5f90088f60d48ff46115269e
affected from e2d59925221cd562e07fee38ec8839f7209ae603, before 0107b18cd8ac17eb3e54786adc05a85cdbb6ef22
affected from e2d59925221cd562e07fee38ec8839f7209ae603, before 2cc583653bbe050bacd1cadcc9776d39bf449740
affected 1b9203bb4c658c0242afa6fdb025c71d2fc3ad76
affected 8ccf6cfb157419847f3cb2bfdfbcdbd39860e8e9
affected from 3.4.59, before 3.5
affected from 3.9.7, before 3.10
Other versions: unaffected
Linux
affected 3.10
unaffected before 3.10
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.70 up to and including 6.12.*
unaffected from 6.18.10 up to and including 6.18.*
unaffected 6.19 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-71225 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-71225

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-71225
trivy image --scanners vuln IMAGE | grep CVE-2025-71225

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-71225 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.