From mboxrd@z Thu Jan 1 00:00:00 1970 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 78313157A69 for ; Wed, 3 Apr 2024 17:33:22 +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=1712165602; cv=none; b=fsaZql4O0O4Wl3e5npXVp0uYBN8fANt1Uv1miYWy5ec75M4Na+j73veg36w2DvbUH+j/wj3SmaGBJRSMS7tzSNagEDppsciuyI+5Aa7ncmLlR5pf9piJzjB9UA4LL2E9uzqde6/pHbgS4Q6BPMCL1vs8CJKhNbYihB+t5kb/TwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165602; c=relaxed/simple; bh=+PJF6zPqNW359vge20WMvVNKpqTCoF0Rz5iXLCSgzoI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KDcLk227x/Cmy5nKZN3NYmBQmceExZfaQ4amQpRoSxcy+khTnA8MaEse4sopbnf1P4eQ9fs0FmGrDKixi+rBtCE/uDQ5IZ1f56R3pRB4qxdnvXdXLK5JP2GEiRySef3VwM/xlUAriF0K0c9fzGc7q6YcN+kZgiYPnglU7dCp5gQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X1IUrnLw; 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="X1IUrnLw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCD9DC433C7; Wed, 3 Apr 2024 17:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712165602; bh=+PJF6zPqNW359vge20WMvVNKpqTCoF0Rz5iXLCSgzoI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=X1IUrnLwN/TA78KfT/HhQ0qjL5TmA6qo3XZGYvr8yks2/VMKP2KsnfCyntWUZN11z gkD5JcyErv5BA1OPXsyuJLNHWAX7QOrwfvTJWsA6innC3frmI4ZZdakY822pOYcPoY hwVM+gVcOs0lB2DAxrDU7N+3bHx0C+vWtMB62SfM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26774: ext4: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt Date: Wed, 3 Apr 2024 19:31:41 +0200 Message-ID: <2024040308-CVE-2024-26774-52d9@gregkh> X-Mailer: git-send-email 2.44.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=2059; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+PJF6zPqNW359vge20WMvVNKpqTCoF0Rz5iXLCSgzoI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8k2JC4t22iUzYYHRn3r3NU8O6Vu5U+DDhm9XTJk2Ou p2nGb8u7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJJBxjmF90J6xlxbp4V8XT cx/ftTt04PVzliSG+SH5T29MShdJeZapr/6CYVf+pFauEgA= 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: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt Determine if bb_fragments is 0 instead of determining bb_free to eliminate the risk of dividing by zero when the block bitmap is corrupted. The Linux kernel CVE team has assigned CVE-2024-26774 to this issue. Affected and fixed versions =========================== Fixed in 5.15.150 with commit 687061cfaa2a Fixed in 6.1.80 with commit 8b40eb2e716b Fixed in 6.6.19 with commit f32d2a745b02 Fixed in 6.7.7 with commit 8cf9cc602cfb Fixed in 6.8 with commit 993bf0f4c393 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-26774 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/mballoc.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/687061cfaa2ac3095170e136dd9c29a4974f41d4 https://git.kernel.org/stable/c/8b40eb2e716b503f7a4e1090815a17b1341b2150 https://git.kernel.org/stable/c/f32d2a745b02123258026e105a008f474f896d6a https://git.kernel.org/stable/c/8cf9cc602cfb40085967c0d140e32691c8b71cf3 https://git.kernel.org/stable/c/993bf0f4c393b3667830918f9247438a8f6fdb5b