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 F16761E883C for ; Mon, 21 Oct 2024 12:02:52 +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=1729512173; cv=none; b=MDCWiVoLzDRrcJAiDKPoAmzSU35vCqWVe7p/Peb2WjJs3YAH+qWm39abiZDOWWT4aa1mCL8vfGSXx6FPxrxiDxa5UTLdaGoSxeGcnSrSV+OPJMI43JemIrSEUj0S5cPoSobEnH+xchjytHmEOxhdiIlkibMNjmHfS/XrXJKghsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512173; c=relaxed/simple; bh=o+1eAQsKmNhmsrTxkIezTTyW4VAwyc9S86hgQxPlrQc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D/fhfEsSogw96+kTMwHr9XoaDvfMxph5XqYU7kHhm3xFU8qg6evCcTYxpEXqV7zu3iRD0fK2hFPkdjIMVjnziuayjd+BHqke40fa1c9etZwMkk8p2w6zG2CwnWIdO+LjpPm+siDXKccEZ4d6C8McfMG4Sb9vgosJEkNPFmc6NTU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2iEHDIXF; 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="2iEHDIXF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A5FCC4CEC3; Mon, 21 Oct 2024 12:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512172; bh=o+1eAQsKmNhmsrTxkIezTTyW4VAwyc9S86hgQxPlrQc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2iEHDIXFv4PoxCHRjeo2jOwv0lZPCl/nX1W+HxwZuPJK3DFNQdKasxLCmkCW0RHdF oBS+XL3vzwo4vJmXot+Ny65UlNbYXu1bQzrEsMmHGwluLc/iSR0VdVTzIGA6LVqQA7 PPvZqldVDXHwIqiYVBrxgfJ67G3NwQ0h+RCSDK70= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47700: ext4: check stripe size compatibility on remount as well Date: Mon, 21 Oct 2024 14:00:28 +0200 Message-ID: <2024102114-CVE-2024-47700-00ff@gregkh> X-Mailer: git-send-email 2.47.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=2360; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=o+1eAQsKmNhmsrTxkIezTTyW4VAwyc9S86hgQxPlrQc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliTn7S/GnxOyfr/Uj5P3P7zdP2v5mmBy5zuv/0169zi 5Y/v304qCOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmUprIsKDf+1XmRv73+dHq Mc/+1/ya227+YjrDPJtj/jn9K7PPXKqyOfZyzmrpmCsm6wE= 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: ext4: check stripe size compatibility on remount as well We disable stripe size in __ext4_fill_super if it is not a multiple of the cluster ratio however this check is missed when trying to remount. This can leave us with cases where stripe < cluster_ratio after remount:set making EXT4_B2C(sbi->s_stripe) become 0 that can cause some unforeseen bugs like divide by 0. Fix that by adding the check in remount path as well. The Linux kernel CVE team has assigned CVE-2024-47700 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit c3defd99d58c and fixed in 6.6.54 with commit faeff8b1ee2e Issue introduced in 6.5 with commit c3defd99d58c and fixed in 6.10.13 with commit 297615e992bb Issue introduced in 6.5 with commit c3defd99d58c and fixed in 6.11.2 with commit a31b712f7544 Issue introduced in 6.5 with commit c3defd99d58c and fixed in 6.12-rc1 with commit ee85e0938aa8 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-47700 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: fs/ext4/super.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/faeff8b1ee2eaa5969c8e994d66c3337298cefed https://git.kernel.org/stable/c/297615e992bbb30a55c158141086be6505d5d722 https://git.kernel.org/stable/c/a31b712f75445d52fc0451dc54fd7b16a552cb7c https://git.kernel.org/stable/c/ee85e0938aa8f9846d21e4d302c3cf6a2a75110d