CVE-2026-98759

usb: typec: tipd: fix uninitialized typec_partner_desc in cd321x_update_work()

Published Oct 18, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An uninitialized kernel data structure, typec_partner_desc, was passed to typec_register_partner without fully initializing its fields. This left function pointer members and other callbacks containing garbage stack data. When a USB device is later linked to the Type‑C port, the driver may invoke these uninitialized pointers, potentially executing arbitrary kernel code or leaking sensitive stack information through sysfs. The flaw thus enables a local attacker to gain kernel‑level execution or info‑leak capabilities.

Affected Systems

All Linux kernel builds that contain the cd321x driver before the patch – i.e. any release that did not include the commit that zero‑initializes typec_partner_desc – are susceptible. The issue was fixed in the kernel by ensuring all descriptor fields are set to zero before registration.

Risk and Exploitability

Based on the description, it is inferred that the flaw is triggered only when a USB device is physically connected to the system, indicating a local attack vector that requires physical or trusted USB access. The CVSS score is 6.8. The EPSS score indicates a low exploitation probability of less than 1% and the vulnerability is not listed in the CISA KEV catalog, indicating no documented exploits yet, but the severity of the bug warrants caution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that zero‑initializes typec_partner_desc (commits 5414144e, 75dc6cb3, or 88c7e458) by upgrading to a kernel version that includes the fix
  • Rebuild and install the kernel with the updated driver if using a custom build
  • If immediate kernel replacement is not possible, disable or restrict USB Type‑C device support by removing the related driver modules or applying udev rules that prevent untrusted device connections

Generated by OpenCVE AI on October 23, 2026 at 21:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9018-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9018-2 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-457
CWE-665
Type Values Removed Values Added
Weaknesses CWE-824
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-457
CWE-665
Type Values Removed Values Added
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.
Title usb: typec: tipd: fix uninitialized typec_partner_desc in cd321x_update_work()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-824

    Access of Uninitialized Pointer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:25 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 19, 2026, 10:19 AM
Severity
Moderate
Public date
Oct 18, 2026, 12:00 AM