From mboxrd@z Thu Jan 1 00:00:00 1970 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 DAFBA216618 for ; Wed, 26 Feb 2025 02:14:18 +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=1740536058; cv=none; b=nnBQkQ6RLElQNDXy6K2I5HRNoTCfrHA2SPtnOiFMOdfiCKm21Z/mDJWfwyMKWdCy3zS1yX9Laf5xPcCwDKp7phT9SDT+XTmvTqRgplI13dZsNFzgwBRo928LmKOdHIQlwx7gWJHcmiMmj6L1+bgtqUGuh732uMoOmVO9w86fbbA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536058; c=relaxed/simple; bh=mdoyIgcy+zxxoqwl3HGfPmphcbj9+jdR43h07Yy+O5U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kB/hjj9q4jcxa+HiX7mnkc8e5MRVh351iGj+OsLJEPcl2ouGlHNvZVOvnO9nhBhojxxxaJ/fdFCyW/5bkaK86zfElrADPXY38+W4tx8cm/Fec6QJgwUpaDGF52WU0XiH9xG0tmnkcNku1xK/fFs7LAwHpDjYv+3bZTymOKFPeaE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=McGMot0D; 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="McGMot0D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6822C4CEDD; Wed, 26 Feb 2025 02:14:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536058; bh=mdoyIgcy+zxxoqwl3HGfPmphcbj9+jdR43h07Yy+O5U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=McGMot0DOX8yE5xTMNXJM8jYYefDGgPExktdvAIEbBfUx3PpzU1sxyf1WxD37G6Tg 4q6uyAC03+jCyHvZm4I+swqVNyIdn80Q112H8NynNS5h+cNeHa/ntjIHPvYzd5l9vw 1O/Uzt9s2YpoOSnrkev+OJdcqJFg861tTa6mg1BU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49437: powerpc/xive: Fix refcount leak in xive_spapr_init Date: Wed, 26 Feb 2025 03:11:51 +0100 Message-ID: <2025022657-CVE-2022-49437-7624@gregkh> X-Mailer: git-send-email 2.48.1 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=2396; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mdoyIgcy+zxxoqwl3HGfPmphcbj9+jdR43h07Yy+O5U=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yr+efnLMSctu4e0X+y6VqH6/std1jovklYvbahRzh d3aZfi+dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEfN4wzE+uNtM2X5mkNXXl 82Y5QY4/C/Vkuxjmqam8fmDEkfNowcrlc4+Ghur1//pwAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: powerpc/xive: Fix refcount leak in xive_spapr_init of_find_compatible_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-49437 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit eac1e731b59ee3b5f5e641a7765c7ed41ed26226 and fixed in 5.15.46 with commit 65f11ccdd746e0e7f0b469cc989ba43d4f30ecfe Issue introduced in 4.14 with commit eac1e731b59ee3b5f5e641a7765c7ed41ed26226 and fixed in 5.17.14 with commit 6e806485d851986a2445267608f27cb4ba2ed774 Issue introduced in 4.14 with commit eac1e731b59ee3b5f5e641a7765c7ed41ed26226 and fixed in 5.18.3 with commit cc62dde2a5f4ba14016fd9caec76f08d388f4b9c Issue introduced in 4.14 with commit eac1e731b59ee3b5f5e641a7765c7ed41ed26226 and fixed in 5.19 with commit 1d1fb9618bdd5a5fbf9a9eb75133da301d33721c 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-49437 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/powerpc/sysdev/xive/spapr.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/65f11ccdd746e0e7f0b469cc989ba43d4f30ecfe https://git.kernel.org/stable/c/6e806485d851986a2445267608f27cb4ba2ed774 https://git.kernel.org/stable/c/cc62dde2a5f4ba14016fd9caec76f08d388f4b9c https://git.kernel.org/stable/c/1d1fb9618bdd5a5fbf9a9eb75133da301d33721c