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 1C4CE9443 for ; Mon, 8 Dec 2025 01:16: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=1765156619; cv=none; b=sdLw3FRavZ0VUgjCtH1tsCDLk09pghZBD6rLlfJ0S10GezM1m61ANvR1ix1lNsw+yOUW9anOYwigeMgQPcRfRmJRVnYqIgqW6mwMVIHno068egBrfBsLl/kXkDCTFVDG39uBV6FUQ1aLROlUF5fS37vw3l7PmBfr8BT1l/Le9bk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765156619; c=relaxed/simple; bh=jaxVFkr2fByPnLDMjyBpw6Zd0VYRLtPU+TDRglHg+Q8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nKLMSzsroS+Y920/ozah/SLCmhcBRT6JnJlDkNgFvq0RGYpZOsqN7qkrK2upMy7g9vFYAGCWfxjI27aZgKeFWnjkeIapjkGHmbGxvmfbgdkt33Q5h5gWbTCn5yLOQfoVJhU7iwY0gP15ErwDuO35VmNi4xdj2hm4bBWaLrBK/II= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Hcqh/Scl; 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="Hcqh/Scl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E663AC4CEFB; Mon, 8 Dec 2025 01:16:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765156618; bh=jaxVFkr2fByPnLDMjyBpw6Zd0VYRLtPU+TDRglHg+Q8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Hcqh/SclpIfNm5QBw6PYe2hjoU/Ca/ah7g12ctiw9hvXaGS/OUxnWZZEUgY+TZvxF FXGIq3x/yhZyr+3+qLdsFGxywoLeGJjdpLMdqMRlv2IR4O2cLBGd+5ITJH/2LeYU+i c5RA3bAwIii0fCnwADf5pTK4XG1v+Hu2rbjAPTiU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50615: perf/x86/intel/uncore: Fix reference count leak in snr_uncore_mmio_map() Date: Mon, 8 Dec 2025 10:16:52 +0900 Message-ID: <2025120851-CVE-2022-50615-5c90@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2736; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oWB70krt7yTnOZgz9OJ9wo1W5P1yoeJS3rFC47f4fpU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlm6syMUyxmtzsIcaddWRgne7fXqO+zV09m8kmJl0c+L ViYuu9WRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE/z/D/KrUDp25+13vVj2t vbbPa8mnpDzfQIYFa2+duV0/8bpLkyhLpDPD7+mCO88+BQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: perf/x86/intel/uncore: Fix reference count leak in snr_uncore_mmio_map() pci_get_device() will increase the reference count for the returned pci_dev, so snr_uncore_get_mc_dev() will return a pci_dev with its reference count increased. We need to call pci_dev_put() to decrease the reference count. Let's add the missing pci_dev_put(). The Linux kernel CVE team has assigned CVE-2022-50615 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit ee49532b38dd084650bf715eabe7e3828fb8d275 and fixed in 5.10.163 with commit d2afced51108813256d8072c6e464b0c9f0bb890 Issue introduced in 5.3 with commit ee49532b38dd084650bf715eabe7e3828fb8d275 and fixed in 5.15.86 with commit 433bd587dca5c3f7157fef2fe571290cd392cbf6 Issue introduced in 5.3 with commit ee49532b38dd084650bf715eabe7e3828fb8d275 and fixed in 6.0.16 with commit a67146437b6428069b71a7e5e740a2a8e1c40ac9 Issue introduced in 5.3 with commit ee49532b38dd084650bf715eabe7e3828fb8d275 and fixed in 6.1.2 with commit dc7f07bc1ebb56a23fd1c4f664db5cbeb8900800 Issue introduced in 5.3 with commit ee49532b38dd084650bf715eabe7e3828fb8d275 and fixed in 6.2 with commit 8ebd16c11c346751b3944d708e6c181ed4746c39 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-50615 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: arch/x86/events/intel/uncore_snbep.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/d2afced51108813256d8072c6e464b0c9f0bb890 https://git.kernel.org/stable/c/433bd587dca5c3f7157fef2fe571290cd392cbf6 https://git.kernel.org/stable/c/a67146437b6428069b71a7e5e740a2a8e1c40ac9 https://git.kernel.org/stable/c/dc7f07bc1ebb56a23fd1c4f664db5cbeb8900800 https://git.kernel.org/stable/c/8ebd16c11c346751b3944d708e6c181ed4746c39