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 76F8628D830 for ; Tue, 30 Dec 2025 12:10:01 +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=1767096601; cv=none; b=X0rxAFqI4E9CNJRD2lRyfw2gFIo3LWHuuno+QTizXFjue+sTfGdrgnUXKgxR18tB7SKqge4m4WkBVxJb8/EQ1tlnPVANVSj5o8LeLUi+AiyOLQtXVhAYfGQD1btkdaQ+7uliULkiljeU7iKOUbNu8qprCTlEboZJFqsUprlag1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096601; c=relaxed/simple; bh=EFRVOlr30DqhIk86Uqd1J5OGx8+SMkv21PQCbFlH7dM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DarW5SMUTEoxHTG/R1RM0+ptsQKF4FFXNlmYlEwitr/L+QtA4ykb4hxUpLdK+59qc8p74BV8rK4SkukqvVaBgHBCKL9kvV6ezh4dLmung0eaI0141fM0SOo3YGIbRjQKz3sZEjlhLMxKkMCzwGFx58usPOe7kP75ewcht22LRYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dDhfV84H; 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="dDhfV84H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE42CC4CEFB; Tue, 30 Dec 2025 12:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096601; bh=EFRVOlr30DqhIk86Uqd1J5OGx8+SMkv21PQCbFlH7dM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=dDhfV84Hn5126+0/YiCK7XcjJTI+gY4MPbSwZtvSPmGuomYOf7VRUldd06SZd6Hmb aPI5d1GWcon7DEQ8sJe2NjNYHrvWMNvEcUswheExpOvP75ZGWgObcRO/4x7NAOazlO 5c2hn3LWt5VoDycFp7C6B9py/JcPS+v5uBaP7SSU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50825: usb: typec: wusb3801: fix fwnode refcount leak in wusb3801_probe() Date: Tue, 30 Dec 2025 13:09:29 +0100 Message-ID: <2025123017-CVE-2022-50825-905f@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2330; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4ZN9gcLXU9MVUs1d4arVPC6e7fNUABT+G+aCpjJIVno=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB94qc/N83aJe6MZ//Uv9BNXZb3oXyetWx1hKLr/yf 5JhjvzljlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIgibDgnOHuuy/nlt9UvvD B8ZtM4ojf0wJWMEwzyz/vRDLW7kt9TNqn/ZIlnb/ZxWZDQA= 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: usb: typec: wusb3801: fix fwnode refcount leak in wusb3801_probe() I got the following report while doing fault injection test: OF: ERROR: memory leak, expected refcount 1 instead of 4, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /i2c/tcpc@60/connector If wusb3801_hw_init() fails, fwnode_handle_put() needs be called to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-50825 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit d016cbe4d7acf5100df83ecf4d02db4e9f607c1d and fixed in 6.0.16 with commit de1e2eb7f102e3073714396414592a39efb66b3e Issue introduced in 5.18 with commit d016cbe4d7acf5100df83ecf4d02db4e9f607c1d and fixed in 6.1.2 with commit 82d1211f673bbdc822eaf1dbcbf1f2ae06556964 Issue introduced in 5.18 with commit d016cbe4d7acf5100df83ecf4d02db4e9f607c1d and fixed in 6.2 with commit dc18a4c7b3bd447cef2395deeb1f6ac16dfaca0e 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-50825 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/usb/typec/wusb3801.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/de1e2eb7f102e3073714396414592a39efb66b3e https://git.kernel.org/stable/c/82d1211f673bbdc822eaf1dbcbf1f2ae06556964 https://git.kernel.org/stable/c/dc18a4c7b3bd447cef2395deeb1f6ac16dfaca0e