Skip to contentSkip to conversation

CVE-2022-49115: PCI: endpoint: Fix misused goto label

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 26, 2025

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

PCI: endpoint: Fix misused goto label

Fix a misused goto label jump since that can result in a memory leak.

The Linux kernel CVE team has assigned CVE-2022-49115 to this issue.

Affected and fixed versions
===========================

	Fixed in 5.10.111 with commit 7c657c0694ff690e361a13ce41c36b9dfb433ec8
	Fixed in 5.15.34 with commit dc9d33b2d8d09e6478e8ef817a81cf26930acc3e
	Fixed in 5.16.20 with commit 70236a0d2d62b081d52076de22d8d017d6cbe99f
	Fixed in 5.17.3 with commit d3642fc64276b06446290f82fd45630aeaa4b007
	Fixed in 5.18 with commit bf8d87c076f55b8b4dfdb6bc6c6b6dc0c2ccb487

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-49115

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/endpoint/functions/pci-epf-test.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/7c657c0694ff690e361a13ce41c36b9dfb433ec8
	https://git.kernel.org/stable/c/dc9d33b2d8d09e6478e8ef817a81cf26930acc3e
	https://git.kernel.org/stable/c/70236a0d2d62b081d52076de22d8d017d6cbe99f
	https://git.kernel.org/stable/c/d3642fc64276b06446290f82fd45630aeaa4b007
	https://git.kernel.org/stable/c/bf8d87c076f55b8b4dfdb6bc6c6b6dc0c2ccb487