[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025120936-CVE-2022-50645-2014@gregkh>
Date: Tue, 9 Dec 2025 09:01:46 +0900
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50645: EDAC/i10nm: fix refcount leak in pci_get_dev_wrapper()
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists