CVE-2026-90385: md/raid1: create serial pool adding rdev to array with serialize_policy=1
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
md/raid1: create serial pool adding rdev to array with serialize_policy=1
The following bug has been observed with kernel 7.1.3 after adding a new rdev to an existing RAID1 array with serialize_policy enabled:
Oops: 0002 [#1] CPU: 0 UID: 0 PID: 19639 Comm: ext4lazyinit Not tainted 7.1.3-1-default RIP: _raw_spin_lock_irqsave+0x27/0x50 CR2: 0000000000004960 Call Trace: wait_for_serialization+0xb9/0x260 [raid1] raid1_make_request+0x762/0xaff [raid1] md_handle_request+0x1c9/0x2e0 [md_mod]
The raid1.c code calls wait_for_serialization() if the MD_SERIALIZE_POLICY is set, and wait_for_serialization assumes that rdev->serial is initialized. Normally this will be the case for arrays that have the serialize_policy sysfs attribute set to 1.
But when a new rdev is added to an existing array in bind_rdev_to_array(), the condition at mddev_create_serial_pool() causes creation of rdev->serial to be skipped. Fix it.
The Linux kernel CVE team has assigned CVE-2026-90385 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.6 with commit 69b00b5bb23552d43e8bbed73ef6624604bb94a2 and fixed in 6.12.110 with commit f9e4364449f7ca6917f3599eb32064dba5b7b147 Issue introduced in 5.6 with commit 69b00b5bb23552d43e8bbed73ef6624604bb94a2 and fixed in 6.18.52 with commit 37f11973c3eb72a5eb061082cad529bb6939c24f Issue introduced in 5.6 with commit 69b00b5bb23552d43e8bbed73ef6624604bb94a2 and fixed in 7.2.6 with commit c02d675e81468003e4f2253b616c53729070d712 Issue introduced in 5.6 with commit 69b00b5bb23552d43e8bbed73ef6624604bb94a2 and fixed in 7.3-rc1 with commit 140234b2380ffb8ffb0cfc46fee0e822f43adef7
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-2026-90385
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/f9e4364449f7ca6917f3599eb32064dba5b7b147 https://git.kernel.org/stable/c/37f11973c3eb72a5eb061082cad529bb6939c24f https://git.kernel.org/stable/c/c02d675e81468003e4f2253b616c53729070d712 https://git.kernel.org/stable/c/140234b2380ffb8ffb0cfc46fee0e822f43adef7