CVE-2022-50836
Description
In the Linux kernel, the following vulnerability has been resolved:
remoteproc: sysmon: fix memory leak in qcom_add_sysmon_subdev()
The kfree() should be called when of_irq_get_byname() fails or devm_request_threaded_irq() fails in qcom_add_sysmon_subdev(), otherwise there will be a memory leak, so add kfree() to fix it.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A memory leak in the Linux kernel's remoteproc sysmon driver occurs when interrupt setup fails, potentially leading to resource exhaustion.
Vulnerability
In the Linux kernel's remoteproc subsystem, the qcom_add_sysmon_subdev() function in the sysmon driver contains a memory leak. When of_irq_get_byname() or devm_request_threaded_irq() fails, the allocated memory for the sysmon subdevice is not freed, causing a leak [1][2][3].
Exploitation
An attacker with the ability to trigger a failure in interrupt registration (e.g., by manipulating device tree entries or exhausting IRQ resources) could repeatedly trigger this code path. No special privileges are required beyond the ability to cause the probe to fail, which may be achievable through local access to the device tree or through hotplug events.
Impact
Repeated exploitation leads to kernel memory exhaustion, potentially causing denial of service (system instability or crash). There is no evidence of code execution or privilege escalation from this bug.
Mitigation
The fix adds a kfree() call before returning on error, which has been backported to stable kernels [1][2][3]. Users should apply the latest kernel updates from their distribution.
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.
Affected products
1Patches
627441fab2651e4539eb5c0c3131c0a3ead781a62bebe0705ec97e9a5c2f2e01ce676aaefVulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- git.kernel.org/stable/c/131c0a3ead78d45f0f39ddb42cf1bd9be26239b0nvd
- git.kernel.org/stable/c/1a62bebe0705556d37cfa8409ddc759b11d404f6nvd
- git.kernel.org/stable/c/27441fab2651cd909d8a5440ca079bc50245f427nvd
- git.kernel.org/stable/c/e01ce676aaef3b13d02343d7e70f9637d93a3367nvd
- git.kernel.org/stable/c/e4539eb5c0c342567183fe386d0699c8dab49490nvd
- git.kernel.org/stable/c/ec97e9a5c2f25d2f9f9d7005e9ac67f23cc751cdnvd
News mentions
0No linked articles in our index yet.