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 69CE441C66 for ; Sat, 2 Mar 2024 22:00:21 +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=1709416821; cv=none; b=TyHNynJqDVhhLy9Ux0BsyJA0vqCwqokLMizCyll/nySBewBHpvSpdYuc+B9SRSVM1HEU5JX6/fs4IE/3jcvRxCofQTqNdiJj+bX1jY1aJg84udnHTOpD5rpQVB8SCEdY29z02HU+M7dSiJ5+oqbfkyXbNvnH0TOJPJ0Abg/t4bQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709416821; c=relaxed/simple; bh=l5zdszb8oSGRrHNsP8wsVCPwstP8lFTDqmPhY760UZI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hNxOCZGePTG3pcrCiO6p3VGs804Pnz6MT5e9Os0NHk7zC+oICrJA1MAG4u9oqvleZf8E2cobAr6wAyz7yvyf8caHtwIAthD85ie+aj2/ZRkl9XqvsYsGpwN2oGehyUnQyez9Lh6a63vkX6OFs1Q+G+Yf5ToA/4t6MzP4vaQMwmg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rl3Cx3y+; 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="rl3Cx3y+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA3CEC433F1; Sat, 2 Mar 2024 22:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709416821; bh=l5zdszb8oSGRrHNsP8wsVCPwstP8lFTDqmPhY760UZI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rl3Cx3y+cZ/LrUEKsh4i5y1BG5j4EsBysZ/pM+1FTwHPrN1Dly3TQ3n4wsEYHczEv cTG7zreTaT89D2Qd9OFFx+6ucjoopeS1ukrkBnvrG2qk5EIIPuB7HfVZqrYx3vw56s WQe8iIR6TAB2l3rESHo8xdlVDMEAXQQ4PfAhN6FM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52571: power: supply: rk817: Fix node refcount leak Date: Sat, 2 Mar 2024 23:00:05 +0100 Message-ID: <2024030255-CVE-2023-52571-087e@gregkh> X-Mailer: git-send-email 2.44.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=2108; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=l5zdszb8oSGRrHNsP8wsVCPwstP8lFTDqmPhY760UZI=; b=owGbwMvMwCRo6H6F97bub03G02pJDKmPF0ZPur+qkXelo4GYbLLmuyWzTk8NXem5eUNHcKXYv Y+iLn+TO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi3F8Y5vt5XBHsWs5ff/Jr t9iWdedfBL0z4maYH95fH/ufLW45d6irGbO2V+6Vv8u5AQ== 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: power: supply: rk817: Fix node refcount leak Dan Carpenter reports that the Smatch static checker warning has found that there is another refcount leak in the probe function. While of_node_put() was added in one of the return paths, it should in fact be added for ALL return paths that return an error and at driver removal time. The Linux kernel CVE team has assigned CVE-2023-52571 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.2 with commit 7d1e3961725e and fixed in 6.1.56 with commit fe6406238d5a Issue introduced in 6.2 with commit 54c03bfd094f and fixed in 6.5.6 with commit 70326b46b6a0 Issue introduced in 6.2 with commit 54c03bfd094f and fixed in 6.6 with commit 488ef44c068e Please see https://www.kernel.org or 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-2023-52571 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/power/supply/rk817_charger.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/fe6406238d5a24e9fb0286c71edd67b99d8db58d https://git.kernel.org/stable/c/70326b46b6a043f7e7404b2ff678b033c06d6577 https://git.kernel.org/stable/c/488ef44c068e79752dba8eda0b75f524f111a695