usb: typec: tipd: fix uninitialized typec_partner_desc in tps6598x_connect()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0a4c005bd1715d8b32a368ed5516a6ee7e603d18 · < dac0c073c6ad5f1bbb5e9fea9023fc1b4dab5e14| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s USB Type-C tipd driver leaves fields in a partner descriptor uninitialized. When a USB device is linked to the port, garbage callback pointers may be invoked; other uninitialized fields can expose stack data through partner sysfs. The input does not establish whether authentication or user interaction is required.
Engineers running Linux kernels with the USB Type-C tipd driver should check their kernel vendor’s advisory for affected versions.