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 D49E928B7C7 for ; Wed, 18 Jun 2025 11:11:24 +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=1750245084; cv=none; b=YleHL9m3ZeYR/QdrycFC60u4hM9av2TOrwVbV1oB7+XwrO/HtigkWTEDAsXm2nqHIH+H8IrLNbv49sfnJrT0nfElweBE8wo9oVNyKw90t1EEmhFyTSaz7LmVB35yLiGdyVIJpDrj+gUkVtet7gdzU18rfGcEjqTkxYw90AGQXxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245084; c=relaxed/simple; bh=jq/C5kgT40QJJH3tOa3eRRm9uKKXKAFDw7ykvqDR+gw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NSs7HzvoTCIupMxdyypmOs9VXQ+dE0k54v3AMcT+3E3mtPQfsxM8zIUvs63M2ucMtl48prJitp0lmYbZ6sefVsKvRFdiv+PiAWFluYs7iM6abtUESxmKPUL/BEQv7jdMZ/q7JTFZxuaEC6JR1rvN4b4MX/MIH3JqDTSRbK4qdIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BHpJcw/9; 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="BHpJcw/9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D659C4CEE7; Wed, 18 Jun 2025 11:11:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245084; bh=jq/C5kgT40QJJH3tOa3eRRm9uKKXKAFDw7ykvqDR+gw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BHpJcw/995AZgy0xNmF6BrpcaBagBTLUN/O4rJk4lS5mFK5O7/2mDfMJM98yeIPKr HsZYnkHdDAAV80esMYhUyNSGBlT0p+aBaq0zU3JQPquOdGr/Vnf1mrc10zpRxOO13U 1SQSKFxN+1EP1rtLgVUcEIIR/RFXvmeqfHJjImno= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50125: ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe Date: Wed, 18 Jun 2025 13:03:10 +0200 Message-ID: <2025061812-CVE-2022-50125-5895@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=2645; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TFzV5opBEoxqw9P0ziEQ5cOYAIvRPbYc4MczhvhVxcE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcyrP8cmbFZstXpjJseHu+pc7Vb655IQovCrhF5y58 YHS39eGHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRlu8M88PuzDoruddzwSfO 0snuf8tcwtmmuTEsWOm9UvrI2kXfSvVfnuJXUwt7sKRmLQA= 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: ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe of_parse_phandle() 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. The Linux kernel CVE team has assigned CVE-2022-50125 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit b6bc07d4360dbf766e551f18e43c67fff6784955 and fixed in 5.10.137 with commit bae95c5aee1f67da6608ceaebfb744d900e5ffbf Issue introduced in 5.5 with commit b6bc07d4360dbf766e551f18e43c67fff6784955 and fixed in 5.15.61 with commit 1065c385325845c88350c765cc6e449f46741984 Issue introduced in 5.5 with commit b6bc07d4360dbf766e551f18e43c67fff6784955 and fixed in 5.18.18 with commit b3e64b5562c077218295f2230fb5cf181193cb06 Issue introduced in 5.5 with commit b6bc07d4360dbf766e551f18e43c67fff6784955 and fixed in 5.19.2 with commit ca6c9244e6c9827a0b2fe8808c5e7b1ee8ab7104 Issue introduced in 5.5 with commit b6bc07d4360dbf766e551f18e43c67fff6784955 and fixed in 6.0 with commit 0a034d93ee929a9ea89f3fa5f1d8492435b9ee6e 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-50125 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: sound/soc/codecs/cros_ec_codec.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/bae95c5aee1f67da6608ceaebfb744d900e5ffbf https://git.kernel.org/stable/c/1065c385325845c88350c765cc6e449f46741984 https://git.kernel.org/stable/c/b3e64b5562c077218295f2230fb5cf181193cb06 https://git.kernel.org/stable/c/ca6c9244e6c9827a0b2fe8808c5e7b1ee8ab7104 https://git.kernel.org/stable/c/0a034d93ee929a9ea89f3fa5f1d8492435b9ee6e