VYPR
Unrated severityNVD Advisory· Published Dec 30, 2025· Updated Apr 15, 2026

CVE-2022-50820

CVE-2022-50820

Description

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

perf/arm_dmc620: Fix hotplug callback leak in dmc620_pmu_init()

dmc620_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")

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

In the Linux kernel, a hotplug callback leak in dmc620_pmu_init() when platform_driver_register() fails can lead to resource exhaustion; fixed by adding cpuhp_remove_multi_state() in the fail path.

Vulnerability

Description The vulnerability is a hotplug callback leak in the arm_dmc620 Performance Monitoring Unit (PMU) driver in the Linux kernel. In the function dmc620_pmu_init(), a hotplug callback is registered using cpuhp_setup_state_multi(). However, if platform_driver_register() subsequently fails, the callback is not removed, leading to a resource leak.

Exploitation

An attacker would need to trigger a failure in platform_driver_register() after the hotplug callback has been set up. This could occur due to memory pressure, hardware configuration issues, or other error conditions during driver initialization. No authentication or special privileges are required beyond the ability to interact with the system in a way that causes the driver initialization to fail.

Impact

If the callback is not removed, it remains registered with the CPU hotplug subsystem. This could lead to resource exhaustion, as multiple failed initialization attempts would accumulate callback entries. Additionally, the stale callback may cause undefined behavior or system instability if invoked after the driver state is corrupted.

Mitigation

The fix is implemented in the Linux kernel commit referenced below. The commit adds a call to cpuhp_remove_multi_state() in the failure path of dmc620_pmu_init(), ensuring the callback is properly cleaned up. Users should update to a kernel version containing this commit.

AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Patches

4

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.