Skip to contentSkip to conversation

CVE-2022-50110: watchdog: sp5100_tco: Fix a memory leak of EFCH MMIO resource

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 18, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

watchdog: sp5100_tco: Fix a memory leak of EFCH MMIO resource

Unlike release_mem_region(), a call to release_resource() does not free the resource, so it has to be freed explicitly to avoid a memory leak.

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

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

	Issue introduced in 5.15.42 with commit b4c0f1600df43245c8c3425dbd9426fdfba6c4b2 and fixed in 5.15.61 with commit 84ddf527f90755beec6b55ce2e31331f5ccd4e37
	Issue introduced in 5.18 with commit 0578fff4aae5bce3f09875f58e68e9ffbab8daf5 and fixed in 5.18.18 with commit 3a1becb1f13268ef58f19190608a7c742fb6fcf5
	Issue introduced in 5.18 with commit 0578fff4aae5bce3f09875f58e68e9ffbab8daf5 and fixed in 5.19.2 with commit ee1fb8f75abe361413913e3a6e93c8c0a4d83cd9
	Issue introduced in 5.18 with commit 0578fff4aae5bce3f09875f58e68e9ffbab8daf5 and fixed in 6.0 with commit c6d9c0798ed366a09a9e53d71edcd2266e34a6eb
	Issue introduced in 5.17.10 with commit 15b5d74600b98adf396d416ed59e0d43726f2671

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

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/watchdog/sp5100_tco.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/84ddf527f90755beec6b55ce2e31331f5ccd4e37
	https://git.kernel.org/stable/c/3a1becb1f13268ef58f19190608a7c742fb6fcf5
	https://git.kernel.org/stable/c/ee1fb8f75abe361413913e3a6e93c8c0a4d83cd9
	https://git.kernel.org/stable/c/c6d9c0798ed366a09a9e53d71edcd2266e34a6eb