Skip to contentSkip to conversation

CVE-2022-49653: i2c: piix4: Fix a memory leak in the EFCH MMIO support

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:

i2c: piix4: Fix a memory leak in the EFCH MMIO support

The recently added support for EFCH MMIO regions introduced a memory leak in that code path. The leak is caused by the fact that release_resource() merely removes the resource from the tree but does not free its memory. We need to call release_mem_region() instead, which does free the memory. As a nice side effect, this brings back some symmetry between the legacy and MMIO paths.

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

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

	Issue introduced in 5.15.42 with commit 4b965566ca26e83553d92b8c57050e5d59911806 and fixed in 5.15.54 with commit d2bf1a6480e8d44658a8ac3bdcec081238873212
	Issue introduced in 5.18 with commit 7c148722d074c29fb998578eea5de3c14b9608c9 and fixed in 5.18.11 with commit a3263e4cf8265f0c9eb0ed8a9b50f132c7a42e19
	Issue introduced in 5.18 with commit 7c148722d074c29fb998578eea5de3c14b9608c9 and fixed in 5.19 with commit 8ad59b397f86a4d8014966fdc0552095a0c4fb2b
	Issue introduced in 5.17.10 with commit f48190bca4b1a397f2e050efea2c8e8e72049ec8

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

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/i2c/busses/i2c-piix4.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/d2bf1a6480e8d44658a8ac3bdcec081238873212
	https://git.kernel.org/stable/c/a3263e4cf8265f0c9eb0ed8a9b50f132c7a42e19
	https://git.kernel.org/stable/c/8ad59b397f86a4d8014966fdc0552095a0c4fb2b