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 DB4C8217679 for ; Wed, 26 Feb 2025 02:14: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=1740536078; cv=none; b=tKsJFE6mLAOVLr9XPd6ESxnKdmihkPhl8LYaPkqoEHgkAfbHYgtbvtHtfsS5Nz+adjVfJqGPUf5HKQ7hZscUavkYjvxJcWB7an2TCv/N/BmRFIw3vPbnAY2xxfGpfyVHeTxi3h+/hSyPyLntPzdALit1HH9+XRztX8oyN8mMvig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536078; c=relaxed/simple; bh=vmX0IMbjbAwjyyq5Vm5DIYgtdyDGzai98t/FQLKsFXw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k7C1v63zbMf+IHrQdCfF2O6HIAMvceoxqkGpLN+b5fO0Fqq5bXY2iMOFTymLQLp3ZsrD47Og7VYdAg1A2mIKsCIqwTFGMO/yLfuA7T+C9Qj3l9GDbCLk24lbb7txbmEjE7hoHeepdyK3S5o9WHiCH5G7HwKRSBzXsG30WavB1/4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XIJ0H4Ky; 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="XIJ0H4Ky" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD91AC4CEDD; Wed, 26 Feb 2025 02:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536078; bh=vmX0IMbjbAwjyyq5Vm5DIYgtdyDGzai98t/FQLKsFXw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XIJ0H4KyU3+0wyU9GfZCGQpK7izJSOW27UDf6uiXdpIofq84MmfZWKc+GiTbUluSw MG9L2V8bUF1J/P51kjjgtA20DjmTkzqIrIvJYBIL1otcEnPYTk7NjjLmCLgW6ia7eS /40QNxuoY8pc4YfO76t+MuvkiQD7/NMqKd4LhduM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49462: drm/msm/a6xx: Fix refcount leak in a6xx_gpu_init Date: Wed, 26 Feb 2025 03:12:16 +0100 Message-ID: <2025022601-CVE-2022-49462-52fb@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=3059; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vmX0IMbjbAwjyyq5Vm5DIYgtdyDGzai98t/FQLKsFXw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yn++uzB36pYHIdpzJNTc8r5Pv5mRPUs0a1OEW7O7r 0uzxv7ajlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIUSHDgmP1bNu1anQYBHpZ i9MfWh6T2v/hFcOCXbs1rj9r5rp5v6ogpI3PcfmVf9u1AQ== 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: drm/msm/a6xx: Fix refcount leak in a6xx_gpu_init of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. a6xx_gmu_init() passes the node to of_find_device_by_node() and of_dma_configure(), of_find_device_by_node() will takes its reference, of_dma_configure() doesn't need the node after usage. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-49462 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 4b565ca5a2cbbbb6345e8789da89c193b6b00e5a and fixed in 5.4.198 with commit 6832e36f156ea35a6ed74bca72727806116effdd Issue introduced in 4.19 with commit 4b565ca5a2cbbbb6345e8789da89c193b6b00e5a and fixed in 5.10.121 with commit 48e82ce8cdb19c20a5020fa446b286d6a147450c Issue introduced in 4.19 with commit 4b565ca5a2cbbbb6345e8789da89c193b6b00e5a and fixed in 5.15.46 with commit edff4c1af831d0c02e654eed9da7d74174de49d5 Issue introduced in 4.19 with commit 4b565ca5a2cbbbb6345e8789da89c193b6b00e5a and fixed in 5.17.14 with commit 65ddbc0d26824e2a5d6154d01d8cf39344900213 Issue introduced in 4.19 with commit 4b565ca5a2cbbbb6345e8789da89c193b6b00e5a and fixed in 5.18.3 with commit 06907a374f1b74f8f2fb30720dc6df81331e4fb5 Issue introduced in 4.19 with commit 4b565ca5a2cbbbb6345e8789da89c193b6b00e5a and fixed in 5.19 with commit c56de483093d7ad0782327f95dda7da97bc4c315 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-49462 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/gpu/drm/msm/adreno/a6xx_gpu.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/6832e36f156ea35a6ed74bca72727806116effdd https://git.kernel.org/stable/c/48e82ce8cdb19c20a5020fa446b286d6a147450c https://git.kernel.org/stable/c/edff4c1af831d0c02e654eed9da7d74174de49d5 https://git.kernel.org/stable/c/65ddbc0d26824e2a5d6154d01d8cf39344900213 https://git.kernel.org/stable/c/06907a374f1b74f8f2fb30720dc6df81331e4fb5 https://git.kernel.org/stable/c/c56de483093d7ad0782327f95dda7da97bc4c315