Skip to contentSkip to conversation

CVE-2022-50632: drivers: perf: marvell_cn10k: Fix hotplug callback leak in tad_pmu_init()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 9, 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:

drivers: perf: marvell_cn10k: Fix hotplug callback leak in tad_pmu_init()

tad_pmu_init() won't remove the callback added by cpuhp_setup_state_multi() when platform_driver_register() failed. Remove the callback by cpuhp_remove_multi_state() in fail path.

Similar to the handling of arm_ccn_init() in commit 26242b330093 ("bus:
arm-ccn: Prevent hotplug callback leak")

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

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

	Issue introduced in 5.17 with commit 036a7584bede317d0df6b854e4f531b7a2dd8b33 and fixed in 6.0.16 with commit 367404bfd1aa87b2a50059cd8edc6c12c367cd15
	Issue introduced in 5.17 with commit 036a7584bede317d0df6b854e4f531b7a2dd8b33 and fixed in 6.1.2 with commit 7772f4de934123ccd7c7cdc1dc4e46fdd5d767fb
	Issue introduced in 5.17 with commit 036a7584bede317d0df6b854e4f531b7a2dd8b33 and fixed in 6.2 with commit 973ae93d80d9d262f695eb485a1902b74c4b9098

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

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/perf/marvell_cn10k_tad_pmu.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/367404bfd1aa87b2a50059cd8edc6c12c367cd15
	https://git.kernel.org/stable/c/7772f4de934123ccd7c7cdc1dc4e46fdd5d767fb
	https://git.kernel.org/stable/c/973ae93d80d9d262f695eb485a1902b74c4b9098