Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 609C9280CD5 for ; Wed, 24 Dec 2025 13:07:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581646; cv=none; b=uioySOnKeAGc1iHvqXkm6I1xyiWB74Nf8rkMJJzsj3t0e325CILXswKNxEcKbH/DdijN5QsEFKe5VVSD/0I1oKtLU/hXsY+NWhXDKgs07Lvuj+4RD6aqffufSifZRcHmg8KXNeDJqd4Xw0CH9ahcupF8Btco4qkQ+FPGD4eXJGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581646; c=relaxed/simple; bh=uuH6wpDBOQN/19OxII+Crk+LyvrVrJK7kkmz5NJjK1o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BJhxmQBnIJkAB3npas8Z45PXgBCFI4K5ibdt7XOoCcWZhokJxeGnnd4YKrXw/JNG1WDS3U34a1QnYYCcf84aji0KnEWyDTnyneTDiZrow+itcOwltjRtbx0EyR1XOpul4rKeLTPmnO/jFYk2UX1oMhbe/vUMJkbCr2YcE/vGXoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MXBu2xF3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MXBu2xF3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6891C4CEFB; Wed, 24 Dec 2025 13:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581646; bh=uuH6wpDBOQN/19OxII+Crk+LyvrVrJK7kkmz5NJjK1o=; h=From:To:Cc:Subject:Date:Reply-To:From; b=MXBu2xF39pZs6Ux0Anfr7h38En+zN+mhnuJzCSJV93hCF2oNMqDZ1B9EG1xXlGEB1 RJrODjiz+La0tO+zisPiy2qUVEuDNVzq/o5gS4blZ2iQOtQqDQwqa6UagjszXLT9ce DzCmSAu0Pdm8+Ad8q/3q4XXmyGHupp5TJRrLY8PE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50761: x86/xen: Fix memory leak in xen_init_lock_cpu() Date: Wed, 24 Dec 2025 14:06:12 +0100 Message-ID: <2025122455-CVE-2022-50761-0e67@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3557; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=esFAENoGyCFlb0OPamb2hipHhZPd28UJM5LjZreQRcY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT42/c8z+PD0vQ6/wM9seefnbU4O4cnMknxlLCUSKX TMTLX3YEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5EcmwYHbnxKmazIYVYfLP gr5zmL6R3m63hmEO78I81YRLS612LFX6JPFq6UqZZvfdAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2022-50761 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.27 with commit 2d9e1e2f58b5612aa4eab0ab54c84308a29dbd79 and fixed in 4.9.337 with commit 9278bdbb566656b3704704f8dd6cbc24a6fcc569 Issue introduced in 2.6.27 with commit 2d9e1e2f58b5612aa4eab0ab54c84308a29dbd79 and fixed in 4.14.303 with commit 07764d00c869a3390bd4f80412cc8b0e669e6c58 Issue introduced in 2.6.27 with commit 2d9e1e2f58b5612aa4eab0ab54c84308a29dbd79 and fixed in 4.19.270 with commit 53ff99c76be611acea37d33133c9136969914865 Issue introduced in 2.6.27 with commit 2d9e1e2f58b5612aa4eab0ab54c84308a29dbd79 and fixed in 5.4.229 with commit 29198f667f4486f9e227e11faf1411fcf4c82a66 Issue introduced in 2.6.27 with commit 2d9e1e2f58b5612aa4eab0ab54c84308a29dbd79 and fixed in 5.10.163 with commit 70e7f308d7a8e915c7fbc0f1d959968eab8000cd Issue introduced in 2.6.27 with commit 2d9e1e2f58b5612aa4eab0ab54c84308a29dbd79 and fixed in 5.15.86 with commit 70966d6b0f59f795b08a70adf5e4478348ecbfbb Issue introduced in 2.6.27 with commit 2d9e1e2f58b5612aa4eab0ab54c84308a29dbd79 and fixed in 6.0.16 with commit 798fc3cf98ca07e448956f39295c5d686ab4b054 Issue introduced in 2.6.27 with commit 2d9e1e2f58b5612aa4eab0ab54c84308a29dbd79 and fixed in 6.1.2 with commit b44457b83a034efef58ffa5f3131d4615f1a9837 Issue introduced in 2.6.27 with commit 2d9e1e2f58b5612aa4eab0ab54c84308a29dbd79 and fixed in 6.2 with commit ca84ce153d887b1dc8b118029976cc9faf2a9b40 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-50761 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: arch/x86/xen/spinlock.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/9278bdbb566656b3704704f8dd6cbc24a6fcc569 https://git.kernel.org/stable/c/07764d00c869a3390bd4f80412cc8b0e669e6c58 https://git.kernel.org/stable/c/53ff99c76be611acea37d33133c9136969914865 https://git.kernel.org/stable/c/29198f667f4486f9e227e11faf1411fcf4c82a66 https://git.kernel.org/stable/c/70e7f308d7a8e915c7fbc0f1d959968eab8000cd https://git.kernel.org/stable/c/70966d6b0f59f795b08a70adf5e4478348ecbfbb https://git.kernel.org/stable/c/798fc3cf98ca07e448956f39295c5d686ab4b054 https://git.kernel.org/stable/c/b44457b83a034efef58ffa5f3131d4615f1a9837 https://git.kernel.org/stable/c/ca84ce153d887b1dc8b118029976cc9faf2a9b40