Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0DBF33342A for ; Wed, 18 Feb 2026 14:22:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771424530; cv=none; b=JXdjJ6qEbTVWUhdiyWIEX94eJMVx7CpRRtRmjCu8lO9H1IIJO/J5aYYmr6o4rVoOrzWpDukXD/92xX2q9FbbKiCdVMsQp9yR6AwQBgJBpPzuE4DJb8QeYwlPV39JXl7tYgdeX7qIMH8AM05rVuRfF+ndLDPmEGAawA0lqaBjrtk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771424530; c=relaxed/simple; bh=ewY/u02jP5a+Zh9Cau21Omx6nA6jKAze/Hw5F1e3DOc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n4Q3UFzWLmh25CUTHUwy2UFnEWgieqn3ttUgg8EvASPVMcJiDzoY7sp2Fji8XmJGxqPJIhsQfnnQlI1hUwnYGGddQm1NY1/QtJxoiPUH5L3CEvtX3Oo/xT4hLVUI8c6y352uUgPtoNAneVuWjR0jcPy8pHSld3T8DqPzp9kpXLs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SvGQfQBq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="SvGQfQBq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 852A1C116D0; Wed, 18 Feb 2026 14:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771424530; bh=ewY/u02jP5a+Zh9Cau21Omx6nA6jKAze/Hw5F1e3DOc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=SvGQfQBq8xZRBz9WXFhv5HCX5HMmFYVQzDuCIN0apyFiPTKUrrIDbyWTjKQGm+pGv iruV/14K6ZpH3sEGvBjBlOU33z83ToeL9OJwTNP0Ff3IBS1nCOmVvwiYnqki+qgsu0 93AOcMW3s6znrjvtaw1vtHxPUaNf1+/lT4wWGPRE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71225: md: suspend array while updating raid_disks via sysfs Date: Wed, 18 Feb 2026 15:22:00 +0100 Message-ID: <2026021859-CVE-2025-71225-44de@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2913; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2ZWEq90QdQXxdsqTjDdoO8+LqcfBmnXk3RooKT9jZfk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlTT7NramQ2PRS9FiJyYAHzLz79Pa/ZMrljRYP6Qu68/ FBwvudYRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk0SWG+d7LnWcqM242vMcl /3WHeDZ3U1qpB8OCqfoJOmd8OMzzhCdMDbPju/qFMaoGAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-71225 to this issue. Affected and fixed versions =========================== Fixed in 6.12.70 with commit 165d1359f945b72c5f90088f60d48ff46115269e Fixed in 6.18.10 with commit 0107b18cd8ac17eb3e54786adc05a85cdbb6ef22 Fixed in 6.19 with commit 2cc583653bbe050bacd1cadcc9776d39bf449740 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-71225 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/md/md.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/165d1359f945b72c5f90088f60d48ff46115269e https://git.kernel.org/stable/c/0107b18cd8ac17eb3e54786adc05a85cdbb6ef22 https://git.kernel.org/stable/c/2cc583653bbe050bacd1cadcc9776d39bf449740