Skip to main content
Vulnerability Database/CVE-2026-98759

CVE-2026-98759: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98759 is a use-after-free flaw in the Linux kernel USB Type-C driver that may allow uninitialized function pointers to be invoked. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98759 Overview

CVE-2026-98759 is an uninitialized memory use vulnerability in the Linux kernel's USB Type-C driver for Texas Instruments Power Delivery (tipd) controllers. The flaw resides in the cd321x_update_work() function within the usb: typec: tipd subsystem. The function passes a stack-allocated typec_partner_desc structure to typec_register_partner() after initializing only the usb_pd, accessory, and identity members. The remaining fields, including attach and deattach function pointers, retain uninitialized stack data. The kernel developers have resolved the issue by zero-initializing the descriptor so optional callbacks remain NULL.

Critical Impact

Uninitialized stack memory containing garbage function pointers may be invoked when a USB device is linked to the port, and uninitialized pd_revision and usb_capability fields leak stack data through partner sysfs.

Affected Products

  • Linux kernel versions containing the vulnerable drivers/usb/typec/tipd/core.c implementation of cd321x_update_work()
  • Systems using Texas Instruments Type-C Power Delivery (tipd) controllers, including Apple cd321x variants
  • Distributions shipping the affected kernel prior to the fix commits

Discovery Timeline

  • 2026-10-18 - CVE-2026-98759 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98759

Vulnerability Analysis

The vulnerability is an Uninitialized Memory Use flaw in the USB Type-C Port Driver (tipd) code path that handles partner registration for Apple's cd321x Power Delivery controller. The cd321x_update_work() worker allocates a struct typec_partner_desc on the stack and populates only three fields: usb_pd, accessory, and identity. It then passes the descriptor to typec_register_partner().

The typec_register_partner() function copies all descriptor fields, including the attach and deattach callback pointers, into the newly created partner object. Because these pointers are never explicitly set, they inherit arbitrary stack contents from prior function frames. When the Type-C core later links a USB device to the port, typec_partner_link_device() dereferences and invokes those function pointers.

Root Cause

The root cause is the absence of zero-initialization for a stack-allocated descriptor structure before partial field assignment. In C, automatic storage variables are not zero-initialized by default, so uninitialized members hold indeterminate values. The fix declares the descriptor with an initializer that zeroes all members, ensuring optional callbacks are NULL and informational fields such as pd_revision and usb_capability do not expose stack memory through the Type-C partner sysfs interface.

Attack Vector

Triggering the flaw requires the vulnerable code path to execute during cd321x partner registration. The resulting behavior depends on residual stack content at the time cd321x_update_work() runs. If the uninitialized callback field contains a non-NULL value that resembles a valid kernel address, typec_partner_link_device() performs an indirect call into attacker-uninfluenced but unpredictable memory. The sysfs leak path separately exposes stack bytes through pd_revision and usb_capability attributes readable from userspace once the partner device is registered.

See the upstream fix commits at Kernel.org Commit 5414144, Kernel.org Commit 75dc6cb, and Kernel.org Commit 88c7e45 for the exact patch content.

Detection Methods for CVE-2026-98759

Indicators of Compromise

  • Unexpected kernel oops or general protection faults originating in typec_partner_link_device after USB-C device attachment on systems with cd321x hardware.
  • Sysfs reads under /sys/class/typec/port*-partner/ returning anomalous or non-deterministic values for pd_revision or usb_capability attributes.
  • Kernel panics correlated with USB-C hotplug events on affected Apple Silicon or cd321x-equipped systems.

Detection Strategies

  • Audit running kernel versions against the fix commits referenced in the kernel.org advisory to identify unpatched builds.
  • Monitor kernel ring buffer output for crashes in drivers/usb/typec/ call stacks during USB-C enumeration.
  • Review userspace telemetry for processes reading Type-C partner sysfs attributes that may receive leaked stack data.

Monitoring Recommendations

  • Enable kernel address sanitizer (KASAN) builds in test environments to surface uninitialized memory reads in the tipd driver.
  • Collect and centralize dmesg output from endpoints with Type-C hardware for anomaly review.
  • Track package versions of the Linux kernel across the fleet and alert when hosts fall behind stable release updates.

How to Mitigate CVE-2026-98759

Immediate Actions Required

  • Apply the upstream kernel fix commits referenced below to all affected hosts and rebuild or update kernel packages.
  • Update to a distribution kernel release that incorporates the fix once the vendor publishes patched builds.
  • Prioritize patching on systems that physically expose USB-C ports to untrusted users or environments.

Patch Information

The fix zero-initializes the typec_partner_desc structure in cd321x_update_work() so optional callbacks remain NULL and informational fields default to zero. The upstream commits are available at Kernel.org Commit 5414144, Kernel.org Commit 75dc6cb, and Kernel.org Commit 88c7e45.

Workarounds

  • Where patching is not immediately feasible, restrict physical access to USB-C ports on affected hosts to reduce attack surface.
  • Unload or blacklist the tps6598x / tipd kernel module on systems where USB-C Power Delivery functionality is not required.
  • Restrict read access to Type-C partner sysfs attributes through filesystem permissions or Mandatory Access Control policies.
bash
# Configuration example: blacklist the tipd module until the kernel is patched
echo 'blacklist tps6598x' | sudo tee /etc/modprobe.d/blacklist-tipd.conf
sudo update-initramfs -u

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.