{"id":"CVE-2025-71225","summary":"md: suspend array while updating raid_disks via sysfs","details":"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-\u003er1bio_pool) and conf-\u003eraid_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-\u003eraid_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.","modified":"2026-11-13T04:04:00.569845482Z","published":"2026-02-18T14:21:46.249Z","related":["SUSE-SU-2026:0962-1","SUSE-SU-2026:1081-1","SUSE-SU-2026:20667-1","SUSE-SU-2026:20720-1","SUSE-SU-2026:20838-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20873-1","SUSE-SU-2026:20876-1","SUSE-SU-2026:20931-1","SUSE-SU-2026:21284-1","openSUSE-SU-2026:20416-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71225.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0107b18cd8ac17eb3e54786adc05a85cdbb6ef22"},{"type":"WEB","url":"https://git.kernel.org/stable/c/165d1359f945b72c5f90088f60d48ff46115269e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2cc583653bbe050bacd1cadcc9776d39bf449740"},{"type":"WEB","url":"https://git.kernel.org/stable/c/863b9b7be824a6b2c0587532d3ece3022c6dd451"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71225.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71225"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e2d59925221cd562e07fee38ec8839f7209ae603"},{"fixed":"863b9b7be824a6b2c0587532d3ece3022c6dd451"},{"fixed":"165d1359f945b72c5f90088f60d48ff46115269e"},{"fixed":"0107b18cd8ac17eb3e54786adc05a85cdbb6ef22"},{"fixed":"2cc583653bbe050bacd1cadcc9776d39bf449740"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1b9203bb4c658c0242afa6fdb025c71d2fc3ad76"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8ccf6cfb157419847f3cb2bfdfbcdbd39860e8e9"}]}],"versions":["v3.4.113","v3.4.112","v3.4.111","v3.4.110","v3.4.109","v3.4.108","v3.4.107","v3.4.106","v3.4.105","v3.4.104","v3.4.103","v3.4.102","v3.4.101","v3.4.100","v3.4.99","v3.4.98","v3.4.97","v3.4.96","v3.4.95","v3.4.94","v3.4.93","v3.4.92","v3.4.91","v3.4.90","v3.4.89","v3.4.88","v3.4.87","v3.4.86","v3.4.85","v3.4.84","v3.4.83","v3.4.82","v3.4.81","v3.4.80","v3.4.79","v3.4.78","v3.4.77","v3.4.76","v3.4.75","v3.4.74","v3.4.73","v3.4.72","v3.4.71","v3.4.70","v3.4.69","v3.4.68","v3.4.67","v3.4.66","v3.4.65","v3.4.64","v3.4.63","v3.4.62","v3.4.61","v3.4.60","v3.4.59","v3.9.11","v3.9.10","v3.9.9","v3.9.8","v3.9.7"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-71225.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.59"},{"fixed":"3.5"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.9.7"},{"fixed":"3.10"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.10.0"},{"fixed":"6.6.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.70"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-71225.json"}}],"schema_version":"1.9.2"}