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 90F5E216618 for ; Wed, 26 Feb 2025 02:14:32 +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=1740536072; cv=none; b=Crn2XjkuRvZl7HUjMwzw9ZJLFeqHHRUXJwnGDDXj3OICnV0xGkQmlplf/TDFs9BgcktiQhQspRdRcmo0+X+NwsOkRH3IXyLVcOiktaV+azh7kyrgkZn5yowkBIRSn63utOWYkqs/p3lczx0xzk/YWYMVDQjjwaMP9plgknO3Z14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536072; c=relaxed/simple; bh=sGJE/Ye7O4JZJ3S/cNUy+72RYGBGNGBqeoiGZ6tonwM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ClqzpjFDip5aS+Z89nQiQeh4KOKsAagiLQ19EqJnreNXX82RMs5E1dWLgCtzROSZONd8lTc7ru8gImTMLeYM755K2ZFVd2TewJJmCQmst1Wjo9iF/vRyZHhttDrxBBR3W4EKU8IIUVpAlUqAtiHAHCfZQLs2C0fJSO/CckCTslw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fClhzPo9; 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="fClhzPo9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67E0DC4CEDD; Wed, 26 Feb 2025 02:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536072; bh=sGJE/Ye7O4JZJ3S/cNUy+72RYGBGNGBqeoiGZ6tonwM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fClhzPo9bhwoOBadlpe58o57c1o6RgMoMgD6PgWbE/Ce6mk78I3AZjMY4co2Ih+KM QWSapSHwQ7tzSNv9ZV17Y35kAXxx1bt0zyRcV2f+LgE/SRFAxU1vTJ/NHMoQoXy/1E ctXRKzvs2NCVG6wyBXEb/nPZ6QfLuqULLFqb7ApE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49454: PCI: mediatek: Fix refcount leak in mtk_pcie_subsys_powerup() Date: Wed, 26 Feb 2025 03:12:08 +0100 Message-ID: <2025022659-CVE-2022-49454-21c8@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=2430; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sGJE/Ye7O4JZJ3S/cNUy+72RYGBGNGBqeoiGZ6tonwM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yn/0J39vYc15d/E1g8OE5jur1l5+/1g6VsFh5uVix hVzTlxP6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJXHzCMD8g0v/dlbsMIj8X Xvt8UF4yLWD3ewOGeUYzZinNifVoFQny22VbrG+tGR/7AAA= 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: PCI: mediatek: Fix refcount leak in mtk_pcie_subsys_powerup() The of_find_compatible_node() function returns a node pointer with refcount incremented, We should use of_node_put() on it when done Add the missing of_node_put() to release the refcount. The Linux kernel CVE team has assigned CVE-2022-49454 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 87e8657ba99cac87b84c7f8ead91b44d88345504 and fixed in 5.15.46 with commit ad1c9d13e04509ae24fae8dd2897148657323519 Issue introduced in 5.15 with commit 87e8657ba99cac87b84c7f8ead91b44d88345504 and fixed in 5.17.14 with commit 4cef4237d6c37257cb6ddc397723e9c0dded0efe Issue introduced in 5.15 with commit 87e8657ba99cac87b84c7f8ead91b44d88345504 and fixed in 5.18.3 with commit 09b2d906d78ddf5042b1f3e0091835fc6997e8a4 Issue introduced in 5.15 with commit 87e8657ba99cac87b84c7f8ead91b44d88345504 and fixed in 5.19 with commit 214e0d8fe4a813ae6ffd62bc2dfe7544c20914f4 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-49454 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/pci/controller/pcie-mediatek.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/ad1c9d13e04509ae24fae8dd2897148657323519 https://git.kernel.org/stable/c/4cef4237d6c37257cb6ddc397723e9c0dded0efe https://git.kernel.org/stable/c/09b2d906d78ddf5042b1f3e0091835fc6997e8a4 https://git.kernel.org/stable/c/214e0d8fe4a813ae6ffd62bc2dfe7544c20914f4