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 899538BEC for ; Tue, 9 Dec 2025 00:02:11 +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=1765238531; cv=none; b=XKJEr9Bn21yWu8Sp2/LJs4lyacle1scjtRU8OKrh7a5XQStVYWtjrbYIZR6ydwBzjevyAbpb4xakCed4yVAz3v4LmNFOGTWlZVZTkY8gc0wHHmkwOikMXRjmtFaLy0VC8Ai2K+Yaqlbi4Ld8iSMiCUvHji88aPv1ry3K9u06bYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765238531; c=relaxed/simple; bh=D8ZnXz6f+1p0JpTxCtCS1F8+91pRAa7l8UFwMVJcMzk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IW0PHguAQceoKSwvMMNbv2uYVhibqKRrTgPrdSnUCPR4ckTgNDLj7/zr+uXmH3yUSMOsumaLLE3w70scCFsB7gc8gJaL+facNrGtRMOZprL68Bq0gZXOXikGsI6ZFtngxYsxYjDl+IkVmBNTQUVynC/lJAAnrtYdjQl6xzvHZ7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wyp4/ww8; 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="wyp4/ww8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C245FC4CEF1; Tue, 9 Dec 2025 00:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765238531; bh=D8ZnXz6f+1p0JpTxCtCS1F8+91pRAa7l8UFwMVJcMzk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=wyp4/ww869ACqwd6Kjt7h3N3mSDBdckSiFRXY1hWggjc3XSGVwRU8PR3smYUgJ+15 8U9t2+gHwupK/eL4nCKG7fmUnUxBrvEonN5n5CtRbV27xRZRPf6WjjwV3K+rAzklGC gxrLOUdiu2xt0qneS1wNmVdzE/dbBFpHWcaB2W3A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50645: EDAC/i10nm: fix refcount leak in pci_get_dev_wrapper() Date: Tue, 9 Dec 2025 09:01:46 +0900 Message-ID: <2025120936-CVE-2022-50645-2014@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=2908; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FYRHgjKd++5SclcM84ruKbOTg27MyRwSwKRI6e97U6M=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmaQ+WBDiEHOefvKhGwUTz5gPFrNYdC6ZEzDzysUj4x IGDE62OdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEWOYxzI+0mVH/rYjjevN2 3ZU2l6Uu+7kG6TAs6NP7teZd6vuXUs4Jrs1WehnZWnfrAA== 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: EDAC/i10nm: fix refcount leak in pci_get_dev_wrapper() As the comment of pci_get_domain_bus_and_slot() says, it returns a PCI device with refcount incremented, so it doesn't need to call an extra pci_dev_get() in pci_get_dev_wrapper(), and the PCI device needs to be put in the error path. The Linux kernel CVE team has assigned CVE-2022-50645 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit d4dc89d069aab9074e2493a4c2f3969a0a0b91c1 and fixed in 5.4.229 with commit e6e295a434d1c917a017980389aec88bf35cc81b Issue introduced in 5.1 with commit d4dc89d069aab9074e2493a4c2f3969a0a0b91c1 and fixed in 5.10.163 with commit 2db53c7059167b63cc790366ef1a9e286e71980b Issue introduced in 5.1 with commit d4dc89d069aab9074e2493a4c2f3969a0a0b91c1 and fixed in 5.15.86 with commit 3e255dc21031cc1f341584eb99a7f31598bf0be7 Issue introduced in 5.1 with commit d4dc89d069aab9074e2493a4c2f3969a0a0b91c1 and fixed in 6.0.16 with commit 1adb2583cdbd75f379e3230a43a7412d373d499f Issue introduced in 5.1 with commit d4dc89d069aab9074e2493a4c2f3969a0a0b91c1 and fixed in 6.1.2 with commit f29c2f57cdf7a57223dcd9fbaa2261faab5234b2 Issue introduced in 5.1 with commit d4dc89d069aab9074e2493a4c2f3969a0a0b91c1 and fixed in 6.2 with commit 9c8921555907f4d723f01ed2d859b66f2d14f08e 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-50645 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/edac/i10nm_base.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/e6e295a434d1c917a017980389aec88bf35cc81b https://git.kernel.org/stable/c/2db53c7059167b63cc790366ef1a9e286e71980b https://git.kernel.org/stable/c/3e255dc21031cc1f341584eb99a7f31598bf0be7 https://git.kernel.org/stable/c/1adb2583cdbd75f379e3230a43a7412d373d499f https://git.kernel.org/stable/c/f29c2f57cdf7a57223dcd9fbaa2261faab5234b2 https://git.kernel.org/stable/c/9c8921555907f4d723f01ed2d859b66f2d14f08e