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 D10211114 for ; Wed, 21 Aug 2024 06:11:58 +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=1724220718; cv=none; b=V/O6AXuuVuS0mn20AYRv/a2u0XGKbQ+pWFhJXrw4cib0NoWuIKIlJnDBpSPMJJFjDPWfWvTBoIhqevxPf9MapxKUdiiQ5LzsR0UO1jQ8AAUX8TM2iu2XGVrGk5FMcSO2t7UbrJq+YflOZ2/f/sENnCM2ShIkMQu9fFdJ5v1lw98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220718; c=relaxed/simple; bh=WC+JpPwFnWJ3qVt0arCj7VToxFPh3owBkjVDrpZysj8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gFm8PfHbplcYnpsdVkkNwWfLEhg9ZqgZvGrwVX+mkXeBy7UQY3N85X7Hfg6g68HiGCdIaxZkkmNQB4WZOawklUBztoiozf8asAhRrvSyrKaDV2WdRrorRT2G2FRwVmcA9A9I5GrM+O5eU93sZMEx686ViB8OzJey1m/QYCPJiSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0duZ+WCW; 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="0duZ+WCW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A838C32782; Wed, 21 Aug 2024 06:11:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220718; bh=WC+JpPwFnWJ3qVt0arCj7VToxFPh3owBkjVDrpZysj8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0duZ+WCWif1GfVgKDf3FAVdYeUFOdggT5TB+HzJVFpcNUHkEMuhRL0oRzGlBTU91P B3Txp7+kXhnn1I9X6wiecMrZ3zSp0DjjUhaHppscUQopKY4qrRF9JPJVhNZtWWkz+d zWHK+tbvVIniN0Xce/68TcvMi0yB1idWv3Ofa4P0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48881: platform/x86/amd: Fix refcount leak in amd_pmc_probe Date: Wed, 21 Aug 2024 14:11:15 +0800 Message-ID: <2024082107-CVE-2022-48881-5129@gregkh> X-Mailer: git-send-email 2.46.0 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=1826; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WC+JpPwFnWJ3qVt0arCj7VToxFPh3owBkjVDrpZysj8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW37PuG3X9DW7+9s/FYeMWWzXefot+J3FBb0Wy6xkj vvHPEO3I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyfxnDgr2/LVUDf5fPuzw5 eKX/gi/uCxs9PRgWzLLRWmkxc7OXWVj3Ugfx6VNaVV+dAQA= 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: platform/x86/amd: Fix refcount leak in amd_pmc_probe pci_get_domain_bus_and_slot() takes reference, the caller should release the reference by calling pci_dev_put() after use. Call pci_dev_put() in the error path to fix this. The Linux kernel CVE team has assigned CVE-2022-48881 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 3d7d407dfb05 and fixed in 6.1.7 with commit 394416282129 Issue introduced in 5.18 with commit 3d7d407dfb05 and fixed in 6.2 with commit ccb32e2be142 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-48881 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/platform/x86/amd/pmc.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/3944162821295993ec89992dec98ab6be6306cc0 https://git.kernel.org/stable/c/ccb32e2be14271a60e9ba89c6d5660cc9998773c