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 56DB921ADCE for ; Wed, 26 Feb 2025 02:27:50 +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=1740536870; cv=none; b=beIgMJpp7h1MiIa++yr4vxqqwPRiB+pOlwldcGzmmmWf5uCuS/TUvv3AwWT0ptQwVNkKPtsLCko7O9O92SWCRlb2jM2VymZFmm0JysVJ5ydJVUpgMTpR210YYmGLrqrrA6Gfj1ONTxgd2ZPJAPpyb9oOsz8F6XeW9WkzEywQCOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536870; c=relaxed/simple; bh=pMO/lLYwrcubhTlpjA91iSYUG6F+lRbia7fJeEId0lA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TxGz1twchYeaBE5YpUBbXJTmhbF/46A9DkrWaNaHeX7fhUrq88QJNre+o84MhPi+0hmN3TQS2dCdakh/0TDJLsPA0gMAHDyibuX75l5mWqgONfVHyb1Q0Xce+ZcuOHa2BHoT8mW3HLGkIBhM5rQb+cXDkJwOEDWbCi2kSVKUWts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wmQyjohp; 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="wmQyjohp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26BFCC4CEDD; Wed, 26 Feb 2025 02:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536870; bh=pMO/lLYwrcubhTlpjA91iSYUG6F+lRbia7fJeEId0lA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wmQyjohp5B0daFNwULlIg4jxZFgBFcafP9XeB5H3ax3BoRQq/1rbzmVCjEuUqkPaJ dsbpZIt+nn8qWMeDGGSix3DLnMGcP1j8MVyY9k0x34kxtNFjmb0oHTLntNqSprSKlj ylFml2V1jIVmf5VC9hu6BTwZvEhCgL00VTmulO2Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49678: soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe Date: Wed, 26 Feb 2025 03:24:01 +0100 Message-ID: <2025022625-CVE-2022-49678-d39c@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=3106; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pMO/lLYwrcubhTlpjA91iSYUG6F+lRbia7fJeEId0lA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qh6KZy0+U6Xt4t+2oqsq93HVVVHGfSsN3tjcPvMrp +v/5RnfOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiTzYzzC89ubMhe0bzUteV Pa07lWfIMm838mJYcI61/lrtIWufa5cu3VjfYbO45mH/SQA= 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: soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe of_find_matching_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. In brcmstb_init_sram, it pass dn to of_address_to_resource(), of_address_to_resource() will call of_find_device_by_node() to take reference, so we should release the reference returned by of_find_matching_node(). The Linux kernel CVE team has assigned CVE-2022-49678 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit 0b741b8234c86065fb6954d32d427b3f7e14756f and fixed in 4.19.250 with commit 4f5877bdf7b593e988f1924f4c3df6523f80b39c Issue introduced in 4.15 with commit 0b741b8234c86065fb6954d32d427b3f7e14756f and fixed in 5.4.202 with commit 734a4d15142bb4c8ecad2d8ec70d7564e78ae34d Issue introduced in 4.15 with commit 0b741b8234c86065fb6954d32d427b3f7e14756f and fixed in 5.10.127 with commit 30bbfeb480ae8b5ee43199d72417b232590440c2 Issue introduced in 4.15 with commit 0b741b8234c86065fb6954d32d427b3f7e14756f and fixed in 5.15.51 with commit 10ba9d499a9fd82ed40897e734ba19870a879407 Issue introduced in 4.15 with commit 0b741b8234c86065fb6954d32d427b3f7e14756f and fixed in 5.18.8 with commit dcafd5463d8f20c4f90ddc138a5738adb99f74c8 Issue introduced in 4.15 with commit 0b741b8234c86065fb6954d32d427b3f7e14756f and fixed in 5.19 with commit 37d838de369b07b596c19ff3662bf0293fdb09ee 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-49678 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/bcm/brcmstb/pm/pm-arm.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/4f5877bdf7b593e988f1924f4c3df6523f80b39c https://git.kernel.org/stable/c/734a4d15142bb4c8ecad2d8ec70d7564e78ae34d https://git.kernel.org/stable/c/30bbfeb480ae8b5ee43199d72417b232590440c2 https://git.kernel.org/stable/c/10ba9d499a9fd82ed40897e734ba19870a879407 https://git.kernel.org/stable/c/dcafd5463d8f20c4f90ddc138a5738adb99f74c8 https://git.kernel.org/stable/c/37d838de369b07b596c19ff3662bf0293fdb09ee