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 D1D3F20E023 for ; Sat, 4 Oct 2025 15:53:23 +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=1759593203; cv=none; b=W5qHq1vPonhddeCe+hRgKz1b6xi6yf51VDzAmw6L6Ut7AIDDH966ykNfJDuHRZgXlYe+bumdcX6M1ZSixP7DHDz/J/xsPLGajvGiBwyw1PbiUpeTL+CUVcGBa8B4gyawPPhC8J3bP3UKErfkcLHdDDtBStCa3M+tPp27tJVybdo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759593203; c=relaxed/simple; bh=5PoQEKuNC6zIChwsJ7JsI+0ilcbS9dTkXEj9O0yaaws=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E1hNkBijNQKUYqe/E8dKKr78M128DO8tiNgm/9wSZXS3OB08wJVecbGFLKzgijeylY9qusOiHsmqElxisN/zhoebD2cm9Up5G73ivLN3FdyprqpgIAoabrMBd3aW7L+ncVjlrYTugf0wCPHrWbYdbEE4HZ3snzzkMtiFurVxUN4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jyQ7yeRW; 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="jyQ7yeRW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55FD8C4CEF1; Sat, 4 Oct 2025 15:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759593203; bh=5PoQEKuNC6zIChwsJ7JsI+0ilcbS9dTkXEj9O0yaaws=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jyQ7yeRW0VmzIVDqidJ+B8thkGgZ/rPCNSzAa3QZCC7W2JtIcZ2/4UjMYN3m1MGPU NLc8wtXUqEf1yVocwrn6UxRM8MirnjAWq94rlPu+wVZmi1SaFA7W2p/8Ka5fbMQQuA +0pDrDb3gsf2awB09mzbEZczsKjoOQeQnAtFkiis= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50495: x86/xen: Fix memory leak in xen_smp_intr_init{_pv}() Date: Sat, 4 Oct 2025 17:51:20 +0200 Message-ID: <2025100419-CVE-2022-50495-fdee@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3241; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ScSMgIcUmh45kgzsN9U20Wx+yY6Ip4zAggBPhFclFGU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPncpvnvfc0WrJ/yyM399nS0ehx3Mnra2Xeg466KcKT a1br3q3I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayeRLDfDeza6uXBXj//VvF EzFvXqZygbPgO4Z5WpNDPjGae+e+Mbi01r9g4pNX7IdTAA== 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_smp_intr_init{_pv}() These local variables @{resched|pmu|callfunc...}_name saves the new string allocated by kasprintf(), and when bind_{v}ipi_to_irqhandler() fails, it goes to the @fail tag, and calls xen_smp_intr_free{_pv}() to free resource, however the new string is not saved, which cause a memory leak issue. fix it. The Linux kernel CVE team has assigned CVE-2022-50495 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.24 with commit 9702785a747aa27baf46ff504beab6528f21f2dd and fixed in 4.19.270 with commit 9209d2cbf5845b8bf8e722015d86f65a9d2bc76a Issue introduced in 2.6.24 with commit 9702785a747aa27baf46ff504beab6528f21f2dd and fixed in 5.4.229 with commit ec88254208dd01fa1646e939047d382b216340ac Issue introduced in 2.6.24 with commit 9702785a747aa27baf46ff504beab6528f21f2dd and fixed in 5.10.163 with commit fc134c355b5299495b14a54dd9bb7af8a646cb7c Issue introduced in 2.6.24 with commit 9702785a747aa27baf46ff504beab6528f21f2dd and fixed in 5.15.86 with commit 23aef94eea714b721546c0c49a324a8da8d00fb5 Issue introduced in 2.6.24 with commit 9702785a747aa27baf46ff504beab6528f21f2dd and fixed in 6.0.16 with commit 8b6d78bb4ece809c425f96a47ca9b69385ba94bb Issue introduced in 2.6.24 with commit 9702785a747aa27baf46ff504beab6528f21f2dd and fixed in 6.1.2 with commit f698f88f042c6a19bbbac6c84782039a75e7f349 Issue introduced in 2.6.24 with commit 9702785a747aa27baf46ff504beab6528f21f2dd and fixed in 6.2 with commit 69143f60868b3939ddc89289b29db593b647295e 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-50495 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/smp.c arch/x86/xen/smp_pv.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/9209d2cbf5845b8bf8e722015d86f65a9d2bc76a https://git.kernel.org/stable/c/ec88254208dd01fa1646e939047d382b216340ac https://git.kernel.org/stable/c/fc134c355b5299495b14a54dd9bb7af8a646cb7c https://git.kernel.org/stable/c/23aef94eea714b721546c0c49a324a8da8d00fb5 https://git.kernel.org/stable/c/8b6d78bb4ece809c425f96a47ca9b69385ba94bb https://git.kernel.org/stable/c/f698f88f042c6a19bbbac6c84782039a75e7f349 https://git.kernel.org/stable/c/69143f60868b3939ddc89289b29db593b647295e