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 5489C1A38E4 for ; Wed, 26 Feb 2025 01:59:32 +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=1740535172; cv=none; b=b5BVJkLeE9DO1lN7WTkZehjWf0LFIQjfWhHrwgLtdDGFImM8Xf9saOOjqtCUwr7sZ0v+IYJae63kKTUkOT0CrGKYh5B0Hk9jcvEizZQV+Jk/RvOMulF26veDdi1zRDDgKM5j5Smin+boeLAcD8Ew09xhghtUoOHOyGT6WQDV+i8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535172; c=relaxed/simple; bh=P3ZCVB9XKuxwjTnNRoW31rFJv6S8iUJPV9MLYYjx4+A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LmUerPunTqFsUWJwHlvtmnB5J+9K6Rn9FBe/i305fWbvRXAN4OrOGg4dane337nQxqxgTGDcTEfkN61aONBAJ31E+w5q0bVlRaAwgRYN76CMe9Ox4FL5LKFCskxIUhHUkiMVe9mnP6Xp9TQcwkD4TCpmsXEwmje2nxfdyu7rE0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1tAdwhqT; 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="1tAdwhqT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C123C4CEDD; Wed, 26 Feb 2025 01:59:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535172; bh=P3ZCVB9XKuxwjTnNRoW31rFJv6S8iUJPV9MLYYjx4+A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1tAdwhqTKDfDLvP2aobpJRsP0EPRfT3ZVlN3Z6zS7/DlxtLwLgWWUrTsZMi0yWjkn 8vY383R8cQTPeWYL4D87N3U5hg6+LyQk5RLeTsJ43zKhM3T/fq2MXEkRAjqhSwpLMe 3Cs0zNan1J/kUJPnWA7g3ojnbOduYOHnZxMX6Trw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49211: mips: cdmm: Fix refcount leak in mips_cdmm_phys_base Date: Wed, 26 Feb 2025 02:56:56 +0100 Message-ID: <2025022619-CVE-2022-49211-eec8@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=2631; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=P3ZCVB9XKuxwjTnNRoW31rFJv6S8iUJPV9MLYYjx4+A=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SrznzjaUq6/Oslw94fhxnX3bXieG3fT7+nH+7vkx2 dryu+sndcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBFXBgWbPi40Z3PIMZKYN4B 7c+FG9iz/y6azTBPUaRJX+DBgU1dZwulOP+eyzZSfL0eAA== 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: mips: cdmm: Fix refcount leak in mips_cdmm_phys_base The of_find_compatible_node() function returns a node pointer with refcount incremented, We should use of_node_put() on it when done Add the missing of_node_put() to release the refcount. The Linux kernel CVE team has assigned CVE-2022-49211 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 2121aa3e2312ccc1d6299154dc4f07a6ab8beee2 and fixed in 5.10.110 with commit ef1728e3cb9e43f38ed10cde705a7ba2b4ad2d35 Issue introduced in 5.9 with commit 2121aa3e2312ccc1d6299154dc4f07a6ab8beee2 and fixed in 5.15.33 with commit 69155dc2e04777aa94207a73a8b10f12b8428a68 Issue introduced in 5.9 with commit 2121aa3e2312ccc1d6299154dc4f07a6ab8beee2 and fixed in 5.16.19 with commit 4680c2ac9aabda82acd23ebbd1f900fb6a889cd3 Issue introduced in 5.9 with commit 2121aa3e2312ccc1d6299154dc4f07a6ab8beee2 and fixed in 5.17.2 with commit 721ab4be20d4448dd04c2cc8ed99cd4f3e45f765 Issue introduced in 5.9 with commit 2121aa3e2312ccc1d6299154dc4f07a6ab8beee2 and fixed in 5.18 with commit 4528668ca331f7ce5999b7746657b46db5b3b785 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-49211 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: drivers/bus/mips_cdmm.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/ef1728e3cb9e43f38ed10cde705a7ba2b4ad2d35 https://git.kernel.org/stable/c/69155dc2e04777aa94207a73a8b10f12b8428a68 https://git.kernel.org/stable/c/4680c2ac9aabda82acd23ebbd1f900fb6a889cd3 https://git.kernel.org/stable/c/721ab4be20d4448dd04c2cc8ed99cd4f3e45f765 https://git.kernel.org/stable/c/4528668ca331f7ce5999b7746657b46db5b3b785