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 386F133D5 for ; Sat, 17 Aug 2024 09:22:56 +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=1723886576; cv=none; b=j4kNTo1VTu7y9s+oWcEdBfOhC/Qb9wqeVtekvFLveKhQFgvMmvP8YgDmFEn7xh4a0bcQWdtFrXt+VvV0FL4xnO6BdlF3krd3RxzbznUAPZMuBHmOq8nf2s1X860s2qOuhIr5AboQXUFq/5LDfKirnotreOSiRNUUYFmIZKE4+P8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886576; c=relaxed/simple; bh=kZAx5dCr+MRIZreLjPGJ1fLnxJ7Q6Q6XemzydrPGd+M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UyH+Sy7L0DHtSmv1yb/ZVEl0vqWjlYETfuFzfyfBZhajfBFewbcBsNKJu8aT5oau0uvwyGbCMAaLJB3IBPIo3P12HAKBtJAzRd0VnSkHraPSTuqUta8A1bVxvOEOiOrq4+TMPwJMy7XScgW6OVsrvHqvRYO/pAL2dT98TLpFTaI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HPy0CLNY; 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="HPy0CLNY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA197C116B1; Sat, 17 Aug 2024 09:22:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886576; bh=kZAx5dCr+MRIZreLjPGJ1fLnxJ7Q6Q6XemzydrPGd+M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HPy0CLNYMxeaBurWyNyM59NJaWxTSoBtKRyoMauR7z21Jxx1VKCwOtxU0VN8dU05J 8eG1Fa5Uev4IlAYrw9CZNPknOez/l0+tBmANDVL7XP5Nh7kK5e7oA8Hbuxi3/RFJyN NK8MTesgcEub0jaNGIOJ9a4ebX7C3/9OAKJeCqsU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43820: dm-raid: Fix WARN_ON_ONCE check for sync_thread in raid_resume Date: Sat, 17 Aug 2024 11:22:24 +0200 Message-ID: <2024081724-CVE-2024-43820-1bd6@gregkh> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2346; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kZAx5dCr+MRIZreLjPGJ1fLnxJ7Q6Q6XemzydrPGd+M=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsi/wa2RKMHxe1L+xsOX5vXthr7xYezSXL5jGosXY+ ZXv9qnXHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRbCmG+SkL7vTqTlk5+e79 nR1uay0Yjoc45THM92zY/fHcmzNNX6QOLYoJTH+ePvkDEwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: dm-raid: Fix WARN_ON_ONCE check for sync_thread in raid_resume rm-raid devices will occasionally trigger the following warning when being resumed after a table load because DM_RECOVERY_RUNNING is set: WARNING: CPU: 7 PID: 5660 at drivers/md/dm-raid.c:4105 raid_resume+0xee/0x100 [dm_raid] The failing check is: WARN_ON_ONCE(test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)); This check is designed to make sure that the sync thread isn't registered, but md_check_recovery can set MD_RECOVERY_RUNNING without the sync_thread ever getting registered. Instead of checking if MD_RECOVERY_RUNNING is set, check if sync_thread is non-NULL. The Linux kernel CVE team has assigned CVE-2024-43820 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 16c4770c75b1 and fixed in 6.10.3 with commit a5c15a78c0e1 Issue introduced in 6.9 with commit 16c4770c75b1 and fixed in 6.11-rc1 with commit 3199a34bfaf7 Issue introduced in 6.7.12 with commit af916cb66a80 Issue introduced in 6.8.3 with commit eaa8fc9b0928 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-2024-43820 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/dm-raid.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/a5c15a78c0e1631b7df822b56e8b6424e4d1ca3e https://git.kernel.org/stable/c/3199a34bfaf7561410e0be1e33a61eba870768fc