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 BE4C53F9C5 for ; Fri, 27 Dec 2024 13:55:47 +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=1735307747; cv=none; b=lsWrccbIha0oSleTxM0ApOQg+p9hPOMF5rBjGejN9h0nMeQiKgOXFZnJPdzCVug521m4njYyif5YXMVN5sx6M2MWkP9WzjlDfaJO+SoGbdtdGYwKw/DYS+2ivCnFxG6BE9/cqfI7o7F5/wfoUyD3Tw6b5wzdsFoVxCjeJ0v0UqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307747; c=relaxed/simple; bh=kmLjfI1HamtENO1elM6J90Mpo1taUXYkIvHgMG8ssbs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=syTHQsq6YuAABT4y/+RNf983QWgQ7p4BpnUASur/MUp/z1q8ybdfnWk5IODpB4g+eMVrgoeY/HOgrpk3wcTqIy61ISQcmBu722T4pncoBTgu//qCn5vUA7w+oumqqAPGbQ2fcSVrAbwjDKOeMuqYb8IzC/f+YYICiQ3JH2zoHiE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i/S7O2sV; 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="i/S7O2sV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29037C4CED0; Fri, 27 Dec 2024 13:55:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307747; bh=kmLjfI1HamtENO1elM6J90Mpo1taUXYkIvHgMG8ssbs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=i/S7O2sV+HaZsF2jNYEMfFjAY/Or4oBSxPvuJHlLWp23NiIivhpDutnPHKob09Eif xI035svHWmF2hXuHU8fG3pQuqfQwWxW1SLS0wkGtu0KN72z0CZUHOOeE1lpqQ+XRWF hv5geDVDC3WaJuKkgubIK2wqyXc2CKbfoLsPTZPA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53225: iommu/tegra241-cmdqv: Fix alignment failure at max_n_shift Date: Fri, 27 Dec 2024 14:53:11 +0100 Message-ID: <2024122735-CVE-2024-53225-8deb@gregkh> X-Mailer: git-send-email 2.47.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=2254; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kmLjfI1HamtENO1elM6J90Mpo1taUXYkIvHgMG8ssbs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5G5Vd5XLZUz18jCf4Rr0xCqjS3vnB/KPrNLenrA/qn u06usy5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZycxPDgomry2fd5nsxoTtX ZL7HaSveyyaKUxnmp/ybI3HsiahzuNbmmK/1FjtO/ZutAwA= 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: iommu/tegra241-cmdqv: Fix alignment failure at max_n_shift When configuring a kernel with PAGE_SIZE=4KB, depending on its setting of CONFIG_CMA_ALIGNMENT, VCMDQ_LOG2SIZE_MAX=19 could fail the alignment test and trigger a WARN_ON: WARNING: at drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c:3646 Call trace: arm_smmu_init_one_queue+0x15c/0x210 tegra241_cmdqv_init_structures+0x114/0x338 arm_smmu_device_probe+0xb48/0x1d90 Fix it by capping max_n_shift to CMDQ_MAX_SZ_SHIFT as SMMUv3 CMDQ does. The Linux kernel CVE team has assigned CVE-2024-53225 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 918eb5c856f6ce4cf93b4b38e4b5e156905c5943 and fixed in 6.12.2 with commit 85a1d70b86dbcb84a68e7e4942a5181276945988 Issue introduced in 6.12 with commit 918eb5c856f6ce4cf93b4b38e4b5e156905c5943 and fixed in 6.13-rc1 with commit a3799717b881aa0f4e722afb70e7b8ba84ae4f36 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-53225 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: drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.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/85a1d70b86dbcb84a68e7e4942a5181276945988 https://git.kernel.org/stable/c/a3799717b881aa0f4e722afb70e7b8ba84ae4f36