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 64846288C05 for ; Wed, 18 Jun 2025 11:05:38 +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=1750244738; cv=none; b=unTlNUwNDJ5I6TvTR6o9sQ6hNxiKyikoK4c9ihkWbJi7crKh2Vm2EJ6kVVQEDt1spD25sgLlfAtSSool+3i0Yduh+lh/TnREWc8s5VKB8yPWoGiee5boM89Y6CnohMKj5dzEWMAU+XqFoh9hZeCBhhCciYDOMJdk6+b1OZsdkFs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244738; c=relaxed/simple; bh=Opf+so7JAZDkBfMABaddLeaaXlxHxw8oZHMtun1busA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l7JWOshnoFr5UIdW1jzGKxtSJaREZ7o3Mg4/9ZWagOesr6vbEShI0vlqsuEbL/gcQNqBvVTfjpjD9ZVjltTjNjKXASsh4VJizeMAo9lE1QWsFLLqUQPc43z1FZufwCUsCVp2N8KMg8/k0U9+qprBTJxVKvRxaA77r2W/kWX97OI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jBC9Fp6X; 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="jBC9Fp6X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1437C4CEED; Wed, 18 Jun 2025 11:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244738; bh=Opf+so7JAZDkBfMABaddLeaaXlxHxw8oZHMtun1busA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jBC9Fp6X2PMVZrrd/rXmjTB5jhpaPSAM/mE2fiVJAGIebXaYbaAFWtqNXfg1oloU/ NAgPxz0nsU0Jk7yl5MGSJyKYWfexbHFrAhTvbvNbpIxEol+/ui/wDUwZWS7AmFgUqY AF5D9D2Pup0zOuYb2gv3IkgQOG6Xs9dCwhoAmtTo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50020: ext4: avoid resizing to a partial cluster size Date: Wed, 18 Jun 2025 13:01:25 +0200 Message-ID: <2025061835-CVE-2022-50020-6f27@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=2778; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/eOdoI6X3rYO/IPmctSoYHunLvTWBBYo4AQRGZ3alhg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc4Lzo6dr+qscvTRv+W3viMo5Szm87q52sG6YdV5+b 0b16/O2HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARv1UM8yOLc1R8Qh282z0N Zs2duYHnRCnfTYb5lU0v731NX++z8/DlSV8SXq9ianJ9CQA= 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: ext4: avoid resizing to a partial cluster size This patch avoids an attempt to resize the filesystem to an unaligned cluster boundary. An online resize to a size that is not integral to cluster size results in the last iteration attempting to grow the fs by a negative amount, which trips a BUG_ON and leaves the fs with a corrupted in-memory superblock. The Linux kernel CVE team has assigned CVE-2022-50020 to this issue. Affected and fixed versions =========================== Fixed in 4.9.326 with commit 53f62a4201be1cfc1e3c971e566888b182c3ffb0 Fixed in 4.14.291 with commit 952b3dc02baaae6a69c71c0aca23e06741182d9a Fixed in 4.19.256 with commit 7bdfb01fc5f6b3696728aeb527c50386e0ee09a1 Fixed in 5.4.211 with commit a6805b3dcf5cd41f2ae3a03dca43411135b99849 Fixed in 5.10.138 with commit 80288883294c5b4ed18bae0d8bd9c4a12f297074 Fixed in 5.15.63 with commit 72b850a2a996f72541172e7cf686d54a2b29bcd8 Fixed in 5.19.4 with commit 0082e99a9074ff88eff729c70c93454c8588d8e1 Fixed in 6.0 with commit 69cb8e9d8cd97cdf5e293b26d70a9dee3e35e6bd 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-50020 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/resize.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/53f62a4201be1cfc1e3c971e566888b182c3ffb0 https://git.kernel.org/stable/c/952b3dc02baaae6a69c71c0aca23e06741182d9a https://git.kernel.org/stable/c/7bdfb01fc5f6b3696728aeb527c50386e0ee09a1 https://git.kernel.org/stable/c/a6805b3dcf5cd41f2ae3a03dca43411135b99849 https://git.kernel.org/stable/c/80288883294c5b4ed18bae0d8bd9c4a12f297074 https://git.kernel.org/stable/c/72b850a2a996f72541172e7cf686d54a2b29bcd8 https://git.kernel.org/stable/c/0082e99a9074ff88eff729c70c93454c8588d8e1 https://git.kernel.org/stable/c/69cb8e9d8cd97cdf5e293b26d70a9dee3e35e6bd