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 E801540BE6 for ; Fri, 17 May 2024 12:25:26 +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=1715948727; cv=none; b=akhhE59xWGVpgGhurVZO5rAkJfTMZntzOVC2MRwZSTaz32uteyXKD4GUGUZquKgnN4pEuI226HyAir9jxg4dMhy6sNvzZbqc8T/h3CWF91RGLdO9rb/9VsK+XdomU7UPywQ5kN4oAdJqvYxU7zpV5c0xdVFQu/VenGz/GxXcTss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715948727; c=relaxed/simple; bh=l+21OPedTwZejCXbduGlJ4VU5Tr0fHn9k2s6WvVeaTo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ROgDQTJ9Um+RGNvOoAb6z0LOCHp7vHOQWvX6bu0fVDtqnuiSi7z/3P4Qi7JUSxQHAKDZ8H0vLHM7OiduaKdQKodkXC9lVraBaTgO5cNMjqo7DN7wRswD5gIxrHq197xjvuw/EHIcMx76UVE4artWUVAIvmb7wiwEvlSgcrwj2MY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UwqyrM1Q; 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="UwqyrM1Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D644C2BD10; Fri, 17 May 2024 12:25:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715948726; bh=l+21OPedTwZejCXbduGlJ4VU5Tr0fHn9k2s6WvVeaTo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UwqyrM1Q+ByN797ZCbdKeMLcyx2VLGOPwrJLbLAb/AyAWgwDB1Y/x2FVZW9uR4KEA yT8K45KeDVM97TPvGtwM0VuPbpXOuGvr5UshzIx4lQTF0aaaDLXtzp9f+9gMuX7Aly Z2Xuf07wMIeuPp2g+wRJkeQ0Rz+jLY/1UxbkyZ1I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35787: md/md-bitmap: fix incorrect usage for sb_index Date: Fri, 17 May 2024 14:25:08 +0200 Message-ID: <2024051707-CVE-2024-35787-dede@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=2652; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=l+21OPedTwZejCXbduGlJ4VU5Tr0fHn9k2s6WvVeaTo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuPouX/v/dWam6R3frzmgPr93Wj5llMy/d3fkt3nPFI ebaSi3ZjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIgwiGBXuqyjZopU/JWtNV J8Tc2KNtIcr+nmHBpivr5CXun+34+6/LVL96yf5rL7jEAQ== 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/md-bitmap: fix incorrect usage for sb_index Commit d7038f951828 ("md-bitmap: don't use ->index for pages backing the bitmap file") removed page->index from bitmap code, but left wrong code logic for clustered-md. current code never set slot offset for cluster nodes, will sometimes cause crash in clustered env. Call trace (partly): md_bitmap_file_set_bit+0x110/0x1d8 [md_mod] md_bitmap_startwrite+0x13c/0x240 [md_mod] raid1_make_request+0x6b0/0x1c08 [raid1] md_handle_request+0x1dc/0x368 [md_mod] md_submit_bio+0x80/0xf8 [md_mod] __submit_bio+0x178/0x300 submit_bio_noacct_nocheck+0x11c/0x338 submit_bio_noacct+0x134/0x614 submit_bio+0x28/0xdc submit_bh_wbc+0x130/0x1cc submit_bh+0x1c/0x28 The Linux kernel CVE team has assigned CVE-2024-35787 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit d7038f951828 and fixed in 6.6.24 with commit 736ad6c577a3 Issue introduced in 6.6 with commit d7038f951828 and fixed in 6.7.12 with commit 55e55eb65fd5 Issue introduced in 6.6 with commit d7038f951828 and fixed in 6.8.3 with commit 5a95815b1742 Issue introduced in 6.6 with commit d7038f951828 and fixed in 6.9 with commit ecbd8ebb51bf 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-35787 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-bitmap.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/736ad6c577a367834118f57417038d45bb5e0a31 https://git.kernel.org/stable/c/55e55eb65fd5e09faf5a0e49ffcdd37905aaf4da https://git.kernel.org/stable/c/5a95815b17428ce2f56ec18da5e0d1b2a1a15240 https://git.kernel.org/stable/c/ecbd8ebb51bf7e4939d83b9e6022a55cac44ef06