CVE-2026-98759: usb: typec: tipd: fix uninitialized typec_partner_desc in cd321x_update_work()
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 cd321x_update_work()
cd321x_update_work() 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-98759 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit 82432bbfb9e83b7e81d04660fe129b99a29b2ac2 and fixed in 6.18.56 with commit 75dc6cb377efd2f4428b7f76d3a590a0bbc10399 Issue introduced in 6.18 with commit 82432bbfb9e83b7e81d04660fe129b99a29b2ac2 and fixed in 7.2.10 with commit 5414144e202a32437e3eb436cd3f5f00d79ad86e Issue introduced in 6.18 with commit 82432bbfb9e83b7e81d04660fe129b99a29b2ac2 and fixed in 7.3-rc6 with commit 88c7e458af53ff781a3f1051708395892b325576
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-98759
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/75dc6cb377efd2f4428b7f76d3a590a0bbc10399 https://git.kernel.org/stable/c/5414144e202a32437e3eb436cd3f5f00d79ad86e https://git.kernel.org/stable/c/88c7e458af53ff781a3f1051708395892b325576