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 32909286429 for ; Wed, 18 Jun 2025 11:15:15 +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=1750245315; cv=none; b=HklKF+AwnTIBvi7Y2avAQc4NK0JLJSpB0gltqGPq1j5iBNI0Wixv3DwHZ+2l3IOyaA9DtT2zH+J1B6H/9DzVQTceq8vHSZWBsC/8pgkk6QQKouQaNto3peqai0Zt8/NN+5o9mBKOEPIh0WQi60N1lW4iKFQjvThr40lAxI1+J9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245315; c=relaxed/simple; bh=xvMqmzlTwmU1CUZld85edPDttxgUulD10qPc4b8GxuQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=En2Zjw2YUwZHm0cTUugxPS1P5+TUlQPxeWg49DiMG/Gkp4MtJF7ANR+d4JbUoV5CcrDtrAT2g6N1SWmjqun7gFhDq6sjIiKSegylFD8NRJf1Io+A8qY0RChG9muEk6xldpeemoLt11tREyhE5Ek1gPHjPAGSJDupOcDctb0TUkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wYBA+fKt; 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="wYBA+fKt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D850C4CEE7; Wed, 18 Jun 2025 11:15:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245315; bh=xvMqmzlTwmU1CUZld85edPDttxgUulD10qPc4b8GxuQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wYBA+fKtrWf0Sf4Umig6tokDehKiXs0eoWnNbOf5toZclt9ljU893RcQfeRCbKZ+c GHh30HjY0q93C0MivZ4gWqmHiO9U/Gt+/+IYNlECTXAM5fHSwFYYkHQ35zuxoPaTLm /3XpnN1f9jIXG8Uc8nPFupyGDxy/TRLdxFCTd5J4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50194: soc: qcom: aoss: Fix refcount leak in qmp_cooling_devices_register Date: Wed, 18 Jun 2025 13:04:19 +0200 Message-ID: <2025061837-CVE-2022-50194-536e@gregkh> X-Mailer: git-send-email 2.49.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=2976; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g7mWDm/y3uMkJueDvn070/sTtrI1arRPM4t/adqGN8w=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcybGWs9YUfXUtd7hcer3Ge2BzScyQ/SWLhOJso/UX n9JjW9+RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk1IdhfqLjDu//H+XvTalS mLjzVPOJL0tF+hjm+77NXJq7TkXf5/zE0xaPPiswKPoeAAA= 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: soc: qcom: aoss: Fix refcount leak in qmp_cooling_devices_register Every iteration of for_each_available_child_of_node() decrements the reference count of the previous node. When breaking early from a for_each_available_child_of_node() loop, we need to explicitly call of_node_put() on the child node. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-50194 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 05589b30b21ac0273970b61edd50c07d2ba156af and fixed in 5.4.211 with commit bc73c72a856c26df7410ddf15f42257cb4960fe9 Issue introduced in 5.4 with commit 05589b30b21ac0273970b61edd50c07d2ba156af and fixed in 5.10.137 with commit 97713ed9b6cc4abaa2dcc8357113c56520dc6d7f Issue introduced in 5.4 with commit 05589b30b21ac0273970b61edd50c07d2ba156af and fixed in 5.15.61 with commit 053543ac1d095132fcfd1263805d6e25afbdc6a8 Issue introduced in 5.4 with commit 05589b30b21ac0273970b61edd50c07d2ba156af and fixed in 5.18.18 with commit ca83c61a6ccf3934cf8d01d5ade30a5034993a86 Issue introduced in 5.4 with commit 05589b30b21ac0273970b61edd50c07d2ba156af and fixed in 5.19.2 with commit 591f0697ccbac33760d3bb1ad96a5ba2b76ae9f0 Issue introduced in 5.4 with commit 05589b30b21ac0273970b61edd50c07d2ba156af and fixed in 6.0 with commit e6e0951414a314e7db3e9e24fd924b3e15515288 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-50194 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/soc/qcom/qcom_aoss.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/bc73c72a856c26df7410ddf15f42257cb4960fe9 https://git.kernel.org/stable/c/97713ed9b6cc4abaa2dcc8357113c56520dc6d7f https://git.kernel.org/stable/c/053543ac1d095132fcfd1263805d6e25afbdc6a8 https://git.kernel.org/stable/c/ca83c61a6ccf3934cf8d01d5ade30a5034993a86 https://git.kernel.org/stable/c/591f0697ccbac33760d3bb1ad96a5ba2b76ae9f0 https://git.kernel.org/stable/c/e6e0951414a314e7db3e9e24fd924b3e15515288