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 2F88020D513 for ; Wed, 26 Feb 2025 02:12:54 +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=1740535975; cv=none; b=FW/A4EEA3fIGMsXywZ4MYLyNu/3KRfD0wkCbA3zKLkj93mPrDmGE9Eni+wQRKIc7rOevhGanegx9wZhbSfPC2L0P78fUeY2suqCQc3NXd5CxSiSULCandwF/QjGaLjyXzuD7dr2CFSEl8osOBSCyf4VIKfGWaVYhFp07vJt3ZrY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535975; c=relaxed/simple; bh=x17jfmI0JrDCCfkURHrrmPzLiUcWTdVkXgjwpHZSB0k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jAPshJYH4jur1SX/6VXYGuEQEzRMwrjEcaajgEnz9oFtosyCWjBfkd8YsIYLGbM9HsvV2m7GdsaTTRSO+1GeYeifSQnLIWARBOAWmh5DKW4/AoWUsGuEpYJmWKsevZxxf5mLHQcuXK1YOKqUIpuR0bAR2DRyKGz9BUsb0WNhL8A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d+Q+xIAx; 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="d+Q+xIAx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 947AFC4CEDD; Wed, 26 Feb 2025 02:12:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535974; bh=x17jfmI0JrDCCfkURHrrmPzLiUcWTdVkXgjwpHZSB0k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=d+Q+xIAxiLg04NLl/gPgJfhMn3/MFRqN7tDt2avq3bKRrm6tcjtpoHcOuedfMtxYK diobvevCspCse1o8QQ7sollHNbXoHwvXjZI/p6qlomTCFLykGNX2pDcc6Fn7vucqpa tAxVX1jNNijVOFDSMYFUkRUL/Ijlt2vWEWA83NCI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49319: iommu/arm-smmu-v3: check return value after calling platform_get_resource() Date: Wed, 26 Feb 2025 03:09:53 +0100 Message-ID: <2025022637-CVE-2022-49319-f0b3@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=2182; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x17jfmI0JrDCCfkURHrrmPzLiUcWTdVkXgjwpHZSB0k=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yh9OlPGWXfD26sp2lu9e3nsn3Ntb8ev+wdwjV07l5 exbe814X0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBM5Gw5w4JFQjoHNWe/bLun 7XRNttBN2aVaZDPDgs32WRW6fzrOs/dqBa/j+dlz8jr3PgA= 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/arm-smmu-v3: check return value after calling platform_get_resource() It will cause null-ptr-deref if platform_get_resource() returns NULL, we need check the return value. The Linux kernel CVE team has assigned CVE-2022-49319 to this issue. Affected and fixed versions =========================== Fixed in 5.10.122 with commit 54c1e0e3bbcab2abe25b2874a43050ae5df87831 Fixed in 5.15.47 with commit fb0f1c5eb8d60b3e018ba7c87da249b52674ebe6 Fixed in 5.17.15 with commit db728a891f9177b044aaca89b678f6b5e24d5cc3 Fixed in 5.18.4 with commit 54cf47da0c7532d151d76e5d63f5936191698c44 Fixed in 5.19 with commit b131fa8c1d2afd05d0b7598621114674289c2fbb 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-49319 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/arm-smmu-v3.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/54c1e0e3bbcab2abe25b2874a43050ae5df87831 https://git.kernel.org/stable/c/fb0f1c5eb8d60b3e018ba7c87da249b52674ebe6 https://git.kernel.org/stable/c/db728a891f9177b044aaca89b678f6b5e24d5cc3 https://git.kernel.org/stable/c/54cf47da0c7532d151d76e5d63f5936191698c44 https://git.kernel.org/stable/c/b131fa8c1d2afd05d0b7598621114674289c2fbb