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 2C74B2980D0 for ; Wed, 18 Jun 2025 11:16: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=1750245405; cv=none; b=qP5gqkNnMQLcj3rj6k4iXsQ3x7LmWn/2iSnokILge2xary9lys7J3imIxqWikzjNyN0a4iRhtbsG4GxYPMghwrv0elT9ZJKfPFST4Dk+7Oj5HVfi4gWoSlGXUKnXZkJFeJgZwN7E49IPcE4fP901i+tcWxAtg8clcMCJac/b9es= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245405; c=relaxed/simple; bh=EgAPsBjVu4wJc6jjheWhRM/YRcz3eeXkVHQvKyjDTEs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VAHJNZPZlkK9P15y78lPJwPXysWTnam0EaNMaMgnjgNfdcYNWDgcKOdhEXW214zk12nH/cCYpIPWHcYZkPEuUxjuFtGHjN8owoXbF2MXzE/4J6MWlWexMqVqF9ECv55Sl5TVBp4rPdLwFQo3rzgsn0QvbTJmei2wql2jqpARzjw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tJAbUHNl; 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="tJAbUHNl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FF75C4CEE7; Wed, 18 Jun 2025 11:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245405; bh=EgAPsBjVu4wJc6jjheWhRM/YRcz3eeXkVHQvKyjDTEs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tJAbUHNlN94zQKc3/Wxz53g5rGtoDjMcKKOkZUlpqCXO6ciXmK1SJ7ypx2n2p8847 58djVToIU6988L3s4CZnHK2aKyZQrg2OmtvMXc9gC6kkB1wi7pg+CzQXwmhsuOofs0 ul0kM+cIcH2GJ2rBYDkmsJ6IeLSjkcRAhF5tXrsA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50205: ext2: Add more validity checks for inode counts Date: Wed, 18 Jun 2025 13:04:30 +0200 Message-ID: <2025061841-CVE-2022-50205-4197@gregkh> X-Mailer: git-send-email 2.49.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=2706; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aGl5IOdrxpqYiL8ZEjzonvietMGaTWkZyYGMdqmHSHQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc6bWm069z3Z7LV/WMruClJ86tmq69mVn3R+/rlhi2 rDa7d7JjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIkcUM81P1nCsyJTssu0Qk OKafv/h1etux3QwLrosem+OiOoHhiPqDVhF5BQ2fQAcFAA== 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 more validity checks for inode counts Add checks verifying number of inodes stored in the superblock matches the number computed from number of inodes per group. Also verify we have at least one block worth of inodes per group. This prevents crashes on corrupted filesystems. The Linux kernel CVE team has assigned CVE-2022-50205 to this issue. Affected and fixed versions =========================== Fixed in 4.14.291 with commit 0bcdc31094a12b4baf59e241feabc9787cf635fa Fixed in 4.19.256 with commit 07303a9abe3a997d9864fb4315e34b5acfe8fc25 Fixed in 5.4.211 with commit b3f423683818cfe15de14d5d9dff44148ff16bbf Fixed in 5.10.137 with commit d08bb199a406424a8ed0009efdf41710e6d849ee Fixed in 5.15.61 with commit 96b18d3a1be0354ccce43f0ef61b5a3d7e432552 Fixed in 5.18.18 with commit 7a48fdc88a3c35e046a6a0a38eba00f21c65b16e Fixed in 5.19.2 with commit 5e63c5fe9123fa76ffaeff26c211308736ec3a07 Fixed in 6.0 with commit fa78f336937240d1bc598db817d638086060e7e9 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-50205 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/0bcdc31094a12b4baf59e241feabc9787cf635fa https://git.kernel.org/stable/c/07303a9abe3a997d9864fb4315e34b5acfe8fc25 https://git.kernel.org/stable/c/b3f423683818cfe15de14d5d9dff44148ff16bbf https://git.kernel.org/stable/c/d08bb199a406424a8ed0009efdf41710e6d849ee https://git.kernel.org/stable/c/96b18d3a1be0354ccce43f0ef61b5a3d7e432552 https://git.kernel.org/stable/c/7a48fdc88a3c35e046a6a0a38eba00f21c65b16e https://git.kernel.org/stable/c/5e63c5fe9123fa76ffaeff26c211308736ec3a07 https://git.kernel.org/stable/c/fa78f336937240d1bc598db817d638086060e7e9