Skip to contentSkip to conversation

CVE-2026-53123: md: wake raid456 reshape waiters before suspend

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

md: wake raid456 reshape waiters before suspend

During raid456 reshape, direct IO across the reshape position can sleep in raid5_make_request() waiting for reshape progress while still holding an active_io reference. If userspace then freezes reshape and writes md/suspend_lo or md/suspend_hi, mddev_suspend() kills active_io and waits for all in-flight IO to drain.

This can deadlock: the IO needs reshape progress to continue, but the reshape thread is already frozen, so the active_io reference is never dropped and suspend never completes.

raid5_prepare_suspend() already wakes wait_for_reshape for dm-raid. Do the same for normal md suspend when reshape is already interrupted, so waiting raid456 IO can abort, drop its reference, and let suspend finish.

The mdadm test tests/25raid456-reshape-deadlock reproduces the hang.

The Linux kernel CVE team has assigned CVE-2026-53123 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.7 with commit 714d20150ed85811193ae07a494d91f9927c590f and fixed in 6.12.91 with commit 8b6a72420821e6da2cab6a69d5233500d2698b93
	Issue introduced in 6.7 with commit 714d20150ed85811193ae07a494d91f9927c590f and fixed in 6.18.33 with commit ff6b93410192b812d73cc54062529715b2dc849f
	Issue introduced in 6.7 with commit 714d20150ed85811193ae07a494d91f9927c590f and fixed in 7.0.10 with commit 8ae3e14d7f3df58f7f49c02d74344e3dcd5f84f0
	Issue introduced in 6.7 with commit 714d20150ed85811193ae07a494d91f9927c590f and fixed in 7.1 with commit cf86bb53b9c92354904a328e947a05ffbfdd1840

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-53123

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/8b6a72420821e6da2cab6a69d5233500d2698b93
	https://git.kernel.org/stable/c/ff6b93410192b812d73cc54062529715b2dc849f
	https://git.kernel.org/stable/c/8ae3e14d7f3df58f7f49c02d74344e3dcd5f84f0
	https://git.kernel.org/stable/c/cf86bb53b9c92354904a328e947a05ffbfdd1840