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 C23A71A840A for ; Wed, 26 Feb 2025 01:59:55 +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=1740535195; cv=none; b=a3d3qbYas+8Byq98cK1ES9iZHqGZeVaYt/Jh8miRLWfyGzvR3c3ww5nfdO8IhKYu/W3f32f4yxpHRaHQsPJIFoX/Z1fy9+Jc3XvzXYbzSeIdAqT9D95M5Nnc0uADFyrXI1BrxDSyNM13YTeeKfQZBWYAlYR26uuzdfsriQP/VIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535195; c=relaxed/simple; bh=pPJxW/sc4FSd0nWOYPD7bbfpAonUGQPSTknXomwEaJk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h/GWtaJS4Jwecyp7Up9/vcgToyrs87/qFyrU3jpNqv0IjL2M036or4iCi9SKtBXjQNFWVxuBM6hIQrCQ3UkJhNybqP23nIS6p5oKF89DASi10d0izL7w6Rq9dG58pwkCywPXQwbnfwRhSiTQ81HPyGDvr6vnqZQaUCehTtD1JTM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I6r96CNu; 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="I6r96CNu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F2A9C4CEDD; Wed, 26 Feb 2025 01:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535195; bh=pPJxW/sc4FSd0nWOYPD7bbfpAonUGQPSTknXomwEaJk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=I6r96CNuT4dJQsqCLKo+f1wSOweuCSW6lLScfwBt3a3Hnvx1m04pOfkOn3QwA5sNV O1s3hkJnqIqDSqdV0X3pEz3Aj/6IjFLt4MUXN8iE6Q5CT318A6rDDd0Fqo4sRZFV7l btjunOv+wcv8QE+6VSWD3tPzNgcZXTXmgSFhHde0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49239: ASoC: codecs: wcd934x: Add missing of_node_put() in wcd934x_codec_parse_data Date: Wed, 26 Feb 2025 02:57:24 +0100 Message-ID: <2025022624-CVE-2022-49239-e012@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=2713; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pPJxW/sc4FSd0nWOYPD7bbfpAonUGQPSTknXomwEaJk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SgJmHF33v4ljRvydzOfyN979VFZz/d0TsaDK+CyDl 4ep7I7JHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR7CKGBRumJgTZbbfpYt1/ 5qz49Sn3pd13nGWYp3DXOOzE+ikfl7gtfN2qPpP9kUzkdwA= 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: ASoC: codecs: wcd934x: Add missing of_node_put() in wcd934x_codec_parse_data The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. This is similar to commit 64b92de9603f ("ASoC: wcd9335: fix a leaked reference by adding missing of_node_put") The Linux kernel CVE team has assigned CVE-2022-49239 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit a61f3b4f476eceb25274161e5a53a8d18e42610b and fixed in 5.10.110 with commit 1f24716e38220fc9e52e208d20591d2bc9b7f020 Issue introduced in 5.6 with commit a61f3b4f476eceb25274161e5a53a8d18e42610b and fixed in 5.15.33 with commit 2f44eca78cc6d4e1779eb95765ec79e433accab4 Issue introduced in 5.6 with commit a61f3b4f476eceb25274161e5a53a8d18e42610b and fixed in 5.16.19 with commit f3793eeb7b94a5eeed6f5c7a44bce403c6681a12 Issue introduced in 5.6 with commit a61f3b4f476eceb25274161e5a53a8d18e42610b and fixed in 5.17.2 with commit f8e89d84ea83c51ba3ba97ff154f7aa679326760 Issue introduced in 5.6 with commit a61f3b4f476eceb25274161e5a53a8d18e42610b and fixed in 5.18 with commit 9531a631379169d57756b2411178c6238655df88 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-49239 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/wcd934x.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/1f24716e38220fc9e52e208d20591d2bc9b7f020 https://git.kernel.org/stable/c/2f44eca78cc6d4e1779eb95765ec79e433accab4 https://git.kernel.org/stable/c/f3793eeb7b94a5eeed6f5c7a44bce403c6681a12 https://git.kernel.org/stable/c/f8e89d84ea83c51ba3ba97ff154f7aa679326760 https://git.kernel.org/stable/c/9531a631379169d57756b2411178c6238655df88