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 2DF141A38F4 for ; Wed, 11 Sep 2024 15:14:35 +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=1726067676; cv=none; b=DGjc8uc8bC1SzBQMLwWbEBJF+21wWXNFpSE6XwO7/Y6rUVqjrDG0feQIaVXbVcVbgNA0g59FfOODXlo9muouw+k4nWAaxecQOJ7mFmBVOQZOodkVHyfziIVkoYNQZegO0p1LiyIwET+o/zR+mY4SVt3jisTg1AFrYsJd5XgnL/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726067676; c=relaxed/simple; bh=9sHtg+1CeVNCTAD8aqvriZFji/vCWSJ5u+NVJWAzRaU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WCBXVB4SsgBwj8rhpvN7EsQMlFC6hB5CRtEitiySpFg7yCYV5EJTfb0+OOj2tXYbyftbSDrPecidcHV3mad4taXsfAOavFbyOjY8g4VhvOXgSkULAnNg0SKHBxRJ7GvyvD3CAxYJP4CBekmdyXRwkl6iHyxBogmoaFUGwFdT80Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tV7nXwUl; 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="tV7nXwUl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BA21C4CEC0; Wed, 11 Sep 2024 15:14:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726067675; bh=9sHtg+1CeVNCTAD8aqvriZFji/vCWSJ5u+NVJWAzRaU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tV7nXwUlK4UfTfpNnTDcLq8qpmI64T1dbDCktpFUqbeaS1ZzTyXifriPiIota2xi1 0JIU3a3HcZiciopm9TylRHt62PPBFmhH8Kfs8tW2XOeMFqKh/QaAquWY0tvUf9IwIa 9cCysmCbUoqlZv+75s47bwaWZ2sw2p9JL83SoOF0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-45023: md/raid1: Fix data corruption for degraded array with slow disk Date: Wed, 11 Sep 2024 17:14:19 +0200 Message-ID: <2024091109-CVE-2024-45023-d7f2@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=2282; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9sHtg+1CeVNCTAD8aqvriZFji/vCWSJ5u+NVJWAzRaU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkPNx9MbU6eFi5eOF2YhbX11frrbyeuNv7St0B3YbPrP wE2Ta+8jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIlA7Dggv1d0LXaB8K1Hdz 3pyT8N6r1mL6T4Z5picPlh1aK+j/8tq7sya/S/jKW+dYAQA= 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/raid1: Fix data corruption for degraded array with slow disk read_balance() will avoid reading from slow disks as much as possible, however, if valid data only lands in slow disks, and a new normal disk is still in recovery, unrecovered data can be read: raid1_read_request read_balance raid1_should_read_first -> return false choose_best_rdev -> normal disk is not recovered, return -1 choose_bb_rdev -> missing the checking of recovery, return the normal disk -> read unrecovered data Root cause is that the checking of recovery is missing in choose_bb_rdev(). Hence add such checking to fix the problem. Also fix similar problem in choose_slow_rdev(). The Linux kernel CVE team has assigned CVE-2024-45023 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 9f3ced792203 and fixed in 6.10.7 with commit 2febf5fdbf5d Issue introduced in 6.9 with commit 9f3ced792203 and fixed in 6.11-rc4 with commit c916ca35308d 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-45023 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/raid1.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/2febf5fdbf5d9a52ddc3e986971c8609b1582d67 https://git.kernel.org/stable/c/c916ca35308d3187c9928664f9be249b22a3a701