CVE-2026-98760: usb: typec: tipd: fix uninitialized typec_partner_desc in tps6598x_connect()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: tipd: fix uninitialized typec_partner_desc in tps6598x_connect()
tps6598x_connect() passes a stack-allocated typec_partner_desc to typec_register_partner() after initializing only usb_pd, accessory and identity.
typec_register_partner() copies attach and deattach from the descriptor into the partner. With those fields left unset, garbage function pointers may be stored and later invoked from typec_partner_link_device() when a USB device is linked to the port. Uninitialized pd_revision and usb_capability similarly leak stack data through partner sysfs.
Zero-initialize the descriptor so optional callbacks remain NULL and the remaining fields are zero.
The Linux kernel CVE team has assigned CVE-2026-98760 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.15 with commit 0a4c005bd1715d8b32a368ed5516a6ee7e603d18 and fixed in 6.12.113 with commit 4b6823ce0e548491cb9663303cba28e18d351096 Issue introduced in 4.15 with commit 0a4c005bd1715d8b32a368ed5516a6ee7e603d18 and fixed in 6.18.56 with commit 282be6ae8be791762740107c79cecf5121f66063 Issue introduced in 4.15 with commit 0a4c005bd1715d8b32a368ed5516a6ee7e603d18 and fixed in 7.2.10 with commit dac0c073c6ad5f1bbb5e9fea9023fc1b4dab5e14 Issue introduced in 4.15 with commit 0a4c005bd1715d8b32a368ed5516a6ee7e603d18 and fixed in 7.3-rc6 with commit c4b27b3605788bbf9e4251f3cd4ab94645ab036f
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-98760
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/tipd/core.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/4b6823ce0e548491cb9663303cba28e18d351096 https://git.kernel.org/stable/c/282be6ae8be791762740107c79cecf5121f66063 https://git.kernel.org/stable/c/dac0c073c6ad5f1bbb5e9fea9023fc1b4dab5e14 https://git.kernel.org/stable/c/c4b27b3605788bbf9e4251f3cd4ab94645ab036f