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 E3FFD296BD0 for ; Tue, 30 Dec 2025 12:10:45 +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=1767096646; cv=none; b=LdV25dKcUiGuLJsbk9LMsuDd4CExul5kyTdt85Ql7CBrY9ZvFYt+K6O06Xqv6X2vyrarIUDVGoW43sEZoib6aXmNbyJA54pDmoFVrhG1tqKWeQzAPKMsMrx56tUTPQcpm6LOvU1xtmUbH596LUqAUkE5PWbPRMjvHI08vHrK/PY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096646; c=relaxed/simple; bh=uz2a5k7pK+XrYlCSPPQ7kZOM5Z/ycavYC7ctFdN8pWc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lqykdsAmNPRPllllG5urnqSdIf36AaYUkrgjUW+FmOcfHXjCwYrzqh3TELns8S16CTr1e6mSf0pJ57Ct7vFiF9ZFuzrlxJbpWnr2T4e69q21uWlM9t5ML4RefBG9JYb3ILDWMbLg6HELOIoBW7Pqacbq3YqGLmmcxrz4FVNarw0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H5bEvlZM; 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="H5bEvlZM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74C6DC4CEFB; Tue, 30 Dec 2025 12:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096645; bh=uz2a5k7pK+XrYlCSPPQ7kZOM5Z/ycavYC7ctFdN8pWc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=H5bEvlZMPDdxdBQXLtHiYlmd8LozFde7GspMZdUjPAjXzAcPZXVkrYbNtFBtnkRkT CEZt94L9QxOyIUR9+w6Yo3DadEP8ScDC6grzBRnROkbOJw9jZzXg0h2jorsS49j82U Hn/Z+kooIxAkUCeZ8ziA/D2vPSKf9FR0g06KNZ1I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50815: ext2: Add sanity checks for group and filesystem size Date: Tue, 30 Dec 2025 13:09:19 +0100 Message-ID: <2025123014-CVE-2022-50815-6923@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1971; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mEUH1Yj9XUnfskhYslUnMiKesKF37ljyLjZKaizT0+M=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB14lCU+UjGFYIf3n0na7ZeIF9f1CfZoxd43276nie zx37RGXjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI0jqG+R7mBf1rNzIeazAx uNz+5sDSmW9ZvRnmp+gmOUcu8Ws8m3eKzfWGi1nNGzYZAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ext2: Add sanity checks for group and filesystem size Add sanity check that filesystem size does not exceed the underlying device size and that group size is big enough so that metadata can fit into it. This avoid trying to mount some crafted filesystems with extremely large group counts. The Linux kernel CVE team has assigned CVE-2022-50815 to this issue. Affected and fixed versions =========================== Fixed in 5.19.17 with commit 40ff52527daec00cf1530c17a95636916ddd3b38 Fixed in 6.0.3 with commit 321440079763998076b75e0c802524e2218a7d97 Fixed in 6.1 with commit d766f2d1e3e3bd44024a7f971ffcf8b8fbb7c5d2 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-2022-50815 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/ext2/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/40ff52527daec00cf1530c17a95636916ddd3b38 https://git.kernel.org/stable/c/321440079763998076b75e0c802524e2218a7d97 https://git.kernel.org/stable/c/d766f2d1e3e3bd44024a7f971ffcf8b8fbb7c5d2