{"id":"CVE-2025-71225","aliases":["CVE-2025-71225"],"related":[],"kind":"vulnerability","state":"published","title":"md: suspend array while updating raid_disks via sysfs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: suspend array while updating raid_disks via sysfs\n\nIn raid1_reshape(), freeze_array() is called before modifying the r1bio\nmemory pool (conf->r1bio_pool) and conf->raid_disks, and\nunfreeze_array() is called after the update is completed.\n\nHowever, freeze_array() only waits until nr_sync_pending and\n(nr_pending - nr_queued) of all buckets reaches zero. When an I/O error\noccurs, nr_queued is increased and the corresponding r1bio is queued to\neither retry_list or bio_end_io_list. As a result, freeze_array() may\nunblock before these r1bios are released.\n\nThis can lead to a situation where conf->raid_disks and the mempool have\nalready been updated while queued r1bios, allocated with the old\nraid_disks value, are later released. Consequently, free_r1bio() may\naccess memory out of bounds in put_all_bios() and release r1bios of the\nwrong size to the new mempool, potentially causing issues with the\nmempool as well.\n\nSince only normal I/O might increase nr_queued while an I/O error occurs,\nsuspending the array avoids this issue.\n\nNote: Updating raid_disks via ioctl SET_ARRAY_INFO already suspends\nthe array. Therefore, we suspend the array when updating raid_disks\nvia sysfs to avoid this issue too.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: suspend array while updating raid_disks via sysfs\n\nIn raid1_reshape(), freeze_array() is called before modifying the r1bio\nmemory pool (conf->r1bio_pool) and conf->raid_disks, and\nunfreeze_array() is called after the update is completed.\n\nHowever, freeze_array() only waits until nr_sync_pending and\n(nr_pending - nr_queued) of all buckets reaches zero. When an I/O error\noccurs, nr_queued is increased and the corresponding r1bio is queued to\neither retry_list or bio_end_io_list. As a result, freeze_array() may\nunblock before these r1bios are released.\n\nThis can lead to a situation where conf->raid_disks and the mempool have\nalready been updated while queued r1bios, allocated with the old\nraid_disks value, are later released. Consequently, free_r1bio() may\naccess memory out of bounds in put_all_bios() and release r1bios of the\nwrong size to the new mempool, potentially causing issues with the\nmempool as well.\n\nSince only normal I/O might increase nr_queued while an I/O error occurs,\nsuspending the array avoids this issue.\n\nNote: Updating raid_disks via ioctl SET_ARRAY_INFO already suspends\nthe array. Therefore, we suspend the array when updating raid_disks\nvia sysfs to avoid this issue too.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmd: suspender el array mientras se actualiza raid_disks a través de sysfs\n\nEn raid1_reshape(), se llama a freeze_array() antes de modificar el pool de memoria r1bio (conf-&gt;r1bio_pool) y conf-&gt;raid_disks, y se llama a unfreeze_array() después de que se completa la actualización.\n\nSin embargo, freeze_array() solo espera hasta que nr_sync_pending y (nr_pending - nr_queued) de todos los buckets lleguen a cero. Cuando ocurre un error de E/S, nr_queued se incrementa y el r1bio correspondiente se encola en retry_list o bio_end_io_list. Como resultado, freeze_array() puede desbloquearse antes de que estos r1bios sean liberados.\n\nEsto puede llevar a una situación en la que conf-&gt;raid_disks y el mempool ya han sido actualizados mientras que los r1bios encolados, asignados con el valor antiguo de raid_disks, son liberados posteriormente. En consecuencia, free_r1bio() puede acceder a memoria fuera de los límites en put_all_bios() y liberar r1bios de tamaño incorrecto al nuevo mempool, lo que podría causar problemas también con el mempool.\n\nDado que solo la E/S normal podría aumentar nr_queued mientras ocurre un error de E/S, suspender el array evita este problema.\n\nNota: La actualización de raid_disks a través de ioctl SET_ARRAY_INFO ya suspende el array. Por lo tanto, suspendemos el array al actualizar raid_disks a través de sysfs para evitar este problema también.","source":"nvd"}],"published":"2026-02-18T14:21:46.249Z","modified":"2026-10-21T13:18:25.643Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:H","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:H","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-362","CWE-367"],"affected":[{"ranges":[{"type":"git","introduced":"e2d59925221cd562e07fee38ec8839f7209ae603","fixed":"863b9b7be824a6b2c0587532d3ece3022c6dd451","status":"affected"},{"type":"git","introduced":"e2d59925221cd562e07fee38ec8839f7209ae603","fixed":"165d1359f945b72c5f90088f60d48ff46115269e","status":"affected"},{"type":"git","introduced":"e2d59925221cd562e07fee38ec8839f7209ae603","fixed":"0107b18cd8ac17eb3e54786adc05a85cdbb6ef22","status":"affected"},{"type":"git","introduced":"e2d59925221cd562e07fee38ec8839f7209ae603","fixed":"2cc583653bbe050bacd1cadcc9776d39bf449740","status":"affected"},{"type":"git","version":"1b9203bb4c658c0242afa6fdb025c71d2fc3ad76","status":"affected"},{"type":"git","version":"8ccf6cfb157419847f3cb2bfdfbcdbd39860e8e9","status":"affected"},{"type":"semver","introduced":"3.4.59","fixed":"3.5","status":"affected"},{"type":"semver","introduced":"3.9.7","fixed":"3.10","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.10","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.70","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.10","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.4.59","fixed":"3.5"},{"status":"affected","introduced":"3.9.7","fixed":"3.10"},{"status":"affected","introduced":"3.10.1","fixed":"6.12.70"},{"status":"affected","introduced":"6.13","fixed":"6.18.10"},{"status":"affected","version":"3.10"},{"status":"affected","version":"3.10"},{"status":"affected","version":"3.10"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/863b9b7be824a6b2c0587532d3ece3022c6dd451","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/165d1359f945b72c5f90088f60d48ff46115269e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0107b18cd8ac17eb3e54786adc05a85cdbb6ef22","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2cc583653bbe050bacd1cadcc9776d39bf449740","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-10T20:41:16.509Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71225","url":"https://www.cve.org/CVERecord?id=CVE-2025-71225","licence":"CVE Terms of Use","modified":"2026-10-21T12:38:36.561Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71225","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71225","licence":"Public domain","modified":"2026-10-21T13:18:25.643Z"}],"updatedAt":"2026-11-25T22:59:11.264Z","epss":{"score":0.00127,"percentile":0.02599,"date":"2026-12-01T12:00:22.000Z"}}