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 657AE2882D6 for ; Wed, 18 Jun 2025 11:02:41 +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=1750244561; cv=none; b=hAcMD7f08XoyePUkUB3x5q8TCG1su3M0Nl5/TEzL17mqHXMg1TlRh3NwWelE6uOd50uRqSGtc/C4ZFZoihLTBjptGE1xapIvKjgY4hJQf5CxjmlFeSPJgjnBmHOTnXYc15JoM4/qPRaluN0+mpbV/q6/aKD1hV9oWu+gTLtI/zs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244561; c=relaxed/simple; bh=4xrqc1sMkDaj1UKnXtvVxMqCj/5VgdtRp8h6QUqg1xs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O1MQnvmaoUJEtAJ4b4ktZEX/jt/bsXgPFwz4ZA7KTwOwHmqM02Ie9zOZK8ytpUVBIfxHLnUxzGg3Mvz5/G1SakIiD5ajHBI4ZVMDy00IoFkD2ptgtX+TVA05SpslVI0lPaBoZ2+5r7+uJSn/eo8In9z9O7LWHe5SvY/+gMQiCYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ybf5ZfRA; 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="ybf5ZfRA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95A71C4CEED; Wed, 18 Jun 2025 11:02:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244560; bh=4xrqc1sMkDaj1UKnXtvVxMqCj/5VgdtRp8h6QUqg1xs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ybf5ZfRAD/0wFIo34JM3/iR7cu7enaHzjjJJP0ty2SwytcyIf+UoUAb4MGB5TZEbb A9ftZ5ACbVBCGj6G/hGS0W+Xa6xnP3bLOiHZd96AdrAWr3Vs+8Zjb7NvYce97nOExb 9Aktb0T9pJEzpfFsvjHMuo/97HtbZeVH8S8SBNjc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49944: Revert "usb: typec: ucsi: add a common function ucsi_unregister_connectors()" Date: Wed, 18 Jun 2025 13:00:09 +0200 Message-ID: <2025061807-CVE-2022-49944-b44c@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=2328; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sVrZUtYzMukjRbOXZ1y2KxPd5Je/DjVBelnLECcheSM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcywib54WVz9asmWNwLxuu9jgqls/62L2sKxadLHbY E9j1Z4tHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRuOMM83Q2GsUWL9+kebV/ vqHrok8/fqvtvsUwv+SCD29Ik43m3qabf8ViLjRnpF4+DQA= 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: Revert "usb: typec: ucsi: add a common function ucsi_unregister_connectors()" The recent commit 87d0e2f41b8c ("usb: typec: ucsi: add a common function ucsi_unregister_connectors()") introduced a regression that caused NULL dereference at reading the power supply sysfs. It's a stale sysfs entry that should have been removed but remains with NULL ops. The commit changed the error handling to skip the entries after a NULL con->wq, and this leaves the power device unreleased. For addressing the regression, the straight revert is applied here. Further code improvements can be done from the scratch again. The Linux kernel CVE team has assigned CVE-2022-49944 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 87d0e2f41b8cc2018499be4e8003fa8c09b6f2fb and fixed in 5.19.8 with commit 3d4044c9e6d2e3f11f1f8b5e0ee8647d3eb1afad Issue introduced in 5.19 with commit 87d0e2f41b8cc2018499be4e8003fa8c09b6f2fb and fixed in 6.0 with commit 5f73aa2cf8bef4a39baa1591c3144ede4788826e 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-49944 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/ucsi/ucsi.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/3d4044c9e6d2e3f11f1f8b5e0ee8647d3eb1afad https://git.kernel.org/stable/c/5f73aa2cf8bef4a39baa1591c3144ede4788826e