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 9C544524A5 for ; Fri, 17 May 2024 13:24:06 +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=1715952246; cv=none; b=BpmF7GhEC3xI8lMp83F8Pvcx+aGS7hc1CC8jLXxkzpm6CXYQpkf62aHJZgPJ22NUzRQCNpmdJzQf0stM+qqE7RDPkKegQVSWWrgLGT4C+kFX+xdrKV+gO7QuH3HBAHF2mhoeQiwLhMpzBmT1sylCaaQgO3bllh7FB/iDcEOJuZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715952246; c=relaxed/simple; bh=eMPep6zRzwM5r+eQWH8agwvT/N/rm3FmfU8DYVmqj7E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MMwSpIYk2+twIE8EWjD532f2dDKfpJzxJzVbAbW1qkDkEho0PgI8CRpJqOvzMY3CfvNyA5Ee5D6N526WTH9ZDsu64V205EA4QrW89pVlunWGNYieBVzWb8N+EkMeL+stC79Tv3Qe2V0epVcTZufTWcuvm2ucTcOYSiO9cQvzlOo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MK4FROx+; 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="MK4FROx+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF975C2BD10; Fri, 17 May 2024 13:24:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715952246; bh=eMPep6zRzwM5r+eQWH8agwvT/N/rm3FmfU8DYVmqj7E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MK4FROx+wpK2ZLEh2DfRCV24J9ki8qs7I/ih5oL1yxRBfZmgCyvEo6iZTqpzD/EFT AMIT6y4B2zHSrpg+byMml9tpQrPjbwLXBH0P7xZYhKqNpzvMqBWYxQhn+snp5CDXZO MKxrSAgqmvbQCIeUuOL+R3NyMarHmmr3Rcp41Kfo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35808: md/dm-raid: don't call md_reap_sync_thread() directly Date: Fri, 17 May 2024 15:23:48 +0200 Message-ID: <2024051740-CVE-2024-35808-2bf6@gregkh> X-Mailer: git-send-email 2.45.1 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=2323; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eMPep6zRzwM5r+eQWH8agwvT/N/rm3FmfU8DYVmqj7E=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuUTEOu89GdnF/0Tvek2X4xTb5TsW+yBUeD+v+p7CKa IjO3/m6I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbi9YVhwfUNO4SZ/RzOWp85 6dQe+zDgmb2aFMM8w9oLTVfNGS2j//pFptl0rHvO/K0NAA== 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: md/dm-raid: don't call md_reap_sync_thread() directly Currently md_reap_sync_thread() is called from raid_message() directly without holding 'reconfig_mutex', this is definitely unsafe because md_reap_sync_thread() can change many fields that is protected by 'reconfig_mutex'. However, hold 'reconfig_mutex' here is still problematic because this will cause deadlock, for example, commit 130443d60b1b ("md: refactor idle/frozen_sync_thread() to fix deadlock"). Fix this problem by using stop_sync_thread() to unregister sync_thread, like md/raid did. The Linux kernel CVE team has assigned CVE-2024-35808 to this issue. Affected and fixed versions =========================== Issue introduced in 3.10 with commit be83651f0050 and fixed in 6.7.12 with commit 347dcdc15a17 Issue introduced in 3.10 with commit be83651f0050 and fixed in 6.8.3 with commit 9e59b8d76ff5 Issue introduced in 3.10 with commit be83651f0050 and fixed in 6.9 with commit cd32b27a66db 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-35808 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/347dcdc15a1706f61aa545ae498ededdf31aeebc https://git.kernel.org/stable/c/9e59b8d76ff511505eb0dd1478329f09e0f04669 https://git.kernel.org/stable/c/cd32b27a66db8776d8b8e82ec7d7dde97a8693b0