Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 95D5D4BFE98 for ; Sun, 18 Oct 2026 16:19:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340363; cv=none; b=NdhOmaJATKgXj+7YCVLI6jiaYtVK+3zUYFjU1Z6YNjI2YTDmIqUp76cUSkMdtAqukL7eQlRfyYM+dc8EiupAbC3mmGhGSpvxNAO/QXG8xx9jE0QbP6ETKAhluPgHdrqgvF2VCQu8/Z9CB3q5S8mRdLlXZpR0VfcM5HHRYP79lQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340363; c=relaxed/simple; bh=aAMLtaiHsM7QXBTmp7sqTe6rzOBl3TzWu430R5qcYAE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ayy9xEyyfj67FrAF2rqOaviVKFwP/+WHuh6tewdHz1kcS+rfAb/b7ISwnzlabmDj0g/nrBstoik2zSPjS4eu0EEHaiObDqMBN2HIZLJ6aEZvIarAKKhI4CDtHR0UcV2grDGMKd/1K5TfjbMljKHoAumOFi0bQATnypU/6r8nXJs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oH6B6Pdw; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oH6B6Pdw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF3DB1F000C4; Sun, 18 Oct 2026 16:19:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340362; bh=FXpSiLBN5Nf9foHvepnvntIOqxsCO1x3wDsPCDA8AaQ=; h=From:To:Cc:Subject:Date:Reply-To; b=oH6B6PdwvZpHY/O/0IM4rBNXG9Eb1IY+ZW5csndvYslBWKXIby0pWqTiHT9yQB+Bk OnG+E1Lqpvha5peq5wUCy6ZTM/MXOcyuYW9gBGMhFf/K2dKHs5oIM3chOS5dLLeADq vqxmleor6rIovFjaSr++e+bJrn/Kl4ZJZ5v9lgvc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98761: usb: typec: tcpm: recover after failure to start the frs ams Date: Sun, 18 Oct 2026 17:45:36 +0200 Message-ID: <2026101817-CVE-2026-98761-cd54@gregkh> X-Mailer: git-send-email 2.56.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=4202; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Lkn1oS2kMH4r/J4PWqUg9vs4NhLSC/PX3LuLaZooYEA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXgYqbH9/bu7tu6fbzW0SpfQbJQQfdVWeOKLNxZoeM 2mqiXFvRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykyYBhvvv3/3EMyyx+vXom HNooyy14Yr/5FIYFq468fz7l90lJdQmtJf9fJJ+SOGS+AgA= 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: tcpm: recover after failure to start the frs ams Reset the port if the tcpm fails to start the FAST_ROLE_SWAP AMS by initiating error recovery on it. This helps in cases where some cables (incorrectly) signal an FRS to an FRS capable port during disconnection. The TCPC autonomously starts sourcing VBUS on detecting the FRS signal. However, the VBUS sourcing is left on when the FAST_ROLE_SWAP AMS fails to start (as tcpm_sink_tx_ok is 0 as CC is open due to the cable disconnect). This is because the code sets the state to INVALID_STATE without resetting the port state. Log snippet before changes: [ 101.401960] AMS FAST_ROLE_SWAP start [ 101.401971] Sink TX No Go [ 101.401982] sourcing vbus [ 101.401987] VBUS on [ 101.402159] VBUS on [ 109.257809] CC1: 0 -> 0, CC2: 5 -> 0 [state SNK_READY, polarity 1, disconnected] [ 111.267442] VBUS on After changes: [ 70.541211] AMS FAST_ROLE_SWAP start [ 70.541220] Sink TX No Go [ 70.541228] state change SNK_READY -> ERROR_RECOVERY [rev3 NONE_AMS] [ 70.541362] VBUS on [ 70.541365] sourcing vbus [ 70.541367] VBUS on [ 70.541374] state change ERROR_RECOVERY -> PORT_RESET [rev3 NONE_AMS] [ 70.541410] disable vbus discharge ret:0 [ 70.543028] Setting usb_comm capable false [ 70.544009] Setting voltage/current limit 0 mV 0 mA [ 70.544034] polarity 0 [ 70.544239] Requesting mux state 0, usb-role 0, orientation 0 [ 70.555550] cc:=0 [ 70.555595] pending state change PORT_RESET -> PORT_RESET_WAIT_OFF @ 100 ms [rev3 NONE_AMS] [ 70.555697] VBUS off [ 70.555702] VBUS VSAFE0V [ 70.555762] CC1: 5 -> 0, CC2: 0 -> 0 [state PORT_RESET, polarity 0, disconnected] [ 70.587794] VBUS off [ 70.587799] VBUS VSAFE0V [ 70.655672] state change PORT_RESET -> PORT_RESET_WAIT_OFF [delayed 100 ms] [ 70.655682] state change PORT_RESET_WAIT_OFF -> SNK_UNATTACHED [rev3 NONE_AMS] [ 70.655686] Start toggling [ 70.656274] CC1: 0 -> 0, CC2: 0 -> 0 [state TOGGLING, polarity 0, disconnected] The Linux kernel CVE team has assigned CVE-2026-98761 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 0908c5aca31eb5e0c72d7a5dba422629b88e877d and fixed in 6.12.113 with commit 184d842121e7d1fbc3a81895f36f72fa27444163 Issue introduced in 5.12 with commit 0908c5aca31eb5e0c72d7a5dba422629b88e877d and fixed in 6.18.56 with commit b2ed8643face247e513fad12e193378ba67a61a1 Issue introduced in 5.12 with commit 0908c5aca31eb5e0c72d7a5dba422629b88e877d and fixed in 7.2.10 with commit d6b0cce612636f79f2cf0652fce40a0cbff7f0ed Issue introduced in 5.12 with commit 0908c5aca31eb5e0c72d7a5dba422629b88e877d and fixed in 7.3-rc6 with commit 90156585765b29304f07b0e4a1c56a969876fcfc 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-2026-98761 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/tcpm/tcpm.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/184d842121e7d1fbc3a81895f36f72fa27444163 https://git.kernel.org/stable/c/b2ed8643face247e513fad12e193378ba67a61a1 https://git.kernel.org/stable/c/d6b0cce612636f79f2cf0652fce40a0cbff7f0ed https://git.kernel.org/stable/c/90156585765b29304f07b0e4a1c56a969876fcfc