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 7F53F215764 for ; Wed, 26 Feb 2025 02:13:41 +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=1740536021; cv=none; b=NJNBa9KC6r9uutsVINefxe2+gmx/gEhKohfLQxMNf3ytUW689Xa8/gOKg9oZPFIMVOqXuTzuCPYqmTrdWLDYLLce7uOkjg9K1WpfKruvk8Jt2XELXqJm9LEnQt2+f+L8aOMstPWqTJ9okHB6g8CQlQrM+PeSEoS+jQUviBxQgp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536021; c=relaxed/simple; bh=SR06uhEOvurjd78oQUveOdjUy5Xa5l2Rbu1gzxfxeyU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IGEXx7Yf9VPdBBSO/MqLq/xHC9CUzIqvnFaoZyBTpOo/6HTlphWOtwkuYql8IO3RXBWa6C67LBcd1oOncq6EAH5shGt9GMIG7MVRxW6FCo2+4N+ZsEZpO7kkf2BVEm8mQ0q0PHr7qQV0vzUQqSiNI0eMsndiJvMDMbrzPzMHSQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ao3vld2S; 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="ao3vld2S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56674C4CEDD; Wed, 26 Feb 2025 02:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536021; bh=SR06uhEOvurjd78oQUveOdjUy5Xa5l2Rbu1gzxfxeyU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ao3vld2SU1wEQ3Gfn5r84DUTIC7D3R5OO6O3MDhStpo0dctOinHYcvuGOTVt5DVQU eC0zYamy1Y7MGJQTAsTYVLCxVYyjgEW6l0/l0+2cLUuqYK2mVf69JW05LJlZnfVRZO Uc+V3ovCaCb8gRkhJ7c7jqA9bk6ZyCumNK4YywNs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49343: ext4: avoid cycles in directory h-tree Date: Wed, 26 Feb 2025 03:10:17 +0100 Message-ID: <2025022641-CVE-2022-49343-bddc@gregkh> X-Mailer: git-send-email 2.48.1 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=2793; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SR06uhEOvurjd78oQUveOdjUy5Xa5l2Rbu1gzxfxeyU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yp/u9ZKPtu+YE5zEw3fvb4n4xoT9K0SZ/3jofGK0Z C1ZePRdRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEQ4xhfuWvtSEerkpvttrN aRO+yHhPkenSd4YFR5MLdFgvVik/3dKxMv3KbOPjVsF7AQ== 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 cycles in directory h-tree A maliciously corrupted filesystem can contain cycles in the h-tree stored inside a directory. That can easily lead to the kernel corrupting tree nodes that were already verified under its hands while doing a node split and consequently accessing unallocated memory. Fix the problem by verifying traversed block numbers are unique. The Linux kernel CVE team has assigned CVE-2022-49343 to this issue. Affected and fixed versions =========================== Fixed in 4.14.283 with commit 24b8206fec1db21d7e82f21f0b2ff5e5672cf5b3 Fixed in 4.19.247 with commit b3ad9ff6f06c1dc6abf7437691c88ca3d6da3ac0 Fixed in 5.4.198 with commit e157c8f87e8fac112d6c955e69a60cdb9bc80a60 Fixed in 5.10.121 with commit ff4cafa51762da3824881a9000ca421d4b78b138 Fixed in 5.15.46 with commit 3a3ce941645407cd0b0b7f01ad9e2ea3770f46cc Fixed in 5.17.14 with commit d5a16a6df2c16eaf4de04948553ef0089dee463f Fixed in 5.18.3 with commit 6084240bfc44bf265ab6ae7d96980469b05be0f1 Fixed in 5.19 with commit 3ba733f879c2a88910744647e41edeefbc0d92b2 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-49343 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/namei.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/24b8206fec1db21d7e82f21f0b2ff5e5672cf5b3 https://git.kernel.org/stable/c/b3ad9ff6f06c1dc6abf7437691c88ca3d6da3ac0 https://git.kernel.org/stable/c/e157c8f87e8fac112d6c955e69a60cdb9bc80a60 https://git.kernel.org/stable/c/ff4cafa51762da3824881a9000ca421d4b78b138 https://git.kernel.org/stable/c/3a3ce941645407cd0b0b7f01ad9e2ea3770f46cc https://git.kernel.org/stable/c/d5a16a6df2c16eaf4de04948553ef0089dee463f https://git.kernel.org/stable/c/6084240bfc44bf265ab6ae7d96980469b05be0f1 https://git.kernel.org/stable/c/3ba733f879c2a88910744647e41edeefbc0d92b2