Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 3994D40B6D1 for ; Wed, 27 May 2026 13:05:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887101; cv=none; b=qmWhKK1ZGW0kKZOVajexVKTTlkRCJiQf74ikU6qCx9dDqdcwKsW1dfds/kDQgEPo3QBRj5hZGCc+9biuOuMhOo9xOFsITd4O4GxR44Pnaec3gFKZUCuodpc2C8zpZEg/asCpfsjF7S4YxTq0XQltpASrb1UM6rebSOrrjl1jNqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887101; c=relaxed/simple; bh=m4aH/Yz8XzEo0yFJCJOksZDuFGvnHDe2X34383+pcBM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KQryDDDnxveVSy/YRN3nNkL+zt7zkSx/CpHSS5rRXCUMTLw6i5j5ZPmG85ed82Y//UyOGJiGGZ6qgyebbReh5ssDeCsyz60/1XtdF/k5Y7UvYdxWQD5pDgIbvZYG7lkvj0zkcGVAw+bw/MjgpSspx4x9PAExEvWrL6heZxBptw4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DYGw8oAE; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DYGw8oAE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 853D91F000E9; Wed, 27 May 2026 13:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887100; bh=r5NRhqigYzrCkdXL8Gc7QWsb7ihVfqtqIkuM5NV9dGc=; h=From:To:Cc:Subject:Date:Reply-To; b=DYGw8oAEvbXufS14XelAFdgk1ex7SlH5xFfIvm0nn4VmOf3zDa0YNxDAyLi/Ou9eu 0faS1e+u1hJbspp6SIkeXnz4ZBw449yY67Rfdtq+ogBlZ503AUUMMaUTTwX2G/hkKV PdHJh5xQW3qpFj9Y4ieaUqYzRa9nXg8tNcP3DF0k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46050: md/raid10: fix deadlock with check operation and nowait requests Date: Wed, 27 May 2026 14:59:41 +0200 Message-ID: <2026052753-CVE-2026-46050-8377@gregkh> X-Mailer: git-send-email 2.54.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=5012; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1Q4ChP85PJCMtg3os4c2vyjDiqVe00PjHNqxDkZ/WVY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir3rfF8R3/5r8gjv9rPytK9fnfejxqkzYE7f3X9oOt dqFk67d7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJXI5gmO9o1nLGo/3blVwe AcENa3m9oxxUUxgWTNwd0Tw1um9G8hQPN79bKzk7pdqvAQA= 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/raid10: fix deadlock with check operation and nowait requests When an array check is running it will raise the barrier at which point normal requests will become blocked and increment the nr_pending value to signal there is work pending inside of wait_barrier(). NOWAIT requests do not block and so will return immediately with an error, and additionally do not increment nr_pending in wait_barrier(). Upstream change commit 43806c3d5b9b ("raid10: cleanup memleak at raid10_make_request") added a call to raid_end_bio_io() to fix a memory leak when NOWAIT requests hit this condition. raid_end_bio_io() eventually calls allow_barrier() and it will unconditionally do an atomic_dec_and_test(&conf->nr_pending) even though the corresponding increment on nr_pending didn't happen in the NOWAIT case. This can be easily seen by starting a check operation while an application is doing nowait IO on the same array. This results in a deadlocked state due to nr_pending value underflowing and so the md resync thread gets stuck waiting for nr_pending to == 0. Output of r10conf state of the array when we hit this condition: crash> struct r10conf barrier = 1, nr_pending = { counter = -41 }, nr_waiting = 15, nr_queued = 0, Example of md_sync thread stuck waiting on raise_barrier() and other requests stuck in wait_barrier(): md1_resync [<0>] raise_barrier+0xce/0x1c0 [<0>] raid10_sync_request+0x1ca/0x1ed0 [<0>] md_do_sync+0x779/0x1110 [<0>] md_thread+0x90/0x160 [<0>] kthread+0xbe/0xf0 [<0>] ret_from_fork+0x34/0x50 [<0>] ret_from_fork_asm+0x1a/0x30 kworker/u1040:2+flush-253:4 [<0>] wait_barrier+0x1de/0x220 [<0>] regular_request_wait+0x30/0x180 [<0>] raid10_make_request+0x261/0x1000 [<0>] md_handle_request+0x13b/0x230 [<0>] __submit_bio+0x107/0x1f0 [<0>] submit_bio_noacct_nocheck+0x16f/0x390 [<0>] ext4_io_submit+0x24/0x40 [<0>] ext4_do_writepages+0x254/0xc80 [<0>] ext4_writepages+0x84/0x120 [<0>] do_writepages+0x7a/0x260 [<0>] __writeback_single_inode+0x3d/0x300 [<0>] writeback_sb_inodes+0x1dd/0x470 [<0>] __writeback_inodes_wb+0x4c/0xe0 [<0>] wb_writeback+0x18b/0x2d0 [<0>] wb_workfn+0x2a1/0x400 [<0>] process_one_work+0x149/0x330 [<0>] worker_thread+0x2d2/0x410 [<0>] kthread+0xbe/0xf0 [<0>] ret_from_fork+0x34/0x50 [<0>] ret_from_fork_asm+0x1a/0x30 The Linux kernel CVE team has assigned CVE-2026-46050 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.99 with commit 8fc3d7b23d139e3cbc944c15d99b3cdbed797d2d and fixed in 6.6.140 with commit 965d6162dd88cc7cc193cf7f5bfc132d8bbf0523 Issue introduced in 6.12.39 with commit 2941155d9a5ae098b480d551f3a5f8605d4f9af5 and fixed in 6.12.86 with commit 42fe37c90184cd1568838b84b488934c3671c963 Issue introduced in 6.16 with commit 43806c3d5b9bb7d74ba4e33a6a8a41ac988bde24 and fixed in 6.18.27 with commit cac2106bb9a2180b288079b49ed626414fb5bc45 Issue introduced in 6.16 with commit 43806c3d5b9bb7d74ba4e33a6a8a41ac988bde24 and fixed in 7.0.4 with commit 1cdff2937c618f81058422bbdc4974a3e7ec9379 Issue introduced in 6.16 with commit 43806c3d5b9bb7d74ba4e33a6a8a41ac988bde24 and fixed in 7.1-rc1 with commit 7d96f3120a7fb7210d21b520c5b6f495da6ba436 Issue introduced in 5.15.189 with commit 10c6021a609deb95f23f0cc2f89aa9d4bffb14c7 Issue introduced in 6.1.146 with commit 9af149ca9d0dab6e59e813519d309eff62499864 Issue introduced in 6.15.7 with commit ed7bcd9f617e4107ac0813c516e72e6b8f6029bd 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-46050 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/raid10.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/965d6162dd88cc7cc193cf7f5bfc132d8bbf0523 https://git.kernel.org/stable/c/42fe37c90184cd1568838b84b488934c3671c963 https://git.kernel.org/stable/c/cac2106bb9a2180b288079b49ed626414fb5bc45 https://git.kernel.org/stable/c/1cdff2937c618f81058422bbdc4974a3e7ec9379 https://git.kernel.org/stable/c/7d96f3120a7fb7210d21b520c5b6f495da6ba436