blob: 6d3acc8e29249a6e9e6ed8d74730fd23857faf58 [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2022-49115: PCI: endpoint: Fix misused goto label
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
===========================
Issue introduced in 5.7 with commit 5ebf3fc59bd20d17df3ba26159787d13cf20d362 and fixed in 5.10.111 with commit 7c657c0694ff690e361a13ce41c36b9dfb433ec8
Issue introduced in 5.7 with commit 5ebf3fc59bd20d17df3ba26159787d13cf20d362 and fixed in 5.15.34 with commit dc9d33b2d8d09e6478e8ef817a81cf26930acc3e
Issue introduced in 5.7 with commit 5ebf3fc59bd20d17df3ba26159787d13cf20d362 and fixed in 5.16.20 with commit 70236a0d2d62b081d52076de22d8d017d6cbe99f
Issue introduced in 5.7 with commit 5ebf3fc59bd20d17df3ba26159787d13cf20d362 and fixed in 5.17.3 with commit d3642fc64276b06446290f82fd45630aeaa4b007
Issue introduced in 5.7 with commit 5ebf3fc59bd20d17df3ba26159787d13cf20d362 and 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