CVE-2022-50761
Description
In the Linux kernel, the following vulnerability has been resolved:
x86/xen: Fix memory leak in xen_init_lock_cpu()
In xen_init_lock_cpu(), the @name has allocated new string by kasprintf(), if bind_ipi_to_irqhandler() fails, it should be freed, otherwise may lead to a memory leak issue, fix it.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
In the Linux kernel, a memory leak in xen_init_lock_cpu() can occur when bind_ipi_to_irqhandler() fails.
Vulnerability
Details
The vulnerability is a memory leak in the xen_init_lock_cpu() function in the Linux kernel's x86/xen subsystem. The function uses kasprintf() to allocate a string for the name. If the subsequent call to bind_ipi_to_irqhandler() fails, the allocated string is not freed, resulting in a memory leak.
Exploitation
To exploit this, an attacker must be able to trigger a failure in bind_ipi_to_irqhandler() during CPU initialization in a Xen environment. This may require specific system conditions or a crafted configuration. No special privileges are explicitly required, but the attack vector is likely local.
Impact
The memory leak can gradually exhaust kernel memory, potentially leading to system instability or denial of service. There is no indication of code execution or privilege escalation.
Mitigation
The fix involves freeing the allocated string in the error path. Patches have been applied to stable kernel branches [1][2][3]. Users should update to patched kernels.
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
99278bdbb566607764d00c86953ff99c76be629198f667f4470e7f308d7a870966d6b0f59798fc3cf98cab44457b83a03ca84ce153d88Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
9- git.kernel.org/stable/c/07764d00c869a3390bd4f80412cc8b0e669e6c58nvd
- git.kernel.org/stable/c/29198f667f4486f9e227e11faf1411fcf4c82a66nvd
- git.kernel.org/stable/c/53ff99c76be611acea37d33133c9136969914865nvd
- git.kernel.org/stable/c/70966d6b0f59f795b08a70adf5e4478348ecbfbbnvd
- git.kernel.org/stable/c/70e7f308d7a8e915c7fbc0f1d959968eab8000cdnvd
- git.kernel.org/stable/c/798fc3cf98ca07e448956f39295c5d686ab4b054nvd
- git.kernel.org/stable/c/9278bdbb566656b3704704f8dd6cbc24a6fcc569nvd
- git.kernel.org/stable/c/b44457b83a034efef58ffa5f3131d4615f1a9837nvd
- git.kernel.org/stable/c/ca84ce153d887b1dc8b118029976cc9faf2a9b40nvd
News mentions
0No linked articles in our index yet.